ADUC7122 Analog Devices, ADUC7122 Datasheet - Page 54

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
ADuC7122
UART SERIAL INTERFACE
The ADuC7122 features a 16450-compatible UART. The UART
is a full-duplex, universal, asynchronous receiver/transmitter. A
UART performs serial-to-parallel conversion on data characters
received from a peripheral device, and parallel-to-serial conver-
sion on data characters received from the ARM7TDMI. The
UART features a fractional divider that facilitates high accuracy
baud rate generation and a network addressable mode. The
UART functionality is available on the P1.0 and P1.1 pins of the
ADuC7122.
The serial communication adopts an asynchronous protocol
that supports various word length, stop bits, and parity genera-
tion options selectable in the configuration register.
BAUD RATE GENERATION
The ADuC7122 features two methods of generating the UART
baud rate: normal 450 UART baud rate generation and ADuC7122
fractional divider.
Normal 450 UART Baud Rate Generation
The baud rate is a divided version of the core clock using the
value in COMDIV0 and COMDIV1 MMRs (16-bit value, DL).
The standard baud rate generator formula is
Table 94 lists common baud rate values.
Table 94. Baud Rate Using the Standard Baud Rate Generator
Baud Rate
9600
19,200
115,200
ADuC7122 Fractional Divider
The fractional divider combined with the normal baud rate
generator allows the generating of a wider range of more
accurate baud rates.
Baud
CLOCK
CORE
rate
Figure 34. Baud Rate Generation Options
/(M + N/2048)
DL
0x88
0x44
0x0B
41
16
/2
.
78
2
MHz
DL
Actual Baud Rate
9600
19,200
118,691
FBEN
/16DL
UART
% Error
0%
0%
3%
Rev. 0 | Page 54 of 96
(1)
Calculation of the baud rate using fractional divider is as
follows:
For example, generation of 19,200 baud
where:
M = 1.
N = 0.015 × 2048 = 30.
where Baud Rate = 19,219 bps.
UART REGISTER DEFINITION
The UART interface consists of the following ten registers:
COMTX: 8-bit transmit register
COMRX: 8-bit receive register
COMDIV0: divisor latch (low byte)
COMDIV1: divisor latch (high byte)
COMCON0: line control register
COMCON1: line control register
COMSTA0: line status register
COMIEN0: interrupt enable register
COMIID0: interrupt identification register
COMDIV2: 16-bit fractional baud divide register
COMTX, COMRX, and COMDIV0 share the same address
location. COMTX, COMRX, and COMIEN0 can be accessed
when Bit 7 in the COMCON0 register is cleared. COMDIVx
can be accessed when Bit 7 of COMCON0 is set
Baud
M
M
M
Baud
2048
2048
2048
Rate
N
N
Rate
N
19
. 1
16
16
Baud
015
,
200
41
DL
67
.
78
41
41
41
Rate
16
.
.
2
MHz
.
78
78
2
78
67
MHz
 
MHz
(
1
MHz
M
16
2
2048
30
2048
DL
N
)
2
(2)

Related parts for ADUC7122