SPRUIE9D May 2017 – May 2024 DRA74P , DRA75P , DRA76P , DRA77P
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Start the channel | MCSPI_CHxCTRL[0] EN | 1 |
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 | ||
Write the transmitter register with data | MCSPI_TXx | 0x- |
Increment write_count +1 | ||
ELSEIF: write_count ≥ N | ||
last_transfer = TRUE | ||
ENDIF |