当前位置:网站首页>STM32 - systick timer (cubemx configures systick)
STM32 - systick timer (cubemx configures systick)
2022-07-28 22:37:00 【Green hedgerow bamboo maple】
SysTick The system timer belongs to Cortex-M A peripheral in the kernel , Embedded in NVIC in
SysTick The system timer contains a counting width of 24bit The downward decreasing automatic reload counter , The counter counts every time for 1/CLKSource, Generally we set CLKSource For the system clock , With F103 For example ,CLKSource Can be configured as 72MHz
Count width : 24bit To store data , Can be stored 2^24 Power data
Decreasing downward : It refers to the working mode of the counter
Work cycle :1/72MHz
When the value of the reload value register is decremented to 0 When ,SysTick The system timer can be configured to generate an interrupt , And so on
SysTick The system timer belongs to Cortex-M Peripherals of kernel , So it is generally based on Cortex-M All the single chip microcomputers in the kernel have this system timer , This makes the software in Cortex-M MCU can be easily transplanted

SysTick Function of timer :
(1)SysTick The system timer can be used to operate the system , Used to generate time bases , Maintain the heartbeat of the operating system , General operating systems require a time base , Electroplate the task , Synchronization and other functions
(2)SysTick The most commonly used function of the system timer is Count , For example, it is used for microseconds , Millisecond delay ,ui This produces a specific timing
SysTick Register summary
| Register name | describe |
| CTRL | SysTick Control and status register |
| LOAD | SysTick Reload the load value register |
| VAL | SysTick Current value register |
| CALIB | SysTick Calibration value register |



CubeMX To configure SysTick
1. Configure the system clock


2. Set up SysTick

Here we are ,SysTick The setting is finished
边栏推荐
- Netease Yunxin 2022q2 product supply station, come and get your product supply plan!
- Win11怎么打开软件通知
- MOV格式是不是静态图像文件格式
- 使用webWorker执行后台任务
- MySQL built-in functions
- ngx+sql环境离线安装日志(rpm安装)
- ES6 concept
- Sword finger offer II 067. maximum XOR (medium prefix tree bit operation array)
- Image is referred in multiple repositories
- [Ruiji takeout project] Day5 - Chapter 6 mobile verification code login
猜你喜欢

npm ERR code ETIMEDOUT npm ERR syscall connect npm ERR errno ETIMEDOUT npm ERR network reques...

Static route and default route experiment

When can I sign up for the 2022 class I constructor examination?

Summary of common error types in JS
![[get mobile information] - get mobile information through ADB command](/img/ad/b10c5d09a21fb0cb22aa8a002fbd99.png)
[get mobile information] - get mobile information through ADB command
![[connect set-top box] - use ADB command line to connect ec6108v9 Huawei Yuehe box wirelessly](/img/ab/624e9a3240416f8445c908378310ad.png)
[connect set-top box] - use ADB command line to connect ec6108v9 Huawei Yuehe box wirelessly

Command line agent: proxychains configuration

flask之蓝图 补充openpyxl

6K6w5LiA5qyh5pS75Ye75YiG5p6Q

2021 mathematical modeling group B exercise
随机推荐
Less than a year after its establishment! MIT derivative quantum computing company completed financing of US $9million
Sword finger offer II 063. replacement word (medium prefix tree string)
flask之蓝图 补充openpyxl
Imx6q GPIO multiplexing
删除容器镜像报错解决image is referenced in multiple repositories
Qt+FFmpeg环境搭建
Using nodejs to operate MySQL
MySQL installation and configuration (super detailed, simple and practical)
[connect your mobile phone wirelessly] - debug your mobile device wirelessly via LAN
Container configuration starts redis cluster single machine 6 nodes 3 Master 3 slave
Concise history of graphic technology
Mysql8.0 cannot authorize users or prompt you are not allowed to create a user with grant
Sword finger offer II 052. flatten binary search tree (simple binary search tree DFS)
Kali source solution software cannot be installed correctly
Log4j vulnerability elk platform processing method (logstah5.5.1)
Sword finger offer II 057. the difference between the value and the subscript is within the given range (medium array bucket sort sliding window TreeSet)
纪念一下第一次写的线段树了喽(对应洛谷3372)
npm ERR code ETIMEDOUT npm ERR syscall connect npm ERR errno ETIMEDOUT npm ERR network reques...
imx6q gpio复用
[get mobile information] - get mobile information through ADB command