当前位置:网站首页>Influence of pre frequency division value and automatic reload value on interrupt frequency
Influence of pre frequency division value and automatic reload value on interrupt frequency
2022-07-27 02:17:00 【Ruomu·】
ARR—— Automatic reassembler ;
PSC—— Preassigned frequency counter
These two are also deciding TIM Parameters of timing time , If we want to decide 1s Time for , You can refer to the counter overflow frequency formula :CK_CNT_OV=CK_CNT/(ARR+1)=CK_PSC/(OSC+1)/(ARR+1)
That is to say , Timing frequency =72M/(PSC+1)/(ARR+1)
timing 1s, That is, the timing frequency is 1hz,PSC Give me a 7200,ARR Give me a 10000, Then two values are subtracted 1, Because prescaler and counter have 1 Number deviation , So subtract 1
( Be careful PSC and ARR All values of must be in 0~65535 Between , Don't go beyond the scope )
Give less prescales , Auto reload to multipoint , In this way, there are more numbers calculated at a higher frequency ;
If the prescaler gives more points , Auto reload to less , This is a relatively small number based on a relatively low frequency ;
If our auto reload value is 10000-1, Then this value is from 0 From... To 9999, The total is
10000 Number , Count 10000 Time , Namely 1s.
If we put 10000 Change to 1000, It's from the hospital 10000 Number , Become a plan 1000 Number , At this time, the value is from 0 Add to 999 了 , The corresponding is 0.1s, When the prescaled value remains unchanged , The value increases faster than before 10 times
If we change back to 10000, Remove one of the prescaled values 0, That is, based on the original 10 Times counting frequency meter 10000 Number .
边栏推荐
- NAT (network address translation protocol)
- Text to image paper intensive reading rat-gan: recursive affine transformation for text to image synthesis
- Codeforces Round #796 (Div. 2), problem: (1688C) Manipulating History
- OSPF static experiment
- Is index reproduction text generation image is score quantitative experiment whole process reproduction inception score quantitative evaluation experiment step on the pit and avoid the pit process
- 通过对射式红外传感器计次实验讲解EXTI中断
- 7.16 多益网络笔试
- 2022年最新文本生成图像研究 开源工作速览(Papers with code)
- 6.29 众安暑期测开实习一面
- HCIA Basics (1)
猜你喜欢

Dynamic routing rip protocol experiment

mgre的全连和星型拓扑实验

Test and open basic daily question brushing (continuous updating...)

Vitgan: training Gans with vision transformers

定时器中断实验
![[explain C language in detail] takes you to play with functions](/img/44/53cdac9b9cf0d3f77e5da05956c3dc.png)
[explain C language in detail] takes you to play with functions

2022最新直播监控24小时监控(三)直播间弹幕解析
![[详解C语言]一文带你认识C语言,让你醍醐灌顶](/img/37/205c1c6eb2ba704941e48ff89c6268.png)
[详解C语言]一文带你认识C语言,让你醍醐灌顶

The latest C language introduction and advanced - the most complete and detailed C language tutorial in history!! Section 1 - overview of C language

C语言实现小游戏【三子棋】注释详细 逻辑清晰 快来看看吧!!
随机推荐
Golang中的错误处理
HCIA基础知识(1)
Flink1.13.6 detailed deployment method
NAT(网络地址转化协议)
通过对射式红外传感器计次实验讲解EXTI中断
WAN technology experiment
第五讲—按键控制LED
ACM模式输入输出练习
HCIA(网络初级综合实验练习)
OGeek Meetup第一期,携手CubeFS火热来袭
[详解C语言]一文带你玩转函数
2022最新直播监控24小时监控(三)直播间弹幕解析
OSPF protocol overview and basic concepts
Introduction to STM32 lesson 1
第四讲—讲解GPIO_Write函数以及相关例程
2022 open source work of the latest text generated image research (papers with code)
[详解C语言]一文带你玩转选择(分支)结构
C语言——字符和字符串、算术运算符、类型转换
[FPGA tutorial case 28] one of DDS direct digital frequency synthesizers based on FPGA -- principle introduction
Text to image intensive reading df-gan:a simple and effective baseline for text to image synthesis