SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
If the requests are configured in DMA, read_count is assigned with ‘N’ when the DMA handler has completed its ‘N‘ OCP accesses.
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Start the channel | MCSPI_CHxCTRL[0] EN | 1 |
Wait until read_count = N | ||
Stop the channel | MCSPI_CHxCTRL[0] EN | 0 |
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 | ||
Read the receiver register | MCSPI_RXx | 0x- |
Increment read_count +1 | ||
ENDIF |