当前位置:网站首页>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
边栏推荐
- Image is referred in multiple repositories
- 删除容器镜像报错解决image is referenced in multiple repositories
- Lotus 1.16.0 extend sector expiration time
- mysql8.0无法给用户授权或提示You are not allowed to create a user with GRANT的问题
- Sword finger offer II 053. Medium order successor in binary search tree (medium binary search tree DFS)
- 【转载】token令牌在登录场景使用
- 网易云信 2022Q2 产品补给站,快来获取你的产品补给计划吧!
- MySQL installation and configuration (super detailed, simple and practical)
- Command line agent: proxychains configuration
- MOV格式是不是静态图像文件格式
猜你喜欢
![[LiteratureReview]Object Detection and Mapping with Bounding Box Constraints](/img/37/7cb5fa3a9078a5f5947485147c819d.png)
[LiteratureReview]Object Detection and Mapping with Bounding Box Constraints

Att & CK Threat Intelligence

6K6w5LiA5qyh5pS75Ye75YiG5p6Q

Paddlenlp text classification based on ernir3.0: take wos dataset as an example (hierarchical classification)

PaddleNLP基于ERNIR3.0文本分类:WOS数据集为例(层次分类)
![[CS231N]Lecture_ 2:Image Classification pipelin](/img/4f/de56b071560ada746c587a9dbc5f02.jpg)
[CS231N]Lecture_ 2:Image Classification pipelin

Research cup element recognition multi label classification task based on ernie-3.0 cail2019 method

Target segmentation learning

ATT&CK 威胁情报

Sword finger offer II 054. Sum of all values greater than or equal to nodes (medium binary search tree DFS)
随机推荐
Baidu map usage
flask之蓝图 补充openpyxl
What does GPRS network mean
Less than a year after its establishment! MIT derivative quantum computing company completed financing of US $9million
Target segmentation learning
How to realize dynamic route switching and route caching in vuejs
Paddlenlp is based on ernir3.0 text classification. Take the traditional Chinese medicine search and retrieval semantic map classification (kuake-qic) as an example [multi classification (single label
2022年一级建造师考试什么时候才能报名?
Lotus 1.16.0 extend sector expiration time
ATT&CK初步了解
职场pua但有道理
Detection and tracking evaluation index
Att & CK Threat Intelligence
Sword finger offer II 054. Sum of all values greater than or equal to nodes (medium binary search tree DFS)
Sword finger offer II 055. Binary search tree iterator (medium binary search tree iterator)
XXX port is already in use
Ultra detailed visual studio 2019 running littlevgl (lvgl) simulator
Winserver operation and maintenance technology stack
ES6, deep copy, shallow copy
mysql create语句能不能用来建立表结构并追加新的记录