Timer & PWM Engine
fCNT = fCLK ÷ presc—
Tick time—
Period T—
Update rate (UEV)—
Counter ramp (CNT): drag the dashed compare lines
Pin outputs (CH1→R, CH2→G, CH3→B): dashed marks are update events
Scrub
t = 0 s CNT = 0 next UEV …
brightness = duty (cathode)
brightness = 1 − duty (anode)
brightness = 1 − duty (anode)