4 slave transmitter mode, Nxp semiconductors – NXP Semiconductors P89LPC9321 UM10310 User Manual

Page 77

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

77 of 139

NXP Semiconductors

UM10310

P89LPC9321 User manual

11.6.4 Slave Transmitter mode

The first byte is received and handled as in the Slave Receiver Mode. However, in this
mode, the direction bit will indicate that the transfer direction is reversed. Serial data is
transmitted via P1.3/SDA while the serial clock is input through P1.2/SCL. START and
STOP conditions are recognized as the beginning and end of a serial transfer. In a given
application, the I

2

C-bus may operate as a master and as a slave. In the slave mode, the

I

2

C hardware looks for its own slave address and the general call address. If one of these

addresses is detected, an interrupt is requested. When the microcontrollers wishes to
become the bus master, the hardware waits until the bus is free before the master mode is
entered so that a possible slave action is not interrupted. If bus arbitration is lost in the
master mode, the I

2

C-bus switches to the slave mode immediately and can detect its own

slave address in the same serial transfer.

Fig 35. Format of Slave Receiver mode.

S

W

A

slave address

logic 0 = write

logic 1 = read

from Master to Slave

from Slave to Master

A = acknowledge (SDA LOW)
A = not acknowledge (SDA HIGH)
S = START condition
P = STOP condition
RS = repeated START condition

002aaa932

DATA

DATA

data transferred

(n Bytes + acknowledge)

A

A/A

P/RS

Fig 36. Format of Slave Transmitter mode.

S

R

A

slave address

logic 0 = write

logic 1 = read

from Master to Slave

from Slave to Master

A = acknowledge (SDA LOW)
A = not acknowledge (SDA HIGH)
S = START condition
P = STOP condition

002aaa933

DATA

DATA

data transferred

(n Bytes + acknowledge)

A

A

P

Advertising