Registers
1441
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Serial Peripheral Interface (SPI)
29.3 Registers
This section describes the SPI control, data, and pin registers. The offset is relative to the associated base
address of the module. See your device-specific data manual for the memory address of these registers.
Table 29-8. SPI Registers
Offset Address
Acronym
Register Description
Section
0h
SPIGCR0
SPI Global Control Register 0
4h
SPIGCR1
SPI Global Control Register 1
8h
SPIINT0
SPI Interrupt Register
Ch
SPILVL
SPI Interrupt Level Register
10h
SPIFLG
SPI Flag Register
14h
SPIPC0
SPI Pin Control Register 0 (Function)
18h
SPIPC1
SPI Pin Control Register 1 (Direction)
1Ch
SPIPC2
SPI Pin Control Register 2 (Input)
20h
SPIPC3
SPI Pin Control Register 3 (Output)
24h
SPIPC4
SPI Pin Control Register 4 (Set SPIPC3)
28h
SPIPC5
SPI Pin Control Register 5 (Clear SPIPC3)
38h
SPIDAT0
SPI Data Transmit Register 0
3Ch
SPIDAT1
SPI Data Transmit Register 1
(Data Transmit and Format Select)
40h
SPIBUF
SPI Receive Buffer Register
44h
SPIEMU
SPI Receive Emulation Register
48h
SPIDELAY
SPI Delay Register
4Ch
SPIDEF
SPI Default Chip Select Register
50h
SPIFMT0
SPI Data Format Register 0
54h
SPIFMT1
SPI Data Format Register 1
58h
SPIFMT2
SPI Data Format Register 2
5Ch
SPIFMT3
SPI Data Format Register 3
64h
INTVEC1
SPI Interrupt Vector Register 1
29.3.1 SPI Global Control Register 0 (SPIGCR0)
The SPI global control register 0 (SPIGCR0) is shown in
and described in
.
Figure 29-18. SPI Global Control Register 0 (SPIGCR0)
31
16
Reserved
R-0
15
1
0
Reserved
RESET
R-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 29-9. SPI Global Control Register 0 (SPIGCR0) Field Descriptions
Bit
Field
Value
Description
31-1
Reserved
0
Reads return zero and writes have no effect.
0
RESET
Reset bit for the module. This bit needs to be set to 1 before any operation on SPI can be done.
0
SPI is in reset state.
1
SPI is out of reset state.