2020-10-19 06:36 AM
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
2020-10-21 05:50 AM
Because your PLL and clock source setup is wrong or failed.
Output clocks via PA8 MCO and check them
2020-10-21 05:52 AM
>>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
2020-10-25 03:05 AM
I will check.