Hardware PWM with Timer_A0

Up mode with OUTMOD_7 (reset/set): the output resets on the CCR1 match and sets when the timer wraps at CCR0. CCR0 fixes the period and CCR1 the duty cycle. There is no interrupt at all: the waveform is generated purely by hardware.

What to watch as you step

Open this example