SLAU847F October 2022 – March 2026 MSPM0L1105 , MSPM0L1106 , MSPM0L1116 , MSPM0L1117 , MSPM0L1227 , MSPM0L1227-Q1 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346 , MSPM0L2116 , MSPM0L2117 , MSPM0L2227 , MSPM0L2227-Q1 , MSPM0L2228 , MSPM0L2228-Q1
To enable and initialize the SPI, the following steps are necessary:
1. Configure IOMUX with appropriate GPIO pins for which SPI signals are multiplexed to.
2. For each of the frame formats, the SPI is configured using the following steps:
a. If initializing out of reset, ensure that ENABLE bit in the CTL1 register is clear before making any configuration changes.
b. Select and configure the clock pre-scale divisor by writing the CLKSEL and CLKDIV register.
c. Select whether the SPI is a Controller or Peripheral
d. Configure the clock divisor by writing the CLKCTL register.
e. Configure the CTL0 and CTL1 register with based on the protocol, data width and other special configurations.
f. Optionally configure DMA
g. Enable the SPI by setting the ENABLE bit in the CTL1 register