PWM Resolution and Switching Frequency
PWM Resolution and Switching Frequency
PWM Resolution and Switching Frequency
Timer replayCompare edge-aligned outputs with the timer clock and duty held fixed.
Timer clock
10.24 MHz
Prescaler · 1
Edge-aligned up-counter
Timer clock
10.24 MHz
Prescaler · 1
8-bit PWM · 40 kHz
256 ticks per period · 50% duty
Timer clock
10.24 MHz
Prescaler · 1
8-bit PWM · 40 kHz
256 ticks per period · 50% duty
12-bit PWM · 2.5 kHz
4096 ticks per period · 50% duty
Shared time axis · 16 periods of 8-bit PWM span one period of 12-bit PWM.
Moving the compare edge by one tick changes duty by a smaller fraction of the 4096-tick period.
Timer clock
10.24 MHz
Prescaler · 1
8-bit PWM · 40 kHz
256 ticks per period · 50% duty
12-bit PWM · 2.5 kHz
4096 ticks per period · 50% duty
Shared time axis · 16 periods of 8-bit PWM span one period of 12-bit PWM.
Timer clock
10.24 MHz
Prescaler · 1
8-bit PWM · 40 kHz
256 ticks per period · 50% duty
12-bit PWM · 2.5 kHz
4096 ticks per period · 50% duty
Shared time axis · 16 periods of 8-bit PWM span one period of 12-bit PWM.
Fan and driver at 40 kHz
What current do you measure? Can you hear whine?
LED at 2.5 kHz
How does it look under the intended viewing and camera conditions?
Show conditional guidance
The small-fan example starts at 40 kHz. Motor coils may buzz at 2.5 kHz.
2.5 kHz can suit many LEDs.
Timer clock
10.24 MHz
Prescaler · 1
8-bit PWM · 40 kHz
256 ticks per period · 50% duty
12-bit PWM · 2.5 kHz
4096 ticks per period · 50% duty
Shared time axis · 16 periods of 8-bit PWM span one period of 12-bit PWM.
Fan
Retain 8-bit PWM.
Timer
Raise the clock if the peripheral allows it.
Slow filtered control node
Try the finer setting and check ripple and settling.
The timer clock determines how quickly the counter advances.
Technical boundaries. The diagrams use an edge-aligned counter with a 10.24 MHz clock, a prescaler of 1 and 50% duty. The fan and LED cards pose checks for actual use. Fan current, audible whine and LED appearance are left to those checks.