SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
These flows describe the transfer with FIFO.
The McSPI module allows the transfer of one or several words, according to different modes:
For all these flows, the host process contains the main process and the interrupt routine. This routine is called on the IRQ signals or by an internal call if the module is used in polling mode.
For more information, see Section 24.4.4.6, FIFO Buffer Management.
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Write MCSPI_IRQSTATUS to reset channel status bits | MCSPI_IRQSTATUS | 1 |
Write MCSPI_IRQENABLE to enable interrupts | MCSPI_IRQENABLE | 1 |
Write MCSPI_CHxCONF to configure the channel | MCSPI_CHxCONF | 0x- |
Write MCSPI_XFERLEVEL | MCSPI_XFERLEVEL | 0x- |
Start the channel | MCSPI_CHxCTRL[0] EN | 1 |
IF: Receive only | ||
Wait for the write request (TX empty or DMA write) | ||
Write for the transmitter register with data | MCSPI_TXx | 0x- |
ENDIF | ||
Wait for the host event for end of transfer | ||
Stop the channel | MCSPI_CHxCTRL[0] EN | 0 |