Hard or soft reset
Next command
Main process
Read SPIm.MCSPI_SYSSTATUS
SPIm.MCSPI_SYSSTATUS
[0] = 1?
Yes
No
Module configuration:
Write SPIm.MCSPI_MODULCTRL
Write SPIm.MCSPI_SYSCONFIG
mcspi-018
Public Version
McSPI Basic Programming Model
www.ti.com
20.6 McSPI Basic Programming Model
20.6.1 Initialization of Modules
shows the overview of the module initialization flow process.
and
show the steps required to configure McSPI modes.
Figure 20-26. Module Initialization Flow
NOTE:
Before the SPIm.
[0] RESETDONE bit is set, the CLK and CLKSPIREF
clocks must be provided to the module.
To avoid unpredictable behavior, reset the module before changing from master mode to
slave mode, or vice versa.
20.6.2 Transfer Procedures without FIFO
In the subsections below, the transfer procedures are described without FIFO using
(
[27:28] FFER and FFEW = 0).
The McSPI allows the transfer of one or more words based on the different modes:
•
Master normal, master turbo, slave
•
Transmit-and-receive, transmit-only, receive-only
•
Write and read requests: Interrupts, DMA
3012
Multichannel SPI
SWPU177N – December 2009 – Revised November 2010
Copyright © 2009–2010, Texas Instruments Incorporated