Control Registers
1171
SPNU503C – March 2018
Copyright © 2018, Texas Instruments Incorporated
Multi-Buffered Serial Peripheral Interface Module (MibSPI) with Parallel Pin
Option (MibSPIP)
24.9.16 SPI Transmit Data Register 1 (SPIDAT1)
NOTE:
Writing to only the control fields, bits 28 through 16, does not initiate any SPI transfer in
master mode. This feature can be used to set up SPICLK phase or polarity before actually
starting the transfer by only updating the DFSEL bit field to select the required phase and
polarity combination.
Figure 24-41. SPI Transmit Data Register 1 (SPIDAT1) [offset = 3Ch]
31
29
28
27
26
25
24
23
16
Reserved
CSHOLD
Rsvd
WDEL
DFSEL
CSNR
R-0
R/W-0
R-0
R/W-0
R/W-0
R/W-0
15
0
TXDATA
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 24-23. SPI Transmit Data Register 1 (SPIDAT1) Field Descriptions
Bit
Field
Value
Description
31-29
Reserved
0
Reads return 0. Writes have no effect.
28
CSHOLD
Chip select hold mode. The CSHOLD bit is supported in master mode only in compatibility-
mode of SPI, (it is ignored in slave mode). CSHOLD defines the behavior of the chip select line
at the end of a data transfer.
0
The chip select signal is deactivated at the end of a transfer after the T2CDELAY time has
passed. If two consecutive transfers are dedicated to the same chip select this chip select
signal will be deactivated for at least 2VCLK cycles before it is activated again.
1
The chip select signal is held active at the end of a transfer until a control field with new data
and control information is loaded into SPIDAT1. If the new chip select number equals the
previous one, the active chip select signal is extended until the end of transfer with CSHOLD
cleared, or until the chip-select number changes.
27
Reserved
0
Reads return 0. Writes have no effect.
26
WDEL
Enable the delay counter at the end of the current transaction.
Note: The WDEL bit is supported in master mode only. In slave mode, this bit will be
ignored.
0
No delay will be inserted. However, the SPICS pins will still be de-activated for at least for
2VCLK cycles if CSHOLD = 0.
Note: The duration for which the SPICS pin remains deactivated depends upon the time
taken to supply a new word after completing the shift operation. If TXBUF is already full,
then the SPICS pin will be deasserted for at least two VCLK cycles (if WDEL = 0).
1
After a transaction, WDELAY of the corresponding data format will be loaded into the delay
counter. No transaction will be performed until the WDELAY counter overflows. The SPICS pins
will be de-activated for at least ( 2) × VCLK_Period duration.
25-24
DFSEL
Data word format select.
0
Data word format 0 is selected.
1h
Data word format 1 is selected.
2h
Data word format 2 is selected.
3h
Data word format 3 is selected.
23-16
CSNR
0-FFh
Chip select (CS) number. CSNR defines the chip select pins that will be activated during the
data transfer. CSNR is a bit-mask that controls all chip select pins. See
Note: If your MibSPI has less than 8 chip select pins, all unused upper bits will be 0. For
example, MiBSPI3 has 6 chip select pins, if you write FFh to CSNR, the actual number
stored in CSNR is 3Fh.