当前位置:网站首页>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
边栏推荐
- Sword finger offer II 064. magic Dictionary (medium dictionary tree string design)
- 770. 单词替换
- How do we do full link grayscale on the database?
- Sword finger offer II 054. Sum of all values greater than or equal to nodes (medium binary search tree DFS)
- XXX port is already in use
- LeetCode刷题系列之-多数之和类型
- Imx6q GPIO multiplexing
- 771. 字符串中最长的连续出现的字符
- PaddleNLP基于ERNIR3.0文本分类以中医疗搜索检索词意图分类(KUAKE-QIC)为例【多分类(单标签)】
- 20-09-27项目迁移到阿里折腾记录(网卡顺序导致服务无法通过haproxy连接到db)
猜你喜欢

Ngrok intranet penetration

2022年一级建造师考试什么时候才能报名?

PaddleNLP基于ERNIR3.0文本分类以CAIL2018-SMALL数据集罪名预测任务为例【多标签】

成立不到一年!MIT衍生量子计算公司完成900万美元融资
![[Ruiji takeout project] Day5 - Chapter 6 mobile verification code login](/img/53/c578e0d1428ea569fb412a20019924.png)
[Ruiji takeout project] Day5 - Chapter 6 mobile verification code login

6K6w5LiA5qyh5pS75Ye75YiG5p6Q

How to install WiFi correctly

Command line agent: proxychains configuration
![[CS231N]Lecture_ 2:Image Classification pipelin](/img/4f/de56b071560ada746c587a9dbc5f02.jpg)
[CS231N]Lecture_ 2:Image Classification pipelin

使用PCL批量显示PCD点云数据流
随机推荐
771. 字符串中最长的连续出现的字符
近期bug总结
Wechat applet uses canvas drawing, round avatar, network background, text, dotted line, straight line
Tensorflow serving high performance machine learning model service system
Ngrok intranet penetration
[Ruiji takeout project]day4 - dish management
Why doesn't the icon on the elment plus icon input display
php二维数组如何删除去除第一行元素
Ecmasript 5/6 notes
Sword finger offer II 065. The shortest word code (medium dictionary tree string array)
Common commands of NPM
[virtual machine _2]-hyper-v and vmware/virtualbox cannot coexist
redis相关
Static route and default route experiment
JS convert numbers to letters
纪念一下第一次写的线段树了喽(对应洛谷3372)
Win11 how to open software notification
Solve various problems of sudo rosdep init and rosdep update
Analysis notes on let (const) temporary dead zone in JS
职场pua但有道理