Figure 28: A Master Receiver Switch To Master Transmitter After Sending Repeated Start; Figure 29: Slave Mode Configuration - Philips LPC2194 User Manual

Table of Contents

Advertisement

Philips Semiconductors
ARM-based Microcontroller
S
SLA
R
From Master to Slave
From Slave to Master

Figure 28: A master receiver switch to master transmitter after sending repeated START

Slave Receiver Mode:
In the slave receiver mode, data bytes are received from a master transmitter. To initialize the slave receiver mode, user should
write the Slave Address Register (I2ADR) and write the I
I2CONSET
I2EN must be set to 1 to enable the I
call address. The STA, STO and SI bits are set to 0.
After I2ADR and I2CONSET are initialized, the I
followed by the data direction bit. If the direction bit is 1(R), it enters slave transmitter mode. After the address and direction bit
have been received, the SI bit is set and a valid status code can be read from the Status Register(I2STAT). Refer to Table 5 in
"80C51 Family Derivatives 8XC552/562 Overview" datasheet available on-line at
http://www.semiconductors.philips.com/acrobat/various/8XC552_562OVERVIEW_2.pdf
for the status codes and actions.
I2C Interface
A
DATA
A
DATA
Data Transferred
(n Bytes + Acknowledge)
2
C Control Set Register (I2CONSET) as shown in Figure 29.
7
6
5
-
I2EN
STA
-
1
0

Figure 29: Slave Mode Configuration

2
C function. AA bit must be set to 1 to acknowledge its own slave address or the general
2
C interface waits until it is addressed by its own address or general address
LPC2119/2129/2194/2292/2294
A
RS
SLA
A = Acknowledge (SDA low)
A = Not Acknowledge (SDA high)
S = START condition
P = STOP Condition
SLA = Slave Address
RS = Repeat START condition
4
3
2
STO
SI
AA
0
0
1
169
Preliminary User Manual
W
A
DATA
A
1
0
-
-
-
-
-
May 03, 2004
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2119Lpc2292Lpc2294

Table of Contents