当前位置:网站首页>National technology n32g45x series about timer timing cycle calculation
National technology n32g45x series about timer timing cycle calculation
2022-06-30 07:34:00 【Old wharf~】
frequency Fpwm=TIMER_CLK/(arr+1)*(psc+1)( Company :hz)
①、TIMER_CLK yes TIMEx Hang on the system clock APB1 Clock frequency on the bus ;
②、arr It's a count ;
③、psc It's the prescaled value ;
for example : The timer is timed 500us,arr And psc Corresponding value ?
1、 First confirm the frequency of each part of the system clock :
RCC_ClocksType RCC_Clocks;
RCC_GetClocksFreqValue(&RCC_Clocks);
These two programs can get the clock frequency of each part ;

2、Fpwm=1/0.0005s=2000hz
3、 hypothesis TIMER_CLK=72MHz, First set up psc The prescaler is 0;
(arr-1)=72000000/2000/(0+1)=36000, namely arr=35999;
边栏推荐
- Halcon: read the camera and binary it
- Final review -php learning notes 9-php session control
- 网络安全-VLAN和Tunk方法详解
- Processes, jobs, and services
- Label the picture below the uniapp picture
- MAX6675 usage notes
- 手机开户股票开户安全吗?开户需要准备什么?
- STM32 key control LED
- Commands and permissions for directories and files
- 记录开发过程中无法使用管理员身份修改系统文件问题
猜你喜欢

Sublime text 3 configuring the C language running environment

期末复习-PHP学习笔记6-字符串处理

Research Report on search business value in the era of big search in 2022

Use of ecostruxure (3) creating composite function blocks

Global digital industry strategy and policy observation in 2021 (China Academy of ICT)

Final review -php learning notes 6- string processing

Stm32g0 porting FreeRTOS

Final review -php learning notes 3-php process control statement

Wangbohua: development situation and challenges of photovoltaic industry

Installation software operation manual (continuous update)
随机推荐
Embedded test process
Sublime text 3 configuring the C language running environment
STM32 infrared communication 3 brief
C language operators
1.someip introduction
网络安全-路由原理
The most convenient serial port screen chip scheme designed at the charging pile in China
将本地电脑文件复制到虚拟机系统中详细方法
手机开户股票开户安全吗?开户需要准备什么?
Disk space, logical volume
Final review -php learning notes 6- string processing
Raspberry pie 4B Getting Started Guide
期末复习-PHP学习笔记9-PHP会话控制
Adjacency matrix representation of weighted undirected graph (implemented in C language)
LabVIEW程序代码更新缓慢
MCU essay
Proteus catalog component names and Chinese English cross reference
Processes, jobs, and services
Implementation of double linked list in C language
Common sorting methods