当前位置:网站首页>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;
边栏推荐
- MAX6675 usage notes
- Digital white paper on total cost management in chain operation industry
- 系统软件开发基础知识
- 视频播放器(一):流程
- Cross compile opencv3.4 download cross compile tool chain and compile (3)
- Stm32g0 Tim interrupt use
- Quick placement of devices by module in Ad
- Commands and permissions for directories and files
- Three software installation methods
- 期末复习-PHP学习笔记3-PHP流程控制语句
猜你喜欢

Local unloading traffic of 5g application

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

線程池——C語言

Cubemx completes STM32F103 dual serial port 485 transceiver transmission

Keil plug-in Usage Summary

Network security ARP protocol and defense

视频播放器(二):视频解码

342 maps covering exquisite knowledge, one of which is classic and pasted on the wall

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

Virtual machine VMware: due to vcruntime140 not found_ 1.dll, unable to continue code execution
随机推荐
Network security and data in 2021: collection of new compliance review articles (215 pages)
Proteus catalog component names and Chinese English cross reference
FreeRTOS timer group
SwiftUI打造一款美美哒自定义按压反馈按钮
Detailed methods for copying local computer files to virtual machine system
String application -- string violent matching (implemented in C language)
Stm32g0 porting FreeRTOS
Spring Festival inventory of Internet giants in 2022
Cmake generate map file
Socket socket programming -- UDP
单测调用对象的私有方法
网络安全-ARP协议和防御
Introduction to ecostruxure (1) IEC61499 new scheme
期末复习-PHP学习笔记8-mysql数据库
Error reporting record
Assembly learning register
Basic knowledge points
Multi whale capital: report on China's education intelligent hardware industry in 2022
Network security ARP protocol and defense
网络安全-抓包和IP包头分析