Philips P89LPC938 User Manual page 87

Single-chip microcontroller
Table of Contents

Advertisement

Philips Semiconductors
Table 84:
Master Receiver mode
Status code
Status of the I
(I2STAT)
hardware
50h
Data byte has
been received;
ACK has been
returned
58h
Data byte has
been received;
NACK has been
returned
Table 85:
Slave Receiver mode
Status code
Status of the I
(I2STAT)
hardware
60H
Own SLA+W has
been received;
ACK has been
received
68H
Arbitration lost in
SLA+R/Was
master; Own
SLA+W has been
received, ACK
returned
70H
General call
address(00H) has
been received,
ACK has been
returned
78H
Arbitration lost in
SLA+R/W as
master; General
call address has
been received,
ACK bit has been
returned
80H
Previously
addressed with
own SLA address;
Data has been
received; ACK
has been returned
User manual
...continued
2
C
Application software response
to/from I2DAT
to I2CON
STA STO SI
Read data byte
0
read data byte
0
Read data byte or 1
read data byte or
0
read data byte
1
2
C
Application software response
to/from I2DAT
to I2CON
STA
no I2DAT action or x
no I2DAT action
x
No I2DAT action
x
or
no I2DAT action
x
No I2DAT action
x
or
no I2DAT action
x
no I2DAT action or x
no I2DAT action
x
Read data byte or x
read data byte
x
Rev. 03 — 7 June 2005
Next action taken by I
STA
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
Next action taken by I
STO SI
AA
0
0
0
Data byte will be received and NOT
ACK will be returned
0
0
1
Data byte will be received and ACK
will be returned
0
0
0
Data byte will be received and NOT
ACK will be returned
0
0
1
Data byte will be received and ACK
will be returned
0
0
0
Data byte will be received and NOT
ACK will be returned
0
0
1
Data byte will be received and ACK
will be returned
0
0
0
Data byte will be received and NOT
ACK will be returned
0
0
1
Data byte will be received and ACK
will be returned
0
0
0
Data byte will be received and NOT
ACK will be returned
0
0
1
Data byte will be received; ACK bit
will be returned
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
UM10119
P89LPC938 User manual
2
C hardware
2
C hardware
87 of 139

Advertisement

Table of Contents
loading

Table of Contents