Deserial Serial Peripheral Interface (DSPI)
MPC5606S Microcontroller Reference Manual, Rev. 7
310 Freescale Semiconductor
 
Figure 11-12. DSPI start and stop state diagram
The transitions are described in Table 11-18.
State transitions from Running to Stopped occur on the next frame boundary if a transfer is in progress, or 
on the next system clock cycle if no transfers are in progress.
11.8.3 Serial Peripheral Interface (SPI) configuration
The SPI configuration transfers data serially using a shift register and a selection of programmable transfer 
attributes. The DSPI is in SPI configuration when the DCONF field in the DSPIx_MCR is 0b00. The SPI 
frames can be from 4 to 16 bits long. The data to be transmitted can come from queues stored in RAM 
external to the DSPI. Host software or an eDMA controller can transfer the SPI data from the queues to a 
first-in first-out (FIFO) buffer. The received data is stored in entries in the receive FIFO (RX FIFO) buffer. 
Host software or an eDMA controller transfers the received data from the RX FIFO to memory external 
to the DSPI. 
The FIFO buffer operations are described in Section 11.8.3.4, transmit First In First Out (TX FIFO) 
buffering mechanism, and Section 11.8.3.5, Receive First In First Out (RX FIFO) buffering mechanism. 
The interrupt and DMA request conditions are described in Section 11.8.7, Interrupts/DMA requests.
The SPI configuration supports two module-specific modes; Master mode and Slave mode. The FIFO 
operations are similar for the Master mode and Slave mode. The main difference is that in Master mode 
Table 11-18. State transitions for start and stop of DSPI transfers 
Transition # Current state Next State Description
0 RESET Stopped Generic power-on reset transition
1 Stopped Running The DSPI starts (transitions from Stopped to Running) when all of 
the following conditions are true:
 • EOQF bit is clear
 • Debug mode is not selected or the FRZ bit is clear
 • HALT bit is clear
2 Running Stopped The DSPI stops (transitions from Running to Stopped) after the 
current frame for any one of the following conditions:
 • EOQF bit is set
 • Debug mode is selected and the FRZ bit is set
 •HALT bit is set
Running
TXRXS = 1
Stopped
TXRXS = 0
RESET
Power-on reset 0
1
2