SPRUI30H November 2015 ā May 2024 DRA745 , DRA746 , DRA750 , DRA756
When the DMA handler has completed its āNā OCP accesses, write_count is assigned with āNā.
| Step | Register/Bit Field/Programming Model | Value |
|---|---|---|
| Start the channel | MCSPI_CHxCTRL[0] EN | 1 |
| Wait until write_count = N | ||
| Disable DMA write request | MCSPI_CHxCONF[14] DMAW | 0 |
| Wait until last_transfer = TRUE | ||
| Wait for end of transfer | MCSPI_CHxSTAT[2] EOT | =1 |
| 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: TXx_EMPTY AND write_count = N | ||
| last_transfer = TRUE | ||
| ENDIF | ||