SPI Registers
www.ti.com
296
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
SPI (Serial Peripheral Interface)
8.6.5 SPI_MODULCTRL Register (offset = 128h) [reset = 4h]
SPI_MODULCTRL is shown in Figure 8-24 and described in Table 8-11.
This register is dedicated to the configuration of the SPI.
Figure 8-24. SPI_MODULCTRL Register
31 30 29 28 27 26 25 24
RESERVED
R-0h
23 22 21 20 19 18 17 16
RESERVED
R-0h
15 14 13 12 11 10 9 8
RESERVED
R-0h
7 6 5 4 3 2 1 0
RESERVED MS PIN34 SINGLE
R-0h R/W-1h R/W-0h R/W-0h
LEGEND: R/W = Read/Write; R = Read only; W1toCl = Write 1 to clear bit; -n = value after reset
Table 8-11. SPI_MODULCTRL Register Field Descriptions
Bit Field Type Reset Description
31-3 RESERVED R 0h
2 MS R/W 1h
Master/ Slave
0h = Master - The module generates the SPICLK and SPIEN
1h = Slave - The module receives the SPICLK and SPIEN
1 PIN34 R/W 0h Pin mode selection: 3-wire vs 4-wire.
This register is used to configure the SPI pin mode, in master or
slave mode.
If asserted the controller only use SIMO,SOMI and SPICLK clock pin
for spi transfers.
0h = SPIEN is used as a chip select.
1h = SPIEN is not used. In this mode all related option to chip select
have no meaning.
0 SINGLE R/W 0h
Channel enable (master mode only)
1h = Channel will be used in master mode. This bit must be set in
Force SPIEN mode.