Figure 34. Timer/Counter Timing Diagram, no Prescaling
clkI/O
clkTn
(clkI/O/1)
TCNTn
TOVn
MAX - 1
MAX
BOTTOM
BOTTOM + 1
Figure 35 shows the same timing data, but with the prescaler enabled.
Figure 35. Timer/Counter Timing Diagram, with Prescaler (fclk_I/O/8)
clkI/O
clkTn
(clkI/O/8)
TCNTn
TOVn
MAX - 1
MAX
BOTTOM
BOTTOM + 1
Figure 36 shows the setting of OCF0 in all modes except CTC mode.
Figure 36. Timer/Counter Timing Diagram, Setting of OCF0, with Prescaler (fclk_I/O/8)
clkI/O
clkTn
(clkI/O/8)
TCNTn
OCRn
OCFn
OCRn - 1
OCRn
OCRn + 1
OCRn + 2
OCRn Value
76
ATmega16(L)
2466E–AVR–10/02