当前位置:网站首页>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;
边栏推荐
- DXP shortcut key
- Implementation of binary search in C language
- 期末复习-PHP学习笔记6-字符串处理
- 24C02
- Network, network card and IP configuration
- Keil plug-in Usage Summary
- 套接字socket编程——UDP
- STM32 infrared communication 2
- Wangbohua: development situation and challenges of photovoltaic industry
- Xiashuo think tank: 50 planet updates reported today (including the global architects Summit Series)
猜你喜欢
Network security - packet capture and IP packet header analysis
Virtual machine VMware: due to vcruntime140 not found_ 1.dll, unable to continue code execution
Introduction to ecostruxure (1) IEC61499 new scheme
Final review -php learning notes 11-php-pdo database abstraction layer
nRF52832 GPIO LED
Analysys analysis: online audio content consumption market analysis 2022
TC397 QSPI(CPU)
Assembly learning register
Network security and data in 2021: collection of new compliance review articles (215 pages)
Mailbox application routine of running wild fire RT thread
随机推荐
Can introduction
Shell command, how much do you know?
Account command and account authority
Network security - detailed explanation of VLAN and tunk methods
Three software installation methods
Graphic explanation pads update PCB design basic operation
Video player (II): video decoding
Installation software operation manual (continuous update)
STM32 register
网络安全-VLAN和Tunk方法详解
网络安全-单臂路由、DHCP中继和ICMP协议
Next initializesecuritycontext failed: unknown error (0x80092012) - the revocation function cannot check whether the certificate is revoked.
Program acceleration
网络安全-三层交换技术和内部网络规划
网络安全-ARP协议和防御
Cmake generate map file
Final review -php learning notes 3-php process control statement
Stm32g0 and FreeRTOS learning summary
模拟接口没声明异常抛出异常
ADC basic concepts