Figure 25: Format In The Master Transmitter Mode - Philips LPC2119 User Manual

Arm-based microcontroller
Hide thumbs Also See for LPC2119:
Table of Contents

Advertisement

Philips Semiconductors
ARM-based Microcontroller
When the slave address and R/W bit have been transmitted and an acknowledgment bit has been received, the SI bit is set again,
and the possible status codes now are 18h, 20h, or 38h for the master mode, or 68h, 78h, or 0B0h if the slave mode was enabled
(by setting AA=1). The appropriate actions to be taken for each of these status codes are shown in Table 3 to Table 6 in "80C51
Family Derivatives 8XC552/562 Overview" datasheet available on-line at
http://www.semiconductors.philips.com/acrobat/various/8XC552_562OVERVIEW_2.pdf.
S
Slave Address
From Master to Slave
From Slave to Master
Master Receiver Mode:
In the master receiver mode, data is received from a slave transmitter. The transfer is initiated in the same way as in the master
transmitter mode. When the START condition has been transmitted, the interrupt service routine must load the slave address
and the data direction bit to I
When the slave address and data direction bit have been transmitted and an acknowledge bit has been received, the SI bit is
set, and the Status Register will show the status code. For master mode, the possible status codes are 40H, 48H, or 38H. For
slave mode, the possible status codes are 68H, 78H, or B0H. Refer to Table 4 in "80C51 Family Derivatives 8XC552/562
Overview" datasheet available on-line at
http://www.semiconductors.philips.com/acrobat/various/8XC552_562OVERVIEW_2.pdf
for details.
S
Slave Address
From Master to Slave
From Slave to Master
After a repeated START condition, I
I2C Interface
R/W
A
"0" - Write
"1" - Read

Figure 25: Format in the master transmitter mode

2
C Data Register (I2DAT), and then clear the SI bit.
R
A
"0" - Write
"1" - Read
Figure 26: Format of master receiver mode
2
C may switch to the master transmitter mode.
DATA
DATA
A
Data Transferred
(n Bytes + Acknowledge)
A = Acknowledge (SDA low)
A = Not Acknowledge (SDA high)
S = START condition
P = STOP Condition
DATA
A
DATA
Data Transferred
(n Bytes + Acknowledge)
A = Acknowledge (SDA low)
A = Not Acknowledge (SDA high)
S = START condition
P = STOP Condition
138
Preliminary User Manual
LPC2119/2129/2292/2294
P
A/A
P
A
January 08, 2004

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2292Lpc2294

Table of Contents