I have a Jacinto 5 Eco board.
When I use the FIFO to transmit 2 words of size 8 I can see the chip select going high (active low) for a very short time between the words.
Shouldn't the SPI unit keep the chip select low until all words have been transmitted?
Found this:
"Manual SPI_SCS[n] assertion to keep SPI_SCS[n] active between SPI words. (single channel master
mode only)"
Does that mean that you cannot have multichannel master and keep the chip select alive between words?
But you could change the SINGLE bit between talking to different devices right? No need to RESET the module if you change between MULTI and SINGLE?
I am also unsure what the correct way is to check if the entire FIFO has been transmitted.
#define MCSPI_CHnSTAT_EOT_MASK (1uL << MCSPI_EOT_OFFSET)
//#define MCSPI_CHnSTAT_FIFO_TX_FIN_MASK (MCSPI_CHnSTAT_EOT_MASK | (1uL << MCSPI_TXFFE_OFFSET))
#define MCSPI_EOW_OFFSET 17uL
#define MCSPI_IRQSTATUS_EOW_MASK (1uL << MCSPI_EOW_OFFSET)
With MCSPI_CHnSTAT_FIFO_TX_FIN_MASK the TXFFE bit becomes 0 after transmitting, but after I sent, shouldnt this be 1 as in "tx buffer empty"?