Datasheet

ADuC7124/ADuC7126 Data Sheet
Rev. C | Page 92 of 108
Timer0 (RTOS Timer)
Timer0 is a general-purpose, 16-bit timer (count down) with a
programmable prescaler. The prescaler source is the core clock
frequency (HCLK) and can be scaled by a factor of 1, 16, or 256.
Timer0 can be used to start ADC conversions, as shown in the
block diagram in Figure 53.
09123-036
32.768kHz
OSCILLATOR
UCLK
HCLK
PRESCALER
รท1, 16, OR 256
16-BIT
DOWN
COUNTER
16-BIT
LOAD
TIMER0
VALUE
TIMER0 IRQ
ADC CONVERSION
Figure 53. Timer0 Block Diagram
The Timer0 interface consists of four MMRs: T0LD, T0VAL,
T0CON, and T0CLRI.
T0LD Register
Name: T0LD
Address: 0xFFFF0300
Default Value: 0x0000
Access: Read/write
T0LD is a 16-bit load register.
T0VAL Register
Name: T0VAL
Address: 0xFFFF0304
Default Value: 0xFFFF
Access: Read only
T0VAL is a 16-bit read-only register representing the current
state of the counter.
T0CON Register
Name: T0CON
Address: 0xFFFF0308
Default Value: 0x0000
Access: Read/write
T0CON is the configuration MMR described in Table 141.