25.08.2015 Views

UM10139

UM10139 Volume 1: LPC214x User Manual - Fab@Home

UM10139 Volume 1: LPC214x User Manual - Fab@Home

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Philips SemiconductorsVolume 1<strong>UM10139</strong>Chapter 11: I 2 C interfaces11.9.28 State: 0x90Previously 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. Additionaldata 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. Exit11.9.29 State: 0x98Previously addressed with general call. Data has been received, NOT ACK has beenreturned. 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. Exit11.9.30 State: 0xA0A 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.1. Write 0x04 to I2CONSET to set the AA bit.2. Write 0x08 to I2CONCLR to clear the SI flag.3. Exit11.9.31 Slave Transmitter States11.9.32 State: 0xA8Own Slave Address + Read has been received, ACK has been returned. Data will betransmitted, ACK bit will be received.1. Load I2DAT from Slave Transmit buffer with first data byte.2. Write 0x04 to I2CONSET to set the AA bit.3. Write 0x08 to I2CONCLR to clear the SI flag.4. Set up Slave Transmit mode data buffer.5. Increment Slave Transmit buffer pointer.6. Exit11.9.33 State: 0xB0Arbitration lost in Slave Address and R/W bit as bus Master. Own Slave Address + Readhas been received, ACK has been returned. Data will be transmitted, ACK bit will bereceived. STA is set to restart Master mode after the bus is free again.1. Load I2DAT from Slave Transmit buffer with first data byte.2. Write 0x24 to I2CONSET to set the STA and AA bits.© Koninklijke Philips Electronics N.V. 2005. All rights reserved.User manual Rev. 01 — 15 August 2005 169

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!