
UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
333 of 464
NXP Semiconductors
UM10850
Chapter 23: LPC5410x I2C-bus interfaces (I2C0/1/2)
23.7.6.2 DMA as a Master receiver
A basic sequence for a Master receiver:
•
Software sets up DMA to receive a message.
•
Software causes a slave address with read command to be sent and checks that the
address was acknowledged.
•
Software starts DMA.
•
DMA completes.
•
Software causes a stop or repeated start to be sent.
Software will be invoked to handle any exceptions to the standard transfer.
23.7.6.3 DMA as a Slave transmitter
A basic sequence for a Slave transmitter:
•
Software acknowledges an I
2
C address.
•
Software sets up DMA to transmit a message.
•
Software starts DMA.
•
DMA completes.
23.7.6.4 DMA as a Slave receiver
A basic sequence for a Slave receiver:
•
Software receives an interrupt for a slave address received, and acknowledges the
address.
•
Software sets up DMA to receive a message, less the final data byte.
•
Software starts DMA.
•
DMA completes.
•
Software sets SLVNACK prior to receiving the final data byte.
•
Software receives the final data byte.