I
2
C Controller
MPC885 PowerQUICC Family Reference Manual, Rev. 2
32-2
Freescale Semiconductor
32.1
I
2
C Features
The following is a list of the I
2
C controller’s main features:
•
Two-signal interface (SDA on PB[27] and SCL on PB[26])
•
Support for master and slave I
2
C operation
•
Multiple-master environment support
•
Continuous transfer mode for autoscanning of a peripheral
•
Supports a maximum clock rate of 520 KHz (with a CPM utilization of 25%), assuming a 25-MHz
system clock.
•
Independent, programmable baud-rate generator
•
Supports 7-bit I
2
C addressing
•
Open-drain output signals allow multiple master configuration
•
Local loopback capability for testing
32.2
I
2
C Controller Clocking and Signal Functions
The I
2
C controller can be configured as a master or slave for the serial channel. As a master, the controller’s
BRG provides the transfer clock. The I
2
C BRG takes its input from the BRG clock (BRGCLK), which is
described in
Section 14.3, “Clock Signals.”
SDA and SCL are bidirectional signals connected to a positive supply voltage through an external pull-up
resistor. When the bus is free, both signals are pulled high. The general I
2
C master/slave configuration is
shown in
Figure 32-2
.
Figure 32-2. I
2
C Master/Slave General Configuration
When the I
2
C controller is the master, the SCL clock output, taken directly from the I
2
C BRG, shifts receive
data in and transmit data out through SDA. The transmitter arbitrates for the bus during transmission and
aborts if it loses arbitration. When the I
2
C controller is a slave, the SCL clock input shifts data in and out
through SDA. The SCL frequency can range from DC to BRGCLK/48.
32.3
I
2
C Controller Transfers
To initiate a transfer, the master I
2
C controller sends a message specifying a read or write request to an I
2
C
slave. The first byte of the message consists of a 7-bit slave port address and a R/W request bit. Note that
V
DD
V
DD
Master
Slave
(EEPROM, for example)
SCL
SCL
SDA
SDA
Summary of Contents for PowerQUICC MPC870
Page 98: ...MPC885 PowerQUICC Family Reference Manual Rev 2 I 4 Freescale Semiconductor ...
Page 118: ...MPC885 Overview MPC885 PowerQUICC Family Reference Manual Rev 2 1 20 Freescale Semiconductor ...
Page 158: ...The MPC8xx Core MPC885 PowerQUICC Family Reference Manual Rev 2 3 18 Freescale Semiconductor ...
Page 288: ...MPC885 PowerQUICC Family Reference Manual Rev 2 III 4 Freescale Semiconductor ...
Page 554: ...MPC885 PowerQUICC Family Reference Manual Rev 2 V 6 Freescale Semiconductor ...
Page 1090: ...UTOPIA Interface MPC885 PowerQUICC Family Reference Manual Rev 2 43 8 Freescale Semiconductor ...
Page 1312: ...Byte Ordering MPC885 PowerQUICC Family Reference Manual Rev 2 A 8 Freescale Semiconductor ...
Page 1336: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 16 Freescale Semiconductor ...
Page 1358: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 38 Freescale Semiconductor ...
Page 1370: ...MPC880 MPC885 PowerQUICC Family Reference Manual Rev 2 E 4 Freescale Semiconductor ...
Page 1386: ...Revision History MPC885 PowerQUICC Family Reference Manual Rev 2 I 2 Freescale Semiconductor ...