Mcbsp As An Spi Slave; Spi Interface With Mcbsp Used As Slave; Bit Values Required To Configure The Mcbsp As An Spi Slave - Texas Instruments Concerto F28M35 Series Technical Reference Manual

Table of Contents

Advertisement

www.ti.com
When the McBSP is configured as described for SPI-master operation, the bit fields for frame-
synchronization pulse width (FWID) and frame-synchronization period (FPER) are overridden, and custom
frame-synchronization waveforms are not allowed. To see the resulting waveform produced on the FSX
pin, see the timing diagrams in
transfer, and remains active until the last bit of the packet is transferred. After the packet transfer is
complete, the FSX signal returns to the inactive state.

15.7.7 McBSP as an SPI Slave

An SPI interface with the McBSP used as a slave is shown in
configured as a slave, DX is used as the SOMI signal and DR is used as the SIMO signal.
The register bit values required to configure the McBSP as a slave are listed in
table are more details about configuration requirements.
Table 15-17. Bit Values Required to Configure the McBSP as an SPI Slave
Required Bit Setting
CLKSTP = 10b or 11b
CLKXP = 0 or 1
CLKRP = 0 or 1
CLKXM = 0
SCLKME = 0
CLKSM = 1
CLKGDV = 1
FSXM = 0
FSXP = 1
XDATDLY = 00b
RDATDLY = 00b
When the McBSP is used as an SPI slave, the master clock and slave-enable signals are generated
externally by a master device. Accordingly, the CLKX and FSX pins must be configured as inputs. The
MCLKX pin is internally connected to the MCLKR signal, so that both the transmit and receive circuits of
the McBSP are clocked by the external master clock. The FSX pin is also internally connected to the FSR
signal, and no external signal connections are required on the MCLKR and FSR pins.
SPRUH22I – April 2012 – Revised November 2019
Submit Documentation Feedback
Section
15.7.4. The signal becomes active before the first bit of a packet
Figure 15-42. SPI Interface With McBSP Used as Slave
McBSP slave
CLKX
DX
DR
FSX
Description
The clock stop mode (without or with a clock delay) is selected.
The polarity of CLKX as seen on the MCLKX pin is positive (CLKXP = 0) or negative (CLKXP =
1).
The polarity of MCLKR as seen on the MCLKR pin is positive (CLKRP = 0) or negative
(CLKRP = 1).
The MCLKX pin is an input pin, so that it can be driven by the SPI master. Because CLKSTP =
10b or 11b, MCLKR is driven internally by CLKX.
The clock generated by the sample rate generator (CLKG) is derived from the CPU clock. (The
sample rate generator is used to synchronize the McBSP logic with the externally-generated
master clock.)
The sample rate generator divides the CPU clock before generating CLKG.
The FSX pin is an input pin, so that it can be driven by the SPI master.
The FSX pin is active low.
These bits must be 0s for SPI slave operation.
Copyright © 2012–2019, Texas Instruments Incorporated
SPI Operation Using the Clock Stop Mode
Figure
15-42. When the McBSP is
Table
SPI-compliant
master
SPICLK
SPISOMI
SPISIMO
SPISTE
C28 Multichannel Buffered Serial Port (McBSP)
15-17. Following the
1077

Advertisement

Table of Contents
loading

Table of Contents