beautypg.com

To figure 34, figure 35, figure 36 and, Atmega16(l) – Rainbow Electronics ATmega64L User Manual

Page 76

background image

76

ATmega16(L)

2466B–09/01

Figure 34. Timer/Counter Timing Diagram, no Prescaling

Figure 35 shows the same timing data, but with the prescaler enabled.

Figure 35. Timer/Counter Timing Diagram, with Prescaler (f

clk_I/O

/8)

Figure 36 shows the setting of OCF0 in all modes except CTC mode.

Figure 36. Timer/Counter Timing Diagram, Setting of OCF0, with Prescaler (f

clk_I/O

/8)

clk

Tn

(clk

I/O

/1)

TOVn

clk

I/O

TCNTn

MAX - 1

MAX

BOTTOM

BOTTOM + 1

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)