Start the channel:
Write 1 in MCSPI_CHxCTRL: ENx
Stop the channel:
Write 0 in MCSPI_CHxCTRL: ENx
Main process
FIFO request routine
Write write_request_size
words to MCSPI_TXx
write_count– =
write_request_size
Return
Last_request = TRUE
TX empty?
Yes
No
write_count >=
write_request_size?
No
last_write_request_size
words to MCSPI_TXx
write_count = 0
Read read_request_size words
from MCSPI_RXx
read_count– = read_request_size
RX full?
Yes
No
Read_count = 0?
Yes
No
Read last_read_request_size words
from MCSPI_RXx
read_count = 0
read_count >=
read_request_size?
Yes
No
last_request = TRUE
Read
MCSPI_CHxSTAT
FFxTXE and EOT?
Yes
No
Next command
mcspi-046
Yes
Public Version
www.ti.com
McSPI Basic Programming Model
Figure 20-39. Transmit-Receive Without Word Count
20.6.3.4 Transmit-Only Procedure
shows the flow of a transfer in transmit only mode, with our without word count.
3029
SWPU177N – December 2009 – Revised November 2010
Multichannel SPI
Copyright © 2009–2010, Texas Instruments Incorporated