Next command
Main process
Interrupt routine
Write SPIm.MCSPI_IRQSTATUS
to reset channel status bits
Read SPIm.MCSPI_IRQSTATUS
Stop the channel:
Set SPIm.MCSPI_CHxCTRL[0] EN bit to 0
RX full?
Read
SPIm.MCSPI_RXx
READ= 1
Return
No
READ_COUNT = w
Yes
Start the channel:
Set SPIm.MCSPI_CHxCTRL[0] EN bit to 1
mcspi-035
Public Version
McSPI Basic Programming Model
www.ti.com
Figure 20-35. Receive Only (Slave)
3022
Multichannel SPI
SWPU177N – December 2009 – Revised November 2010
Copyright © 2009–2010, Texas Instruments Incorporated