Philips P89LPC938 User Manual page 86

Single-chip microcontroller
Table of Contents

Advertisement

Philips Semiconductors
Table 83:
Master Transmitter mode
Status code
Status of the I
(I2STAT)
hardware
30h
Data byte in I2DAT
has been
transmitted, NOT
ACK has been
received
38H
Arbitration lost in
SLA+R/W or data
bytes
Table 84:
Master Receiver mode
Status code
Status of the I
(I2STAT)
hardware
08H
A START
condition has
been transmitted
10H
A repeat START
condition has
been transmitted
38H
Arbitration lost in
NOT ACK bit
40h
SLA+R has been
transmitted; ACK
has been received
48h
SLA+R has been
transmitted; NOT
ACK has been
received
User manual
...continued
2
C
Application software response
to/from I2DAT
to I2CON
STA
Load data byte or 0
no I2DAT action or 1
no I2DAT action or 0
no I2DAT action
1
No I2DAT action
0
or
No I2DAT action
1
2
C
Application software response
to/from I2DAT
to I2CON
STA STO SI
Load SLA+R
x
Load SLA+R or
x
Load SLA+W
no I2DAT action or 0
no I2DAT action
1
no I2DAT action or 0
no I2DAT action or 0
No I2DAT action
1
or
no I2DAT action or 0
no I2DAT action or 1
Rev. 03 — 7 June 2005
Next action taken by I
hardware
STO
SI
AA
0
0
x
Data byte will be transmitted;
ACK bit will be received
0
0
x
Repeated START will be
transmitted;
1
0
x
STOP condition will be
transmitted; STO flag will be
reset
1
0
x
STOP condition followed by a
START condition will be
transmitted. STO flag will be
reset.
2
0
0
x
I
addressed slave will be entered
0
0
x
A START condition will be
transmitted when the bus
becomes free.
Next action taken by I
STA
0
0
x
SLA+R will be transmitted; ACK bit
will be received
0
0
x
As above
SLA+W will be transmitted; I
will be switched to Master Transmitter
Mode
2
0
0
x
I
C-bus will be released; it will enter a
slave mode
0
0
x
A START condition will be
transmitted when the bus becomes
free
0
0
0
Data byte will be received; NOT ACK
bit will be returned
0
0
1
Data byte will be received; ACK bit
will be returned
0
0
x
Repeated START will be transmitted
1
0
x
STOP condition will be transmitted;
STO flag will be reset
1
0
x
STOP condition followed by a START
condition will be transmitted; STO
flag will be reset
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
UM10119
P89LPC938 User manual
2
C
C-bus will be released; not
2
C hardware
2
C-bus
86 of 139

Advertisement

Table of Contents
loading

Table of Contents