This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SPI multiple bytes transfer with USCI in MSP430FR6879.

Hi,

I'm not expert on uC.

The job of the uC is to read voltages, currents, temperature of my system. The ADC conversion  data have to be transferred by SPI (4 wires) to a uP.


The ADC is 12bit so I suppose the SPI should work as 16-bit bus. Unfortunately the USCI SPI works only like 8-bit data bus.

I didn,t find any example similar to my application. How to solve this problem? Do you have some code examples  (master and slave) with 16 bit SPI transfer?

  • When it comes to SPI, just send two 8bit bytes.
    SPI don't care that there is a pause between bytes (or pause between bits even) as it's the CLK that is in charge.

    USCI is buffered so there will not even be a pause between the bytes as long you feed the buffer a new byte rather soon, but still not a big deal if you do it later

**Attention** This is a public forum