
Deserial Serial Peripheral Interface (DSPI)
MPC5566 Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
20-37
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.
20.4.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 DSPI
x
_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 20.4.3.4, “Using the TX FIFO Buffering
Section 20.4.3.5, “Using the RX FIFO Buffering Mechanism
.”
The interrupt and DMA request conditions are described in
Section 20.4.9, “Interrupts and DMA
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 the
DSPI initiates and controls the transfer according to the fields in the SPI command field of the TX FIFO
entry. In slave mode the DSPI only responds to transfers initiated by a bus master external to the DSPI and
the SPI command field of the TX FIFO entry is ignored.
20.4.3.1
SPI Master Mode
In SPI master mode the DSPI initiates the serial transfers by controlling the serial communications clock
(SCK
x
) and the peripheral chip select (PCS
x
) signals. The SPI command field in the executing TX FIFO
entry determines which CTARs are used to set the transfer attributes and which PCS
x
signal to assert. The
command field also contains various bits that help with queue management and transfer protocol. The data
field in the executing TX FIFO entry is loaded into the shift register and shifted out on the serial out
(SOUT
x
) pin. In SPI master mode, each SPI frame to be transmitted has a command associated with it
allowing for transfer attribute control on a frame by frame basis.
Section 20.3.2.6, “DSPI PUSH TX FIFO Register (DSPIx_PUSHR)
,” for details on the SPI command
fields.
20.4.3.2
SPI Slave Mode
In SPI slave mode the DSPI responds to transfers initiated by an SPI bus master. The DSPI does not initiate
transfers. Certain transfer attributes such as clock polarity, clock phase and frame size must be set for
successful communication with an SPI master. The SPI slave mode transfer attributes are set in the
DSPI
x
_CTAR0.
Summary of Contents for MPC5566
Page 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Page 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Page 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Page 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Page 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Page 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Page 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...