当前位置:网站首页>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 .
边栏推荐
- RIP V2 的简单应用(v2的配置、宣告、手工汇总、RIPV2的认证、沉默接口、加快收敛)
- C语言——while语句、dowhile语句、for循环和循环结构、break语句和continue语句
- HCIA Basics (1)
- Text to image paper intensive reading rat-gan: recursive affine transformation for text to image synthesis
- HCIA Basics (1)
- Text to image paper intensive reading ssa-gan: text to image generation with semantic spatial aware Gan
- 6.30联发科笔试
- [FPGA tutorial case 29] the second DDS direct digital frequency synthesizer based on FPGA - Verilog development
- 第四讲—讲解GPIO_Write函数以及相关例程
- HCIA动态路由OSPF实验
猜你喜欢

OSPF static experiment

HCIA动态路由OSPF实验
![[详解C语言]一文带你玩转函数](/img/44/53cdac9b9cf0d3f77e5da05956c3dc.png)
[详解C语言]一文带你玩转函数

ACM mode input and output exercise

HCIA动态路由RIP基础实验

Solution: various error reporting and pit stepping and pit avoiding records encountered in the alchemist cultivation plan pytoch+deeplearning (III)

TCP的三次握手与四次挥手(简述)

微信小程序:用户微信登录流程(附:流程图+源码)

C语言——第一个程序、打印、变量和常量

NAT network address translation experiment
随机推荐
Three methods that can effectively fuse text and image information -- feature stitching, cross modal attention, conditional batch normalization
Mechanical hard disk Selection Guide -- from the selection experience
2022 latest live broadcast monitoring 24-hour monitoring (III) analysis of barrage in live broadcast room
6.28大华笔试
最新C语言入门与进阶 -史上最全最详细的C语言教程!! 第一节-总览C语言概括
[MySQL] MySQL startup and shutdown commands and some error reports to solve problems
[Database Course Design] SQLSERVER database course design (student dormitory management), course design report + source code + database diagram
C语言——赋值运算符、复合的赋值运算符、自增自减运算符、逗号运算符、条件运算符、goto语句、注释
关于编程的自我介绍和规划
NAT(网络地址转化协议)
C语言——关系运算符和逻辑运算符、if语句、switch语句、分支结构的嵌套
NAT (network address translation protocol)
关于在VS2022或者高级版本运行环境下遇到fopen,strerror等不安全的问题
6.30滴滴面经(一面+二面)
TCP's three handshakes and four waves (brief introduction)
[FPGA tutorial case 29] the second DDS direct digital frequency synthesizer based on FPGA - Verilog development
Codeforces Round #809 (Div. 2), problem: (C) Qpwoeirut And The City
HCIA (network elementary comprehensive experimental exercise)
Tcp的三次握手与四次挥手
Solution: various error reporting and pit stepping and pit avoiding records encountered in the alchemist cultivation plan pytoch+deeplearning (III)