Datasheet

22.11.2 TCNT2 – Timer/Counter Register
Name:  TCNT2
Offset:  0x24 [ID-00000312]
Reset:  0x00
Property:  When addressing I/O Registers as data space the offset address is 0x44
When using the I/O specific commands IN and OUT, the I/O addresses 0x00 - 0x3F must be used. When
addressing I/O Registers as data space using LD and ST instructions, 0x20 must be added to these offset
addresses.
The Timer/Counter Register gives direct access, both for read and write operations, to the Timer/Counter
unit 8-bit counter. Writing to the TCNT2 Register blocks (removes) the Compare Match on the following
timer clock. Modifying the counter (TCNT2) while the counter is running, introduces a risk of missing a
Compare Match between TCNT2 and the OCR2 Register.
Bit 7 6 5 4 3 2 1 0
TCNT2[7:0]
Access
R/W R/W R/W R/W R/W R/W R/W R/W
Reset 0 0 0 0 0 0 0 0
Bits 7:0 – TCNT2[7:0]
AVR 8-Bit Microcontroller
8-bit Timer/Counter2 with PWM and Asynchronous Ope...
© 2017 Microchip Technology Inc.
Datasheet Complete
40001974A-page 167