SLAU962A December 2025 – June 2026 MSPM33C321A , MSPM33C321A-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