SPRUHZ7K August 2015 – April 2024 AM5706 , AM5708 , AM5716 , AM5718 , AM5718-HIREL
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Start the channel | MCSPI_CHxCTRL[0] EN | 1 |
Wait until last_request = TRUE | ||
Stop the channel | MCSPI_CHxCTRL[0] EN | 0 |
Read the receiver register | MCSPI_RXx | 0x- |
Increment read_count +1 |
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Read MCSPI_IRQSTATUS | MCSPI_IRQSTATUS | 0x- |
Write MCSPI_IRQSTATUS to reset channel status bits | MCSPI_IRQSTATUS[channel x bits] | 0b1111 |
IF: RXx_FULL AND read_count = N - 1 | ||
last_request = TRUE | ||
ELSEIF: read_count ≠ N - 1 | ||
Read the receiver register | MCSPI_RXx | 0x- |
Increment read_count +1 | ||
ENDIF |