Stop the channel:
Set SPIm.MCSPI_CHxCTRL[0] EN bit to 0
Next command
Main process
Interrupt routine
RX full?
No
Return
LAST_TRANSFER = TRUE
READ_COUNT
LAST_REQUEST
= TRUE
Start the channel:
Set SPIm.MCSPI_CHxCTRL[0] EN bit to 1
Read SPIm.MCSPI_RXx
READ= 1
= w?
Yes
No
Disable DMA read request:
Reset SPIm.MCSPI_CHxCONF[15] DMAR bit
READ_COUNT = w − 1
mcspi-025
Read SPIm.MCSPI_IRQSTATUS
Write SPIm.MCSPI_IRQSTATUS
to reset channel status bits
Yes
Public Version
www.ti.com
McSPI Basic Programming Model
Figure 20-32. Receive-Only With DMA (Master Normal)
20.6.2.5.2 Master Turbo Receive-Only Procedure
20.6.2.5.2.1 Based on Interrupt Requests
shows the handling procedure for words received by interrupt in master turbo receive-only
mode. The main process shows how the end-of-transfer must be done after all words are received for this
mode.
3019
SWPU177N – December 2009 – Revised November 2010
Multichannel SPI
Copyright © 2009–2010, Texas Instruments Incorporated