ADUC7122 Analog Devices, ADUC7122 Datasheet - Page 83

no-image

ADUC7122

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

Specifications of ADUC7122

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

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ADUC7122BBCZ
Manufacturer:
MICREL
Quantity:
231
Part Number:
ADUC7122BBCZ
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ADUC7122BBCZ-RL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
IRQCLRE Register
Name:
Address:
Default Value:
Access:
Table 141. IRQCLRE MMR Bit Designations
Bit
31:26
25
24
23
22
21
20
19
18:0
TIMERS
The ADuC7122 has five general-purpose timers/counters.
The five timers in their normal mode of operation can be either
free-running or periodic.
In free-running mode, the counter decrements/increments
from the maximum/minimum value until zero scale/full scale
and starts again at the maximum/minimum value.
In periodic mode, the counter decrements/increments from the
value in the load register (TxLD MMR) until zero scale/full
scale and starts again at the value stored in the load register.
The value of a counter can be read at any time by accessing its
value register (TxVAL). Timers are started by writing in the
control register of the corresponding timer (TxCON).
In normal mode, an IRQ is generated each time the value of the
counter reaches zero if counting down, or full scale if counting
Timer0
Timer1
Timer2 or wake-up timer
Timer3 or watchdog timer
Timer4
Name
Reserved
IRQ5CLRI
IRQ4CLRI
Reserved
IRQ3CLRI
IRQ2CLRI
IRQ1CLRI
IRQ0CLRI
Reserved
IRQCLRE
0xFFFF0038
0x00000000
Write only
Description
These bits are reserved and should not be
written to.
A 1 must be written to this bit in the IRQ5
interrupt service routine to clear an edge.
A 1 must be written to this bit in the IRQ4
interrupt service routine to clear an edge.
This bit is reserved and should not be
written to.
A 1 must be written to this bit in the IRQ3
interrupt service routine to clear an edge
triggered IRQ3 interrupt.
A 1 must be written to this bit in the IRQ2
interrupt service routine to clear an edge
triggered IRQ2 interrupt.
A 1 must be written to this bit in the IRQ1
interrupt service routine to clear an edge
triggered IRQ1 interrupt.
A 1 must be written to this bit in the IRQO
interrupt service routine to clear an edge
triggered IRQ0 interrupt.
These bits are reserved and should not be
written to.
Rev. 0 | Page 83 of 96
up. An IRQ can be cleared by writing any value to the clear
register of the particular timer (TxCLRI).
The event selection feature allows flexible interrupt generation
based on Timer0 and Timer1. T0CON and T1CON can be used
to configure the interrupt sources, as shown in Table 142. When
either Timer0 or Timer1 expires, an interrupt occurs based on
the event selection in T0CON and T1CON MMRs.
Table 142. Event Selection Numbers
Event Selection
(TxCON[16:12])
00000
00001
00010
00011
00100
00101
00110
00111
01000
01001
01010
01011
01100
01101
01110
01111
10000
10001
TIMER0—LIFETIME TIMER
Timer0 is a general-purpose 48-bit count up or a 16-bit count
up/down timer with a programmable prescaler. Timer0 is
clocked from the core clock, with a prescaler of 1, 16, 256, or
32,768. This gives a minimum resolution of 22 ns when the core
is operating at 41.78 MHz and with a prescaler of 1. Timer0 can
also be clocked from the undivided core clock, internal 32 kHz
oscillator, or external 32 kHz crystal.
In 48-bit mode, Timer0 counts up from zero. The current
counter value can be read from T0VAL0 and T0VAL1.
In 16-bit mode, Timer0 can count up or count down. A 16-bit
value can be written to T0LD that is loaded into the counter. The
current counter value can be read from T0VAL0. Timer0 has a
capture register (T0CAP) that can be triggered by a selected IRQ’s
source initial assertion. When triggered, the current timer value is
copied to T0CAP, and the timer keeps running. This feature can be
used to determine the assertion of an event with more accuracy
than by servicing an interrupt alone.
Timer0 reloads the value from T0LD either when TIMER0
overflows or immediately when T0CLRI is written.
5
15
17
Interrupt
Number
2
3
4
6
7
8
9
10
11
12
13
14
16
18
19
Name
Timer0
Timer1
Wake-up timer (Timer2)
Watchdog timer (Timer3)
Timer4
Reserved
Power supply monitor
Undefined
Flash Block 0
Flash Block 1
ADC
UART
SPI
I2C0 master
I2C0 slave
I2C1 master
I2C1 slave
External IRQ0
ADuC7122

Related parts for ADUC7122