2023-01-04 01:45 AM
Board: STM32L496ZG
My requirement - 2ms dead time
Frequency - 50hz and Internal clock is 40mhz.
In 40mhz (internal clock) i got expected frequency (50hz) using
Prescaler = 80-1
Peroid value = 10000-1
PWM Counter =5000-1
Then, i reduced my Internal clock has (20mhz) same expected frequency (50hz) using
Prescaler = 40-1
Peroid value = 10000-1
PWM Counter =5000-1 instead of 50hz i got 100hz
Except 20mhz if i set (2.5mhz) and (0.625mhz) i got same expected frequency.
(Why its happening if i set 20mhz?)
Solved! Go to Solution.
2023-01-04 05:05 AM
2023-01-04 04:31 AM
2023-01-04 04:34 AM
System clock = 80mhz
HCLK = 40mhz
APB1 Prescaler = 2
2023-01-04 05:05 AM
JW