Hello there,
We've to interface the MCU MibSPI module in master mode with a slave SPI device having an instructions-set of 8-bit, but the device register size are 16-bit, so every time when a read/write command is issued, we have to push 16 SPICLK through to complete the operation.
In order to save the number of BUFID locations to exchange data with the slave SPI device, I'm wondering whether it is possible to, while the nCS is asserted ...
Shift the write command using SPIFMT0 with data length of 8 (SOMI = high impedance) Shift 16 SPICLK to write data word using SPIFMT1 with data length of 16 (SOMI = high impedance) Shift the read command using SPIFMT0 (SOMI = high impedance) Shift 16 SPICLK to read data word using SPIFMT1 (MibSPI RXRAM BUFID[x] should contain the 16-bit data word RX from the device)
Questions:
- Does the MCU accept data format switching on the fly like this?
- May I assume the outcome of the last operation (i.e. 16-bit data word stored in TXRAM BUFID[x])?
Many thanks.