Spi Registers And Waveforms; Spi Control Registers; Spi Configuration Control Register (Spiccr) - Address 7040H; Spi Configuration Control Register (Spiccr) Field Descriptions - Texas Instruments Concerto F28M35 Series Technical Reference Manual

Table of Contents

Advertisement

SPI Registers and Waveforms

12.3 SPI Registers and Waveforms
This section contains the registers, bit descriptions, and waveforms.

12.3.1 SPI Control Registers

The SPI is controlled and accessed through registers in the control register file.
12.3.1.1 SPI Configuration Control Register (SPICCR)
SPICCR controls the setup of the SPI for operation.
Figure 12-13. SPI Configuration Control Register (SPICCR) — Address 7040h
7
6
SPI SW Reset
CLOCK
POLARITY
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 12-8. SPI Configuration Control Register (SPICCR) Field Descriptions
Bit
Field
7
SPI SW RESET
6
CLOCK
POLARITY
5
Reserved
4
SPILBK
3-0
SPI CHAR3 −
SPI CHAR0
964
C28 Serial Peripheral Interface (SPI)
5
4
Reserved
SPILBK
R-0
R-0
Value
Description
SPI software reset. When changing configuration, you should clear this bit before making changes
and set this bit before resuming operation.
0
Initializes the SPI operating flags to the reset condition. Specifically, the RECEIVER OVERRUN
Flag bit (SPISTS.7), the SPI INT FLAG bit (SPISTS.6), and the TXBUF FULL Flag bit (SPISTS.5)
are cleared. SPISTE will become inactive. SPICLK will be immediately driven to 0 regardless of the
clock polarity. The SPI configuration remains unchanged.
1
SPI is ready to transmit or receive the next character. When the SPI SW RESET bit is a 0, a
character written to the transmitter will not be shifted out when this bit is set. A new character must
be written to the serial data register. SPICLK will be returned to its inactive state one SPICLK cycle
after this bit is set.
Shift Clock Polarity. This bit controls the polarity of the SPICLK signal. CLOCK POLARITY and
CLOCK PHASE (SPICTL.3) control four clocking schemes on the SPICLK pin. See
Section
12.1.5.3.
0
Data is output on rising edge and input on falling edge. When no SPI data is sent, SPICLK is at low
level. The data input and output edges depend on the value of the CLOCK PHASE bit (SPICTL.3)
as follows:
• CLOCK PHASE = 0: Data is output on the rising edge of the SPICLK signal; input data is latched
on the falling edge of the SPICLK signal.
• CLOCK PHASE = 1: Data is output one half-cycle before the first rising edge of the SPICLK
signal and on subsequent falling edges of the SPICLK signal; input data is latched on the rising
edge of the SPICLK signal.
1
Data is output on falling edge and input on rising edge. When no SPI data is sent, SPICLK is at
high level. The data input and output edges depend on the value of the CLOCK PHASE bit
(SPICTL.3) as follows:
• CLOCK PHASE = 0: Data is output on the falling edge of the SPICLK signal; input data is
latched on the rising edge of the SPICLK signal.
• CLOCK PHASE = 1: Data is output one half-cycle before the first falling edge of the SPICLK
signal and on subsequent rising edges of the SPICLK signal; input data is latched on the falling
edge of the SPICLK signal.
Reads return zero; writes have no effect.
SPI loopback. Loop back mode allows module validation during device testing. This mode is valid
only in master mode of the SPI.
0
SPI loop back mode disabled – default value after reset
1
SPI loop back mode enabled, SIMO/SOMI lines are connected internally. Used for module self
tests.
Character Length Control Bits 3-0. These four bits determine the number of bits to be shifted in or
out as a single character during one shift sequence.
by the bit values.
Copyright © 2012–2019, Texas Instruments Incorporated
3
2
SPI CHAR3
SPI CHAR2
R/W-0
R/W-0
Table 12-9
lists the character length selected
SPRUH22I – April 2012 – Revised November 2019
www.ti.com
1
0
SPI CHAR1
SPI CHAR0
R/W-0
R/W-0
Submit Documentation Feedback

Advertisement

Table of Contents
loading

Table of Contents