Figure 27: A Master Receiver Switch To Master Transmitter After Sending Repeated Start - Philips LPC2119 User Manual

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

Advertisement

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

Figure 27: 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
DATA
A
A
DATA
Data Transferred
(n Bytes + Acknowledge)
2
C Control Set Register (I2CONSET) as shown in Figure 28.
7
6
5
-
I2EN
STA
-
1
0
Figure 28: 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
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
139
Preliminary User Manual
LPC2119/2129/2292/2294
DATA
W
A
A
1
0
-
-
-
-
-
January 08, 2004
P

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2292Lpc2294

Table of Contents