30.01.2015 Views

UM10211 - Standard ICs

UM10211 - Standard ICs

UM10211 - Standard ICs

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

NXP Semiconductors<br />

<strong>UM10211</strong><br />

Chapter 19: LPC2300 I 2 C0, I 2 C1, I 2 C2<br />

1. Write 0x04 to I2CONSET to set the AA bit.<br />

2. Write 0x08 to I2CONCLR to clear the SI flag.<br />

3. Exit<br />

9.10 Slave Transmitter States<br />

9.10.1 State : 0xA8<br />

Own Slave Address + Read has been received, ACK has been returned. Data will be<br />

transmitted, ACK bit will be received.<br />

1. Load I2DAT from Slave Transmit buffer with first data byte.<br />

2. Write 0x04 to I2CONSET to set the AA bit.<br />

3. Write 0x08 to I2CONCLR to clear the SI flag.<br />

4. Set up Slave Transmit mode data buffer.<br />

5. Increment Slave Transmit buffer pointer.<br />

6. Exit<br />

9.10.2 State : 0xB0<br />

Arbitration lost in Slave Address and R/W bit as bus Master. Own Slave Address + Read<br />

has been received, ACK has been returned. Data will be transmitted, ACK bit will be<br />

received. STA is set to restart Master mode after the bus is free again.<br />

1. Load I2DAT from Slave Transmit buffer with first data byte.<br />

2. Write 0x24 to I2CONSET to set the STA and AA bits.<br />

3. Write 0x08 to I2CONCLR to clear the SI flag.<br />

4. Set up Slave Transmit mode data buffer.<br />

5. Increment Slave Transmit buffer pointer.<br />

6. Exit<br />

9.10.3 State : 0xB8<br />

Data has been transmitted, ACK has been received. Data will be transmitted, ACK bit will<br />

be received.<br />

1. Load I2DAT from Slave Transmit buffer with data byte.<br />

2. Write 0x04 to I2CONSET to set the AA bit.<br />

3. Write 0x08 to I2CONCLR to clear the SI flag.<br />

4. Increment Slave Transmit buffer pointer.<br />

5. Exit<br />

9.10.4 State : 0xC0<br />

Data has been transmitted, NOT ACK has been received. Not addressed Slave mode is<br />

entered.<br />

1. Write 0x04 to I2CONSET to set the AA bit.<br />

2. Write 0x08 to I2CONCLR to clear the SI flag.<br />

<strong>UM10211</strong>_1<br />

© NXP B.V. 2007. All rights reserved.<br />

User manual Rev. 01 — 27 March 2007 449 of 613

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

Saved successfully!

Ooh no, something went wrong!