NXP Semiconductors LPC24XX UM10237 User Manual

Page 608

Advertising
background image

UM10237_4

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

User manual

Rev. 04 — 26 August 2009

608 of 792

NXP Semiconductors

UM10237

Chapter 22: LPC24XX I

2

C interfaces I

2

C0/1/2

3. Set up Slave Receive mode data buffer.

4. Initialize Slave data counter.

5. Exit

10.9.5 State : 0x80

Previously addressed with own Slave Address. Data has been received and ACK has
been returned. Additional data will be read.

1. Read data byte from I2DAT into the Slave Receive buffer.

2. Decrement the Slave data counter, skip to step 5 if not the last data byte.

3. Write 0x0C to I2CONCLR to clear the SI flag and the AA bit.

4. Exit.

5. Write 0x04 to I2CONSET to set the AA bit.

6. Write 0x08 to I2CONCLR to clear the SI flag.

7. Increment Slave Receive buffer pointer.

8. Exit

10.9.6 State : 0x88

Previously addressed with own Slave Address . Data has been received and NOT ACK
has been returned. Received data will not be saved. Not addressed Slave mode is
entered.

1. Write 0x04 to I2CONSET to set the AA bit.

2. Write 0x08 to I2CONCLR to clear the SI flag.

3. Exit

10.9.7 State : 0x90

Previously addressed with general call. Data has been received, ACK has been returned.
Received data will be saved. Only the first data byte will be received with ACK. Additional
data will be received with NOT ACK.

1. Read data byte from I2DAT into the Slave Receive buffer.

2. Write 0x0C to I2CONCLR to clear the SI flag and the AA bit.

3. Exit

10.9.8 State : 0x98

Previously addressed with general call. Data has been received, NOT ACK has been
returned. Received data will not be saved. Not addressed Slave mode is entered.

1. Write 0x04 to I2CONSET to set the AA bit.

2. Write 0x08 to I2CONCLR to clear the SI flag.

3. Exit

10.9.9 State : 0xA0

A Stop condition or repeated Start has been received, while still addressed as a Slave.
Data will not be saved. Not addressed Slave mode is entered.

Advertising