Timer/Counter0 Low byte
Name:
TCNT0L
Offset:
0x28
Reset:
0x00
Access:
-
Bit76543210
(TCNT0[7:0]) TCNT0L
AccessR/WR/WR/WR/WR/WR/WR/WR/W
Reset00000000

Bits 7:0 – (TCNT0[7:0]) TCNT0L[7:0]: Timer/Counter 0 Low byte

Timer/Counter 0 Low byte

TCNT0H and TCNT0L are combined into TCNT0. It also means TCNT0L[7:0] is TCNT0[7:0].

The two Timer/Counter I/O locations (TCNT0H and TCNT0L, combined TCNT0) give direct access, both for read and for write operations, to the Timer/Counter unit 16-bit counter. To ensure that both the high and low bytes are read and written simultaneously when the CPU accesses these registers, the access is performed using an 8-bit temporary High Byte Register (TEMP). This temporary register is shared by all the other 16-bit registers. Refer to Accessing 16-bit Registers for details.

Modifying the counter (TCNT0) while the counter is running introduces a risk of missing a compare match between TCNT0 and one of the OCR0x Registers.

Writing to the TCNT0 Register blocks (removes) the compare match on the following timer clock for all compare units.