Registers
1455
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Serial Peripheral Interface (SPI)
29.3.12 SPI Transmit Data Register 0 (SPIDAT0)
The SPI transmit data register 0 (SPIDAT0) is shown in
and described in
Figure 29-29. SPI Data Register 0 (SPIDAT0)
31
16
Reserved
R-0
15
0
TXDATA
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 29-20. SPI Data Register 0 (SPIDAT0) Field Descriptions
Bit
Field
Value
Description
31-16
Reserved
0
Reads return zero and writes have no effect.
15-0
TXDATA
0-FFFFh
SPI transmit data. When written, these bits will be copied to the shift register if it is empty. If the
shift register is not empty, the TXBUF will hold the written values. SPIGCR1.ENABLE must be set
to 1 before this register can be written to. Writing a 0 to the SPIGCR1.ENABLE forces the
TXDATA field to 0.
Note:
Irrespective of the character length, the transmit data should be right-justified before writing
to SPIDAT0 register.
Note:
The default data format control register for SPIDAT0 is SPIFMT0. However, it is possible to
reprogram the DFSEL field of SPIDAT1 before using SPIDAT0, to select a different SPIFMT
n
register.