Datasheet

Figure 22-1. 8-bit Timer/Counter Block Diagram
Clock Select
Timer/Counter
DATA BUS
OCRnA
OCRnB
=
=
TCNTn
Waveform
Generation
Waveform
Generation
OCnA
OCnB
=
Fixed
TOP
Value
Control Logic
= 0
TOP BOTTOM
Count
Clear
Direction
TOVn
(Int.Req.)
OCnA
(Int.Req.)
OCnB
(Int.Req.)
TCCRnA TCCRnB
Tn
Edge
Detector
( From Prescaler )
clk
Tn
Related Links
5. Pin Configurations
5.2 Pin Descriptions
22.2.1 Definitions
Many register and bit references in this section are written in general form:
n=2 represents the timer/counter number
x=A,B represents the output compare Unit A or B
However, when using the register or bit definitions in a program, the precise form must be used, i.e.,
TCNT2 for accessing timer/counter2 counter value.
The following definitions are used throughout the section:
ATmega48PA/88PA/168PA
8-bit Timer/Counter2 (TC2) with PWM and A...
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40002011A-page 200