Hello,
I'm using LP-MSPM0G3507 Rev.A and CCS Theia 1.2.0.
I'm trying to send a command to an external peripheral over SPI.
The content of the SPI message must be exactly 0x06, so I tried using the API functions DL_SPI_setDataSize and DL_SPI_transmitData8 in the following way:
DL_SPI_setDataSize(SPI_0_INST, DL_SPI_DATA_SIZE_8); DL_SPI_transmitData8(SPI_0_INST, 0x06);
Unfortunalely, observing the result on a scope I see that when CS go low I get 0x0006 instead of 0x06;
Now, I did set the initial configuration of the SPI in the following way:
because I need to send other 16 bit wide messages before sending the 8 bit command: do I perhaps need to reinitialize SPI to make it work?
Is this bounded to happen because SPI FIFO is 16 bit wide?
Thanks in advance,
Stefano