Figure 41 cont, Figure 42, Figure 41 – Rainbow Electronics ATmega128L User Manual
Page 97: Atmega128(l)
Advertising
![background image](/manuals/281474/97/background.png)
97
ATmega128(L)
2467B–09/01
Figure 41. Timer/Counter Timing Diagram, with Prescaler (f
clk_I/O
/8)
Figure 42 shows the setting of OCF0 in all modes except CTC mode.
Figure 42. Timer/Counter Timing Diagram, Setting of OCF0, With Prescaler (f
clk_I/O
/8)
Figure 43 shows the setting of OCF0 and the clearing of TCNT0 in CTC mode.
TOVn
TCNTn
MAX - 1
MAX
BOTTOM
BOTTOM + 1
clk
I/O
clk
Tn
(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)
Advertising