beautypg.com

Figure 66 c, Atmega162/v – Rainbow Electronics ATmega162V User Manual

Page 147

background image

147

ATmega162/V

2513E–AVR–09/03

Figure 66. Timer/Counter Timing Diagram, no Prescaling

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

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

clk_I/O

/8)

Figure 68 shows the setting of OCF2 in all modes except CTC mode.

Figure 68. Timer/Counter Timing Diagram, Setting of OCF2, with Prescaler (f

clk_I/O

/8)

Figure 69 shows the setting of OCF2 and the clearing of TCNT2 in CTC mode.

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)