beautypg.com

Figure 41, figure 42 and, Figure 43 i, Figure 41 sh – Rainbow Electronics ATmega162V User Manual

Page 98: Atmega162/v

background image

98

ATmega162/V

2513E–AVR–09/03

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.

Figure 43. Timer/Counter Timing Diagram, Clear Timer on Compare Match Mode, with
Prescaler (f

clk_I/O

/8)

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)

OCFn

OCRn

TCNTn

(CTC)

TOP

TOP - 1

TOP

BOTTOM

BOTTOM + 1

clk

I/O

clk

Tn

(clk

I/O

/8)