OM13008,598 NXP Semiconductors, OM13008,598 Datasheet - Page 216

no-image

OM13008,598

Manufacturer Part Number
OM13008,598
Description
BOARD LPC XPRESSO LPC122X
Manufacturer
NXP Semiconductors
Series
LPCXpressor
Datasheets

Specifications of OM13008,598

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
568-6642
OM13008
NXP Semiconductors
11.11 Software example
UM10441
User manual
11.11.5.1 State: 0x00
11.11.1 Initialization routine
11.11.2 Start Master Transmit function
11.11.3 Start Master Receive function
11.11.4 I
11.11.5 Non mode specific states
Example to initialize I
Begin a Master Transmit operation by setting up the buffer, pointer, and data count, then
initiating a START.
Begin a Master Receive operation by setting up the buffer, pointer, and data count, then
initiating a START.
Determine the I
Bus Error. Enter not addressed Slave mode and release bus.
2
1. Load ADR with own Slave Address, enable General Call recognition if needed.
2. Enable I
3. Write 0x44 to CONSET to set the EN and AA bits, enabling Slave functions. For
1. Initialize Master data counter.
2. Set up the Slave Address to which data will be transmitted, and add the Write bit.
3. Write 0x20 to CONSET to set the STA bit.
4. Set up data to be transmitted in Master Transmit buffer.
5. Initialize the Master data counter to match the length of the message being sent.
6. Exit
1. Initialize Master data counter.
2. Set up the Slave Address to which data will be transmitted, and add the Read bit.
3. Write 0x20 to CONSET to set the STA bit.
4. Set up the Master Receive buffer.
5. Initialize the Master data counter to match the length of the message to be received.
6. Exit
1. Read the I
2. Use the status value to branch to one of 26 possible state routines.
1. Write 0x14 to CONSET to set the STO and AA bits.
C interrupt routine
Master only functions, write 0x40 to CONSET.
2
C interrupt.
2
2
C status from STA.
All information provided in this document is subject to legal disclaimers.
C state and which state routine will be used to handle it.
2
C Interface as a Slave and/or Master.
Rev. 1.1 — 10 March 2011
Chapter 11: LPC122x I2C-bus controller
UM10441
© NXP B.V. 2011. All rights reserved.
216 of 442

Related parts for OM13008,598