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.

TMS320F28377S: send 24 bit SPI date to external digital-to-analog (DAC) converter

Part Number: TMS320F28377S


Hi, 

I have a question about the SPI interface between DSP and external DAC.

The DAC i used is AD5683R, which is a 16-bit device but requires another 8 bit for command and address selection. So totally, the data required is 24 bit.

However, the DSP SPI can only send data up to 16 bit. I wonder, how do I send 24 bit from DSP SPI?

  • Jinjing,

    This is a very common question. the C2000 SPI can be configured to transfer 1 to 16 bits per word. To send 24 bits, you would just transmit three 8-bit words. if you use the FIFO, there will be no delay between consecutive words and the chip select will remain active during the full transfer.

    There are various threads on this same topic here on e2e that you can find if you search.

    -Mark