Deserial Serial Peripheral Interface (DSPI)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
19-34
Freescale Semiconductor
19.4.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.
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.
19.4.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 are used to set
the transfer attributes. Transfer attribute control is on a frame by frame basis.
Refer to
Section 19.4.3, “Serial Peripheral Interface (SPI) Configuration
” for more details.
In DSI configuration, master mode transfer attributes are controlled by the DSPI
x
_DSCIR. A detailed
description of the DSPI
x
Section 19.3.2.10, “DSPI DSI Configuration Register
.” The DSISCTAS field in the DSPI
x
_DSICR selects which of the DSPI
x
_CTARs are
used to set the transfer attributes. Transfer attributes are set up during initialization and must not be
changed between frames.
Refer to
Section 19.4.4, “Deserial Serial Interface (DSI) Configuration
,” for more details.
The CSI configuration is only available in master mode. In CSI configuration, the DSI data is transferred
using DSI configuration transfer attributes and SPI data is transferred using the SPI configuration transfer
attributes. In order for the bus slave to distinguish between DSI and SPI frames, the transfer attributes for
the two types of frames must utilize different peripheral chip select signals.
Refer to
Section 19.4.5, “Combined Serial Interface (CSI) Configuration
,” for details.
19.4.1.2
Slave Mode
In slave mode the DSPI responds to transfers initiated by an SPI master. The DSPI operates as bus slave
when the MSTR bit in the DSPI
x
_MCR is negated. The DSPI slave is selected by a bus master by having
the slave’s SS asserted. In slave mode the SCK is provided by the bus master. All transfer attributes are
controlled by the bus master, except the clock polarity, clock phase and the number of bits to transfer which
must be configured in the DSPI slave to communicate correctly.
Summary of Contents for MPC5565
Page 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Page 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Page 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Page 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Page 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Page 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Page 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...