aduc7062 Analog Devices, Inc., aduc7062 Datasheet - Page 61

no-image

aduc7062

Manufacturer Part Number
aduc7062
Description
Low-power, Precision Analog Microcontroller, Dual ?-? Adcs, Flash/ee, Arm7tdmi
Manufacturer
Analog Devices, Inc.
Datasheet
Preliminary Technical Data
TIMER0
Timer0 is a 32-bit general-purpose timer, count down or count
up, with a programmable prescaler. The prescaler source can be
the low power 32.768 kHz oscillator, the core clock, or from one
of two external GPIOs. This source can be scaled by a factor of
1, 16, 256, or 32,768. This gives a minimum resolution of 97.66 ns
with a prescaler of 1 (ignoring the external GPIOs).
The counter can be formatted as a standard 32-bit value or as
hours:minutes:seconds:hundredths.
Timer0 has a capture register (T0CAP) that is triggered by a
selected IRQ source initial assertion. When triggered, the current
timer value is copied to T0CAP, and the timer continues to run.
This feature can be used to determine the assertion of an event
with increased accuracy.
Note: Only peripherals that have their IRQ source enabled can
be used with the Timer capture feature.
The Timer0 interface consists of five MMRS.
T0LD, T0VAL, and T0CAP are 32-bit registers and hold 32-bit
unsigned integers. T0VAL and T0CAP are read only.
T0CLRI is an 8-bit register. Writing any value to this register
clears the Timer0 interrupt.
T0CON is the configuration MMR described in Table 74.
Timer0 features a postscaler allowing the user to count between
1 and 256 the number of Timer0 timeouts. To activate the post-
scaler, the user sets Bit 18 and writes the desired number to count
into Bits[24:31] of T0CON. When that number of timeouts has
been reached, Timer0 can generate an interrupt if T0CON[18]
is set.
Note that if the part is in a low power mode, and Timer0 is
clocked from the GPIO or low power oscillator source, Timer0
continues to operate.
32.768kHz OSCILLATOR
FREQUENCY/CD
CORE CLOCK
CORE CLOCK
FREQUENCY
GPIO
1, 16, 256, OR 32768
IRQ[31:0]
PRESCALER
Figure 18. Timer0 Block Diagram
Rev. PrA | Page 61 of 100
CAPTURE
UP/DOWN COUNTER
32-BIT LOAD
32-BIT
Timer0 reloads the value from T0LD when Timer0 overflows.
Timer0 Load Registers
Name:
Address:
Default value:
Access:
Function:
Timer0 Clear Register
Name:
Address:
Access:
Function:
Timer0 Value Register
Name:
Address:
Default value:
Access:
Function:
TIMER1
VALUE
ADuC7060/ADuC7061/ADuC7062
POSTSCALER
T0VAL
0xFFFF0324
0xFFFFFFFF
Read only
T0VAL is a 32-bit register that holds the
current value of Timer0.
T0LD
0xFFFF0320
0x00000000
Read/write
T0LD is a 32-bit register that holds the 32-bit
value that is loaded into the counter.
T0CLRI
0xFFFF032C
Write only
This 32-bit, write-only MMR is written
(with any value) by user code to clear the
interrupt.
8-BIT
TIMER1 IRQ

Related parts for aduc7062