Stop the channel:
Set SPIm.MCSPI_CHxCTRL[0] EN bit to 0
Next command
Main process
Interrupt routine
RX full?
Read SPIm.MCSPI_RXx
READ= 1
No
Yes
Return
Write SPIm.MCSPI_IRQSTATUS
to reset channel status bits
Read SPIm.MCSPI_IRQSTATUS
LAST_TRANSFER = TRUE
READ_COUNT
= w − 1?
LAST_REQUEST
= TRUE
Start the channel:
Set SPIm.MCSPI_CHxCTRL[0] EN bit to 1
Read SPIm.MCSPI_RXx
READ= 1
Yes
No
mcspi-022
Public Version
McSPI Basic Programming Model
www.ti.com
Figure 20-31. Receive Only With Interrupt (Master Normal)
20.6.2.5.1.2 Receive-Only Based on DMA Read Requests
In
, the main process shows the completion of a word transfer in receive-only mode with DMA
read requests.
When the DMA handler completes w - 1 interface accesses, READ_COUNT is assigned the value w - 1.
3018
Multichannel SPI
SWPU177N – December 2009 – Revised November 2010
Copyright © 2009–2010, Texas Instruments Incorporated