SPI Protocol: CLKSTP
11-81
Multichannel Buffered Serial Ports
Figure 11–53.
SPI Configuration: McBSP as the Slave
McBSP slave
CLKX
DX
DR
FSX
SPI compliant
master
SCK
MISO
MOSI
SS
The clock stop mode (CLKSTP) of the McBSP provides compatibility with the
SPI protocol. The McBSP supports two SPI transfer formats which are specified
by the clock stop mode field (CLKSTP) in the SPCR. The clock stop mode field
(CLKSTP) in conjunction with the CLKXP bit in the PCR allows serial clocks to
be stopped between transfers using one of four possible timing variations, as
shown in Table 11–21. Figure 11–54 and Figure 11–55 show the timing
diagrams of the two SPI transfer formats and the four timing variations.
Table 11–21. SPI-Mode Clock Stop Scheme
CLKSTP
CLKXP
Clock Scheme
0X
X
Clock stop mode disabled. Clock enabled for non-SPI mode.
10
0
Low inactive state without delay. The McBSP transmits data on the rising edge
of CLKX and receives data on the falling edge of CLKR.
11
0
Low inactive state with delay. The McBSP transmits data one-half cycle ahead
of the rising edge of CLKX and receives data on the rising edge of CLKR.
10
1
High inactive state without delay. The McBSP transmits data on the falling
edge of CLKX and receives data on the rising edge of CLKR.
11
1
High inactive state with delay. The McBSP transmits data one-half cycle ahead
of the falling edge of CLKX and receives data on the falling edge of CLKR.