SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
The selection of the working mode is done with the MCSPI_CHCONF_0/1/2/3 register.
| Step | Register/Bit Field/Programming Model | Value |
|---|---|---|
| Set receive mode for the channel. | MCSPI_CHCONF_0/1/2/3[13-12] TRM | 0x1 |
| Configure SPI clock polarity/phase, clock divider, word length, and others for the channel. | MCSPI_CHCONF_0/1/2/3 | 0x- |
| Reset the status bits. | MCSPI_IRQSTATUS | 0x0 |
| Step | Register/Bit Field/Programming Model | Value |
|---|---|---|
| Set transmit mode for the channel. | MCSPI_CHCONF_0/1/2/3[13-12] TRM | 0x2 |
| Configure SPI clock polarity/phase, clock divider, word length, and others for the channel. | MCSPI_CHCONF_0/1/2/3 | 0x- |
| Reset the status bits. | MCSPI_IRQSTATUS | 0x0 |
| Step | Register/Bit Field/Programming Model | Value |
|---|---|---|
| Set transmit and receive mode for the channel. | MCSPI_CHCONF_0/1/2/3[13-12] TRM | 0x0 |
| Configure SPI clock polarity/phase, clock divider, word length, and others for the channel. | MCSPI_CHCONF_0/1/2/3 | 0x- |
| Reset the status bits. | MCSPI_IRQSTATUS | 0x0 |