Datasheet

Table Of Contents
Data Sheet ADuC7060/ADuC7061
Rev. D | Page 73 of 108
TIMER3
Timer3 is a general-purpose, 16-bit, count up/count down
timer with a programmable prescaler. Timer3 can be clocked
from the core clock or the low power 32.768 kHz oscillator with
a prescaler of 1, 16, 256, or 32,768.
Timer3 has a capture register (T3CAP) that can be triggered by
a selected IRQ source initial assertion. Once triggered, the
current timer value is copied to T3CAP, and the timer continues
to run. This feature can be used to determine the assertion of an
event with increased accuracy.
The Timer3 interface consists of five MMRs.
T3LD, T3VAL, and T3CAP are 16-bit registers and hold
16-bit, unsigned integers. T3VAL and T3CAP are read
only.
T3CLRI is an 8-bit register. Writing any value to this
register clears the interrupt.
T3CON is the configuration MMR, described in Table 83.
Timer3 Load Registers
Name: T3LD
Address: 0xFFFF0380
Default value: 0x0000
Access: Read and write
Function: T3LD is a 16-bit register that holds the
16-bit value that is loaded into the counter.
Timer3 Clear Register
Name: T3CLRI
Address: 0xFFFF038C
Access: Write only
Function: This 8-bit, write-only MMR is written (with
any value) by user code to clear the
interrupt.
Timer3 Value Register
Name: T 3VA L
Address: 0xFFFF0384
Default value: 0xFFFF
Access: Read only
Function: T3VAL is a 16-bit register that holds the
current value of Timer3.
Time3 Capture Register
Name: T3CAP
Address: 0xFFFF0390
Default value: 0x0000
Access: Read only
Function: This is a 16-bit register that holds the 16-bit
value captured by an enabled IRQ event.
Timer3 Control Register
Name: T3CON
Address: 0xFFFF0388
Default value: 0x00000000
Access: Read and write
Function: This 32-bit MMR configures the mode of
operation of Timer3.