SPRUHZ7K August 2015 – April 2024 AM5706 , AM5708 , AM5716 , AM5718 , AM5718-HIREL
Table 24-234 lists the receive-only procedure using the interrupt method.
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Configure the channel according to the mode. | See Table 24-210. | |
Start the channel. | MCSPI_CHxCTRL[0] EN | 1 |
Enable the interrupt for the receiver register. | MCSPI_IRQENABLE[2] RX_FULL_ENABLE | 1 |
Wait for interrupt. | ||
Read the status register. | MCSPI_IRQSTATUS[2] RX_FULL | 1 |
Disable the interrupt if no more data is expected. | MCSPI_IRQENABLE[2] RX_FULL_ENABLE | 0 |
Stop the channel if no more data is expected. | MCSPI_CHxCTRL[0] EN | 0 |
Read the receiver register. | MCSPI_RXx | 0x- |