PWM Resolution and Switching Frequency

PWM Resolution and Switching Frequency

Try Press Step once and locate the compare edge on the 8-bit waveform before advancing to the higher-resolution setting.

PWM Resolution and Switching Frequency

Timer replay

Compare edge-aligned outputs with the timer clock and duty held fixed.

Timer clock

10.24 MHz

Prescaler · 1

Edge-aligned up-counter

Clock Counter 0 1 2 PWM output Rollover Time High

The timer clock determines how quickly the counter advances.

Observe The shared time axis shows 16 periods at 40 kHz for every period at 2.5 kHz. The compare edge moves from count 128 in the 8-bit trace to count 2048 in the 12-bit trace.
Explain At the same timer clock, 4096 ticks take 16 times as long as 256 ticks, so the output switches at one-sixteenth the frequency and each tick represents a finer duty adjustment.

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.

Back to the chapter