English
Language : 

ADUC7036BCPZ Datasheet, PDF (82/132 Pages) Analog Devices – Integrated Precision Battery Sensor for Automotive
ADuC7036
TIMER4—STI TIMER
Timer4 is a general-purpose, 16-bit up/down counter timer with
a programmable prescaler. Timer4 can be clocked from the core
clock or from the low power 32.768 kHz oscillator with a prescaler
of 1, 16, 256, or 32,768.
Timer4 has a capture register (T4CAP) that can be triggered
by the initial assertion of a selected IRQ source. After the capture
register is triggered, the current timer value is copied to T4CAP,
and the timer continues running. This feature can be used to
determine the assertion of an event with increased accuracy.
Timer4 can also be used to drive the serial test interface (STI)
peripheral.
The Timer4 interface consists of five MMRs: T4LD, T4VAL,
T4CAP, T4CLRI, and T4CON. T4LD, T4VAL, and T4CAP are
16-bit registers that hold 16-bit unsigned integers. T4VAL and
T4CAP are read only. T4CLRI is an 8-bit register. Writing any
value to this register clears the interrupt. T4CON is a configuration
MMR and is described in Table 57.
Timer4 Load Register
Name: T4LD
Address: 0xFFFF0380
Default Value: 0x0000
Access: Read/write
Function: This 16-bit register holds the 16-bit value that is
loaded into the counter.
Timer4 Clear Register
Name: T4CLRI
Address: 0xFFFF038C
Access: Write only
Function: This 8-bit, write only MMR is written (with any value)
by user code to clear the interrupt.
Timer4 Value Register
Name: T4VAL
Address: 0xFFFF0384
Default Value: 0xFFFF
Access: Read only
Function: This 16-bit register holds the current value of Timer4.
Time4 Capture Register
Name: T4CAP
Address: 0xFFFF0390
Default Value: 0x0000
Access: Read only
Function: This 16-bit register holds the 32-bit value captured by
an enabled IRQ event.
Timer4 Control Register
Name: T4CON
Address: 0xFFFF0388
Default Value: 0x00000000
Access: Read/write
Function: This 32-bit MMR configures the mode of operation
of Timer4.
16-BIT LOAD
LOW POWER
32.768kHz OSCILLATOR
CORE
CLOCK FREQUENCY
PRESCALER
1, 16, 256, OR 32,768
16-BIT
UP/DOWN COUNTER
TIMER4 IRQ
STI
TIMER4
VALUE
IRQ[31:0]
CAPTURE
Figure 39. Timer4 Block Diagram
Rev. C | Page 82 of 132