Information

The CTARn registers hold clock and transfer attributes. The SPI configuration allows to
select which CTAR to use on a frame by frame basis by setting a field in the SPI
command. See DSPI Clock and Transfer Attributes Registers for information on the
fields of the CTAR registers.
Typical master to slave connections are shown in the following figure. When a data
transfer operation is performed, data is serially shifted a predetermined number of bit
positions. Because the modules are linked, data is exchanged between the master and the
slave. The data that was in the master shift register is now in the shift register of the
slave, and vice versa. At the end of a transfer, the TCF bit in the SR is set to indicate a
completed transfer.
Shift Register
Baud Rate
Generator
Shift Register
SOUT
SCK
PCSx
DSPI Slave
DSPI Master
SIN
SOUT
SIN
SS
SCK
Figure 46-69. SPI Serial Protocol Overview
Generally more than one slave device can be connected to the DSPI master. 6 Peripheral
Chip Select (PCS) signals of the DSPI masters can be used to select which of the slaves
to communicate with. Refer to the chip configuration chapter for the number of PCS
signals used in this MCU.
The three DSPI configurations share transfer protocol and timing properties which are
described independently of the configuration in Transfer Formats . The transfer rate and
delay settings are described in DSPI Baud Rate and Clock Delay Generation.
46.4.1 Start and Stop of DSPI Transfers
The DSPI has two operating states: STOPPED and RUNNING. The states are
independent of DSPI configuration. The default state of the DSPI is STOPPED. In the
STOPPED state no serial transfers are initiated in master mode and no transfers are
responded to in slave mode. The STOPPED state is also a safe state for writing the
various configuration registers of the DSPI without causing undetermined results. In the
RUNNING state serial transfers take place.
The TXRXS bit in the SR indicates what state the DSPI in. The bit is set if the module in
RUNNING state.
Chapter 46 SPI (DSPI)
K20 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc. 1231