3.10.7.1.1.2 T0CR – Timer0 Control Register

Name: T0CR
Offset: 0x010
Reset: 0x00

Bit 76543210 
 T0PRT0IET0PS[2:0] 
Access RRRR/WR/WR/WR/WR/W 
Reset 00000000 

Bit 7 –  Reserved Bit

This bit is reserved and reads as ‘0’.

Bit 6 –  Reserved Bit

This bit is reserved and reads as ‘0’.

Bit 5 –  Reserved Bit

This bit is reserved and reads as ‘0’.

Bit 4 – T0PR Timer0 Prescaler Reset

Writing T0PR to ‘1’ restarts the watchdog prescaler. Once written to ‘1’, the hardware clears this bit after four clock cycles. Only if the watchdog function is disabled can the watchdog prescaler be restarted.

Bit 3 – T0IE Timer0 Interrupt Enable

Writing T0IE to ‘1’ enables an interval timer interrupt if the I bit in SREG is set. Writing T0IE to ‘0’ disables the interrupt. The corresponding interrupt vector is executed when the T0F flag, located in T0FR, is set.

Bits 2:0 – T0PS[2:0] Timer0 Prescaler Select

The T0PS[2:0] bits determine the Timer0 prescaling clock output (CLKT0). The different prescaling values and their corresponding time-out periods are shown in the following table.
Table 3-89. Timer0 Interrupt Prescaler Selection

T0PS2

T0PS1

T0PS0

Number of Oscillator Cycles

(CLKSRC)

Typical Time-out at TSRC 1/125KHz for CLKT0

00032 cycles0.256 ms
001128 cycles1 ms
0101K cycles8 ms
01164K cycles0.5s
100128K cycles1s
1011M cycles8s
1108M cycles67s
11116M cycles134s