Table 73, Nxp semiconductors – NXP Semiconductors P89LPC9321 UM10310 User Manual

Page 79

Advertising
background image

UM10310

All information provided in this document is subject to legal disclaimers.

© NXP B.V. 2010. All rights reserved.

User manual

Rev. 2 — 1 November 2010

79 of 139

NXP Semiconductors

UM10310

P89LPC9321 User manual

Table 73.

Master Transmitter mode

Status code
(I2STAT)

Status of the I

2

C

hardware

Application software response

Next action taken by I

2

C

hardware

to/from I2DAT

to I2CON

STA

STO

SI

AA

08H

A START
condition has
been transmitted

Load SLA+W

x

0

0

x

SLA+W will be transmitted;
ACK bit will be received

10H

A repeat START
condition has
been transmitted

Load SLA+W or

Load SLA+R

x

0

0

x

As above; SLA+W will be
transmitted; I

2

C-bus switches

to Master Receiver Mode

18h

SLA+W has been
transmitted; ACK
has been received

Load data byte or

0

0

0

x

Data byte will be transmitted;
ACK bit will be received

no I2DAT action
or

1

0

0

x

Repeated START will be
transmitted;

no I2DAT action
or

0

1

0

x

STOP condition will be
transmitted;

STO flag will be reset

no I2DAT action

1

1

0

x

STOP condition followed by a
START condition will be
transmitted; STO flag will be
reset.

20h

SLA+W has been
transmitted;
NOT-ACK has
been received

Load data byte or

0

0

0

x

Data byte will be transmitted;
ACK bit will be received

no I2DAT action
or

1

0

0

x

Repeated START will be
transmitted;

no I2DAT action
or

0

1

0

x

STOP condition will be
transmitted; STO flag will be
reset

no I2DAT action

1

1

0

x

STOP condition followed by a
START condition will be
transmitted; STO flag will be
reset

28h

Data byte in
I2DAT has been
transmitted; ACK
has been received

Load data byte or

0

0

0

x

Data byte will be transmitted;

ACK bit will be received

no I2DAT action
or

1

0

0

x

Repeated START will be
transmitted;

no I2DAT action
or

0

1

0

x

STOP condition will be
transmitted; STO flag will be
reset

no I2DAT action

1

1

0

x

STOP condition followed by a
START condition will be
transmitted; STO flag will be
reset

Advertising