ADUC7021BCPZ62-RL Analog Devices Inc, ADUC7021BCPZ62-RL Datasheet - Page 71
![IC,MICROCONTROLLER,16-BIT,ARM7 CPU,CMOS,LLCC,40PIN,PLASTIC](/photos/6/50/65062/505-40-lfcsp_sml.jpg)
ADUC7021BCPZ62-RL
Manufacturer Part Number
ADUC7021BCPZ62-RL
Description
IC,MICROCONTROLLER,16-BIT,ARM7 CPU,CMOS,LLCC,40PIN,PLASTIC
Manufacturer
Analog Devices Inc
Series
MicroConverter® ADuC7xxxr
Datasheet
1.USB-I2CLIN-CONV-Z.pdf
(96 pages)
Specifications of ADUC7021BCPZ62-RL
Core Processor
ARM7
Core Size
16/32-Bit
Speed
44MHz
Connectivity
EBI/EMI, I²C, SPI, UART/USART
Peripherals
PLA, PWM, PSM, Temp Sensor, WDT
Number Of I /o
13
Program Memory Size
62KB (62K x 8)
Program Memory Type
FLASH
Ram Size
8K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 3.6 V
Data Converters
A/D 8x12b, D/A 2x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
40-LFCSP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
I
The ADuC7019/20/21/22/24/25/26/27/28/29 support two licensed
I
ware master and a full slave interface. Because the two I
faces are identical, this data sheet describes only I2C0 in detail.
Note that the two masters and one of the slaves have individual
interrupts (see the Interrupt System section).
Note that when configured as an I
ADuC7019/20/21/22/24/25/26/27/28/29 cannot generate a
repeated start condition.
The two GPIO pins used for data transfer, SDAx and SCLx, are
configured in a wired-AND format that allows arbitration in a
multimaster system. These pins require external pull-up resistors.
Typical pull-up values are 10 kΩ.
The I
grammed by the user. This ID can be modified any time a
transfer is not in progress. The user can configure the interface
to respond to four slave addresses.
The transfer sequence of an I
device initiating a transfer by generating a start condition while
the bus is idle. The master transmits the slave device address
and the direction of the data transfer during the initial address
transfer. If the master does not lose arbitration and the slave
acknowledges, the data transfer is initiated. This continues until
the master issues a stop condition and the bus becomes idle.
The I
at any given time. The same I
support master and slave modes.
Serial Clock Generation
The I
transfer. The master channel can be configured to operate in
fast mode (400 kHz) or standard mode (100 kHz).
The bit rate is defined in the I2C0DIV MMR as follows:
where:
f
DIVH = the high period of the clock.
DIVL = the low period of the clock.
Thus, for 100 kHz operation,
and for 400 kHz,
The I2CxDIV registers correspond to DIVH:DIVL.
UCLK
2
2
C interfaces. The I
C-COMPATIBLE INTERFACES
DIVH = DIVL = 0xCF
DIVH = 0x28, DIVL = 0x3C
= clock before the clock divider.
2
2
2
f
C peripheral can be configured only as a master or slave
C master in the system generates the serial clock for a
C bus peripheral address in the I
SERIAL
CLOCK
=
2 (
2
C interfaces are both implemented as a hard-
+
DIVH
f
UCLK
)
+
2
2
C system consists of a master
C channel cannot simultaneously
(2
+
2
DIVL
C master device, the
2
)
C bus system is pro-
2
C inter-
Rev. C | Page 71 of 96
Slave Addresses
The registers I2C0ID0, I2C0ID1, I2C0ID2, and I2C0ID3 contain
the device IDs. The device compares the four I2C0IDx registers
to the address byte. To be correctly addressed, the seven MSBs of
either ID register must be identical to that of the seven MSBs of
the first received address byte. The LSB of the ID registers (the
transfer direction bit) is ignored in the process of address
recognition.
I
The I
discussed in this section.
Table 124. I2CxMSTA Registers
Name
I2C0MSTA
I2C1MSTA
I2CxMSTA are status registers for the master channel.
Table 125. I2C0MSTA MMR Bit Descriptions
Bit
7
6
5
4
3
2
1
0
Table 126. I2CxSSTA Registers
Name
I2C0SSTA
I2C1SSTA
I2CxSSTA are status registers for the slave channel.
ADuC7019/20/21/22/24/25/26/27/28/29
2
C Registers
2
C peripheral interface consists of 18 MMRs, which are
Access
Type
R/W
R
R
R
R
R
R
R
Address
0xFFFF0800
0xFFFF0900
Address
0xFFFF0804
0xFFFF0904
Description
Master transmit FIFO flush. Set by user to flush
the master Tx FIFO. Cleared automatically after
the master Tx FIFO is flushed. This bit also
flushes the slave receive FIFO.
Master busy. Set automatically if the master is
busy. Cleared automatically.
Arbitration loss. Set in multimaster mode if
another master has the bus. Cleared when the
bus becomes available.
No ACK. Set automatically if there is no
acknowledge of the address by the slave
device. Cleared automatically by reading the
I2C0MSTA register.
Master receive IRQ. Set after receiving data.
Cleared automatically by reading the I2C0MRX
register.
Master transmit IRQ. Set at the end of a
transmission. Cleared automatically by writing
to the I2C0MTX register.
Master transmit FIFO underflow. Set
automatically if the master transmit FIFO is
underflowing. Cleared automatically by
writing to the I2C0MTX register.
Master TX FIFO not full. Set automatically if the
slave transmit FIFO is not full. Cleared automati-
cally by writing twice to the I2C0STX register.
Default Value
0x00
0x00
Default Value
0x01
0x01
Access
R/W
R/W
Access
R
R