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 interfaces3. Write 0x08 to I2CONCLR to clear the SI flag.4. Exit5. Load I2DAT with next data byte from Master Transmit buffer.6. Write 0x04 to I2CONSET to set the AA bit.7. Write 0x08 to I2CONCLR to clear the SI flag.8. Increment Master Transmit buffer pointer9. Exit11.9.14 State: 0x30Data has been transmitted, NOT ACK received. A Stop condition will be transmitted.1. Write 0x14 to I2CONSET to set the STO and AA bits.2. Write 0x08 to I2CONCLR to clear the SI flag.3. Exit11.9.15 State: 0x38Arbitration has been lost during Slave Address + Write or data. The bus has beenreleased and not addressed Slave mode is entered. A new Start condition will betransmitted when 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. Exit11.9.16 Master Receive States11.9.17 State: 0x40Previous state was State 08 or State 10. Slave Address + Read has been transmitted,ACK has been received. Data will bereceived and ACK returned.1. Write 0x04 to I2CONSET to set the AA bit.2. Write 0x08 to I2CONCLR to clear the SI flag.3. Exit11.9.18 State: 0x48Slave Address + Read has been transmitted, NOT ACK has been received. A Stopcondition will be transmitted.1. Write 0x14 to I2CONSET to set the STO and AA bits.2. Write 0x08 to I2CONCLR to clear the SI flag.3. Exit© Koninklijke Philips Electronics N.V. 2005. All rights reserved.User manual Rev. 01 — 15 August 2005 166

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

Saved successfully!

Ooh no, something went wrong!