9 slave receiver states – NXP Semiconductors LPC24XX UM10237 User Manual

Page 607

Advertising
background image

UM10237_4

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

User manual

Rev. 04 — 26 August 2009

607 of 792

NXP Semiconductors

UM10237

Chapter 22: LPC24XX I

2

C interfaces I

2

C0/1/2

1. Read data byte from I2DAT into Master Receive buffer.

2. Write 0x14 to I2CONSET to set the STO and AA bits.

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

4. Exit

10.9 Slave Receiver states

10.9.1 State : 0x60

Own Slave Address + Write has been received, ACK has been returned. Data will be
received and ACK returned.

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

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

3. Set up Slave Receive mode data buffer.

4. Initialize Slave data counter.

5. Exit

10.9.2 State : 0x68

Arbitration has been lost in Slave Address and R/W bit as bus Master. Own Slave Address
+ Write has been received, ACK has been returned. Data will be received and ACK will be
returned. STA is set to restart Master mode after the bus is free again.

1. Write 0x24 to I2CONSET to set the STA and AA bits.

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

3. Set up Slave Receive mode data buffer.

4. Initialize Slave data counter.

5. Exit.

10.9.3 State : 0x70

General call has been received, ACK has been returned. Data will be received and ACK
returned.

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

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

3. Set up Slave Receive mode data buffer.

4. Initialize Slave data counter.

5. Exit

10.9.4 State : 0x78

Arbitration has been lost in Slave Address + R/W bit as bus Master. General call has been
received and ACK has been returned. Data will be received and ACK returned. STA is set
to restart Master mode after the bus is free again.

1. Write 0x24 to I2CONSET to set the STA and AA bits.

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

Advertising