Deserial Serial Peripheral Interface (DSPI)
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor
23-53
Preliminary
23.4.8.6
Clock Polarity Switching Between DSPI Transfers
If it is desired to switch polarity between non-continuous DSPI frames, the edge generated by the change
in the idle state of the clock occurs one system clock before the assertion of the chip select for the next
frame. In
, time A shows the one clock interval. Time B is user programmable from a
minimum of two system clocks. Refer to
Section 23.3.2.3, “DSPI Clock and Transfer Attributes Registers
Figure 23-36. Polarity Switching Between Frames
23.4.9
Continuous Serial Communications Clock
The DSPI provides the option of generating a continuous SCK signal for slave peripherals that require a
continuous clock.
Continuous SCK is enabled by setting the CONT_SCKE bit in the DSPI
x
_MCR. Continuous SCK is valid
in all configurations.
Continuous SCK is only supported for CPHA = 1. Setting CPHA = 0 will be ignored if the CONT_SCKE
bit is set. Continuous SCK is supported for modified transfer format.
Clock and transfer attributes for the continuous SCK mode are set according to the following rules:
•
When the DSPI is in SPI configuration, CTAR0 shall be used initially. At the start of each SPI
frame transfer, the CTAR specified by the CTAS for the frame will be used.
•
When the DSPI is in DSI configuration, the CTAR specified by the DSICTAS field will be used at
all times.
•
When the DSPI is in CSI configuration, the CTAR selected by the DSICTAS field will be used
initially. At the start of an SPI frame transfer, the CTAR specified by the CTAS value for the frame
will be used. At the start of a DSI frame transfer, the CTAR specified by the DSICTAS field will
be used.
•
In all configurations, the currently selected CTAR will remain in use until the start of a frame with
a different CTAR specified, or the continuous SCK mode is terminated.
It is recommended that the baud rate is the same for all transfers made while using the continuous SCK.
Switching clock polarity between frames while using continuous SCK can cause errors in the transfer.
Continuous SCK operation is not guaranteed if the DSPI is put into module disable mode.
PCS
System Clock
SCK
Frame 1
Frame 0
CPOL = 0
CPOL = 1
A
B