Slave Receiver Mode; User Manual - Philips LPC2101 User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
After a repeated START condition, I

11.5.3 Slave Receiver mode

In the slave receiver mode, data bytes are received from a master transmitter. To initialize
the slave receiver mode, user write the Slave Address register (I2ADR) and write the I
Control Set register (I2CONSET) as shown in
Table 119: I2C0CONSET and I2C1CONSET used to configure Slave mode
I2EN must be set to 1 to enable the I
its own slave address or the general call address. The STA, STO and SI bits are set to 0.
After I2ADR and I2CONSET are initialized, the I
its own address or general address followed by the data direction bit. If the direction bit is
0 (W), it enters slave receiver mode. 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
status codes and actions.

User manual

S
SLAVE ADDRESS
From Master to Slave
From Slave to Master
Fig 25. Format of Master Receiver mode
S
SLA
R
A
From Master to Slave
From Slave to Master
Fig 26. A Master Receiver switches to Master Transmitter after sending repeated START
Bit
7
6
Symbol
-
I2EN
Value
-
1
Rev. 01 — 12 January 2006
R
A
DATA
"0" - Write
"1" - Read
2
C may switch to the master transmitter mode.
DATA
A
DATA
A
Data Transferred
(n Bytes + Acknowledge)
Table
5
4
STA
STO
0
0
2
C function. AA bit must be set to 1 to acknowledge
2
UM10161
Chapter 11: I
A
DATA
Data Transferred
(n Bytes + Acknowledge)
A = Acknowledge (SDA low)
A = Not acknowledge (SDA high)
S = START Condition
P = STOP Condition
RS
SLA
W
A
A = Acknowledge (SDA low)
A = Not acknowledge (SDA high)
S = START Condition
P = STOP Condition
SLA = Slave Address
119.
3
2
1
SI
AA
-
0
1
-
C interface waits until it is addressed by
Table 135
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
2
C interfaces
A
P
DATA
A
P
2
C
0
-
-
for the
122

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents