cancel
Showing results for 
Search instead for 
Did you mean: 

2 micro second period with pwm output in stm32f373RCT6

GAGGA.1
Associate II

Hi!,

I am trying to generate pulse with PWM output with 2 micro second period and 50% duty cycle on STM32F373RCT6 on custom board. I have used Timer5.

APB1 frequency is 70MHz.

Prescalar value is 69 to generate counter clock frequency of 1MHz.

ARR value is 2 to give period value of 2 micro second.

Pulse width is 1 to generate 50% duty cycle.

But PWM Output frequency is coming 1.11khz (900 micro second).

Please help me in this matter. If any other information required please let me know.

Regards,

Gaurav

12 REPLIES 12

Because your PLL and clock source setup is wrong or failed.

Output clocks via PA8 MCO and check them

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

>>If any mistake I did please let me know

52.63 KHz x 140 is approximately 8 MHz, not 70 MHz

Poor frequency suggests running from HSI not PLL

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

I will check.