Philips LPC213 Series User Manual page 144

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
11.9.24 State : 0x70
General call has been received, ACK has been returned. Data will be received and ACK
returned.
11.9.25 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.
11.9.26 State : 0x80
Previously addressed with own Slave Address. Data has been received and ACK has
been returned. Additional data will be read.
11.9.27 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.
User manual
5. Exit.
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
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
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
1. Write 0x04 to I2CONSET to set the AA bit.
2. Write 0x08 to I2CONCLR to clear the SI flag.
3. Exit
Rev. 01 — 24 June 2005
UM10120
2
Chapter 11: I
C interfaces
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
144

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2131Lpc2132Lpc2134Lpc2136Lpc2138

Table of Contents