SPRUIV7B May 2022 – September 2023 AM620-Q1 , AM623 , AM625 , AM625-Q1 , AM625SIP
Table 12-86 lists the receive-only procedure using the polling method.
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Configure the channel according to the mode. | See Table 12-59. | |
Start the channel. | MCSPI_CHCTRL_0/1/2/3[0] EN | 1 |
Wait for end-of-transfer. | MCSPI_CHSTAT_0/1/2/3[2] EOT | =1 |
Read the receiver register. | MCSPI_RX_0/1/2/3 | 0x- |
Stop the channel if no more data is expected. | MCSPI_CHCTRL_0/1/2/3[0] EN | 0 |