Contiguous Transfers With Spien Kept Active (2 Data Pins Interface Mode) - Texas Instruments CC3200 Technical Reference Manual

Simplelink wi-fi and internet-of things solution, a single chip wireless mcu
Hide thumbs Also See for CC3200:
Table of Contents

Advertisement

Functional Description
In 3-pin mode: the MCSPI_MODULCTRL[1] PIN34 and MCSPI_MODULCTRL[0] SINGLE bits are set
to 1, and the controller transmits the SPI word once the transmit register or FIFO is not empty.
In 4-pin mode: the MCSPI_MODULCTRL[1] PIN34 bit is set to 0 and MCSPI_MODULCTRL[0] SINGLE
bit is set to 1, and the SPIEN assertion and deassertion is controlled by software.
8.2.3.3.1 Keep SPIEN Active Mode (Force SPIEN)
Continuous transfers are manually allowed, by keeping the SPIEN signal active for successive SPI words.
Several sequences (configuration – enable – disable of the channel) can be run without deactivating the
SPIEN line.
The 'keep SPIEN active' mode is authorized when:
The parameters of the transfer are loaded in the configuration register (MCSPI_CHCONF)
The state of the SPIEN signal is programmable:
– Writing 1 into the FORCE bit of the MCSPI_CHCONF register drives the SPIEN line high when
MCSPI_CHCONF[EPOL] is set to zero, and drives it low when MCSPI_CHCONF[EPOL] is set.
– Writing 0 into the FORCE bit of the MCSPI_CHCONF register drives the SPIEN line low when
MCSPI_CHCONF[EPOL] is set to zero, and drives it high when MCSPI_CHCONF[EPOL] is set.
Once the channel is enabled, the SPIEN signal is activated with the programmed polarity. The start of the
transfer depends on the status of the transmitter register and the status of the receiver register.
The status of the serialization completion of each SPI word is given by the EOT bit of the SPI_CHSTAT
register, set when received data is loaded from the shift register to the receiver register.
A change in the configuration parameters is directly propagated on the SPI interface. If the SPIEN signal
is activated, the user must ensure that the configuration is changed only between SPI words, to avoid
corrupting the current transfer. SPIEN polarity, the SPICLK phase, and SPICLK polarity must not be
modified when the SPIEN signal is activated. The channel can be disabled and enabled while the SPIEN
signal is activated.
At the end of the last SPI word, the channel must be deactivated (MCSPI_CHCTRL[En] set to 0) and the
SPIEN can be forced to its inactive state (MCSPI_CHCONF[Force]).
Figure 8-5. Contiguous Transfers with SPIEN Kept Active (2 Data Pins Interface Mode)
Figure 8-5
shows successive transfers with SPIEN kept active low, with a different configuration for each
SPI word in single data pin interface mode and two data pins interface mode. The arrows indicate when
the channel is disabled before a change in the configuration parameters, and enabled again.
8.2.3.4
Clock Ratio Granularity
The clock division ratio is defined by the MCSPI_CHCONF[CLKD] register, with power of two granularity
leading to a clock division in range 1 to 32768; in this case the duty cycle is always 50%.
252
SPI (Serial Peripheral Interface)
Copyright © 2014–2018, Texas Instruments Incorporated
SWRU367D – June 2014 – Revised May 2018
Submit Documentation Feedback
www.ti.com

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents