ADUC7121 Analog Devices, ADUC7121 Datasheet - Page 91

no-image

ADUC7121

Manufacturer Part Number
ADUC7121
Description
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI MCU
Manufacturer
Analog Devices
Datasheet

Specifications of ADUC7121

Mcu Core
ARM7 TDMI
Mcu Speed (mips)
40
Sram (bytes)
8192Bytes
Gpio Pins
32
Adc # Channels
9

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ADUC7121BBCZ
Manufacturer:
AD
Quantity:
416
Part Number:
ADUC7121BBCZ
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ADUC7121BBCZ-RL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
TIMER3—WATCHDOG TIMER
Timer3 has two modes of operation: normal mode and watchdog
mode. The watchdog timer is used to recover from an illegal
software state. When enabled, it requires periodic servicing to
prevent it from forcing a reset of the processor.
Timer3 reloads the value from T3LD either when Timer3
overflows or immediately when T3CLRI is written.
Normal Mode
The Timer3 in normal mode is identical to Timer0 in 16-bit
mode of operation, except for the clock source. The clock source
is the 32.768 kHz oscillator and can be scaled by a factor of 1,
16, or 256. Timer3 also features a capture facility that allows
capture of the current timer value if the Timer2 interrupt is
enabled via IRQEN[5].
Watchdog Mode
Watchdog mode is entered by setting T3CON[5]. Timer3 decre-
ments from the timeout value present in the T3LD register until
0. The maximum timeout is 512 seconds, using the maximum
prescaler divide-by-256 and full scale in T3LD.
User software should only configure a minimum timeout
period of 30 milliseconds. This is to avoid any conflict with
Flash/EE memory page erase cycles, requiring 20 ms to
complete a single page erase cycle and kernel execution.
If T3VAL reaches 0, a reset or an interrupt occurs, depending
on T3CON[1]. To avoid a reset or an interrupt event, any value
must be written to T3ICLR before T3VAL reaches zero. This
reloads the counter with T3LD and begins a new timeout
period.
Once watchdog mode is entered, T3LD and T3CON are write
protected. These two registers cannot be modified until a power-
on reset event resets the watchdog timer. After any other reset
event, the watchdog timer continues to count. The watchdog
timer should be configured in the initial lines of user code to
avoid an infinite loop of watchdog resets.
Timer3 is automatically halted during JTAG debug access and
only recommences counting once JTAG has relinquished control
of the ARM7 core. By default, Timer3 continues to count during
power-down. This can be disabled by setting Bit 0 in T3CON. It is
recommended that the default value is used, that is, the watchdog
timer continues to count during power-down.
LOW POWER
32.768kHz
Figure 38. Timer3 Block Diagram
1, 16, OR 256
PRESCALER
TIMER3 VALUE
16-BIT LOAD
UP/DOWN
COUNTER
16-BIT
WATCHDOG
RESET
TIMER3IRQ
Rev. 0 | Page 91 of 96
Timer3 Interface
Timer3 interface consists of four MMRS as shown in Table 128.
Table 128. Timer3 Interface Registers
Register
T3CON
T3LD
T3VAL
T3CLRI
Timer3 Load Register
This 16-bit MMR holds the Timer3 reload value.
Name:
Address:
Default value:
Access:
Timer3 Value Register
This 16-bit, read-only MMR holds the current Timer3 count value.
Name:
Address:
Default value:
Access:
Timer3 Clear Register
This 8-bit, write-only MMR is written (with any value) by user
code to refresh (reload) Timer3 in watchdog mode to prevent a
watchdog timer reset event.
Name:
Address:
Default value:
Access:
Timer3 Control Register
The 16-bit MMR configures the mode of operation of Timer3
and is described in detail in Table 129.
Name:
Address:
Default value:
Access:
Description
The configuration MMR.
6-bit register (Bit 0 to Bit15); holds 16-bit unsigned
integers.
6-bit register (Bit 0 to Bit 15); holds 16-bit unsigned
integers. This register is read only.
8-bit register. Writing any value to this register clears
the Timer3 interrupt in normal mode or resets a new
timeout period in watchdog mode.
T3LD
0xFFFF0360
0x3BF8
Read and write
T3VAL
0xFFFF0364
0x3BF8
Read only
T3CLRI
0xFFFF036C
0x0000
Write only
T3CON
0xFFFF0368
0x00
Read and write one time only
ADuC7121

Related parts for ADUC7121