Datasheet

Figure 22-9. Timer/Counter Timing Diagram, with Prescaler (f
clk_I/O
/8)
TOVn
TCNTn
MAX - 1 MAX BOTTOM BOTTOM + 1
clk
I/O
clk
Tn
(clk
I/O
/8)
The next figure shows the setting of OCF2 in all modes except CTC mode.
Figure 22-10. Timer/Counter Timing Diagram, Setting of OCF2, with Prescaler (f
clk_I/O
/8)
OCFn
OCRn
TCNTn
OCRn Value
OCRn - 1 OCRn OCRn + 1 OCRn + 2
clk
I/O
clk
Tn
(clk
I/O
/8)
The figure below shows the setting of OCF2 and the clearing of TCNT2 in CTC mode.
AVR 8-Bit Microcontroller
8-bit Timer/Counter2 with PWM and Asynchronous Ope...
© 2017 Microchip Technology Inc.
Datasheet Complete
40001974A-page 160