![NXP Semiconductors SAFE ASSURE Qorivva MPC5601P Reference Manual Download Page 461](http://html.mh-extra.com/html/nxp-semiconductors/safe-assure-qorivva-mpc5601p/safe-assure-qorivva-mpc5601p_reference-manual_1721898461.webp)
Chapter 20 Deserial Serial Peripheral Interface (DSPI)
MPC5602P Microcontroller Reference Manual, Rev. 4
Freescale Semiconductor
461
Figure 20-12. SPI serial protocol overview
Each DSPI has four peripheral chip select (CS
x
) signals that select the slaves with which to communicate
(DSPI_0 has eight CS
x
signals.)
Transfer protocols and timing properties are shared by the three DSPI configurations; these properties are
described independently of the configuration in
Section 20.8.5, “Transfer formats.
The transfer rate and
delay settings are described in
Section 20.8.4, “DSPI baud rate and clock delay generation.
Refer to
Section 20.8.8, “Power saving features
for information on the power-saving features of the DSPI.
20.8.1
Modes of operation
The DSPI modules have four available distinct modes:
•
Master mode
•
Slave mode
•
Module disable mode
•
Debug mode
Master, slave, and module disable modes are module-specific modes while debug mode is a
device-specific mode. All four modes are implemented on this device.
The module-specific modes are determined by bits in the DSPI
x
_MCR. Debug mode is a mode that the
entire device can enter in parallel with the DSPI being configured in one of its module-specific modes.
20.8.1.1
Master mode
In master mode the DSPI can initiate communications with peripheral devices. The DSPI operates as bus
master when the MSTR bit in the DSPI
x
_MCR is set. The serial communications clock (SCK) is
controlled by the master DSPI. All three DSPI configurations are valid in master mode.
In SPI configuration, master mode transfer attributes are controlled by the SPI command in the current TX
FIFO entry. The CTAS field in the SPI command selects which of the eight DSPI
x
_CTARs set the transfer
attributes. Transfer attribute control is on a frame by frame basis.
Refer to
Section 20.8.3, “Serial Peripheral Interface (SPI) configuration
for more details.
DSPI Master
Shift register
Baud rate generator
DSPI Slave
Shift register
SOUT_
x
SIN_
x
SOUT_
x
SIN_
x
SCK_
x
SCK_
x
CS_
x
CS0_
x