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.

CCS/TMS320F28388D: How to use f28388 SPI in order to send data for DAC 81416

Part Number: TMS320F28388D
Other Parts Discussed in Thread: DAC81416, C2000WARE

Tool/software: Code Composer Studio

On my prototype board F28388 and TI’s DAC module 81416 are installed.

F28388 SPIA is wired to DAC81416.

Now I would like to ask how to send effective data from F28388 to DAC81416.

I am referring DACx1416 document JAJSFP9A, and I would like to send data as “10.5.1.1 Streaming Mode Operation”.

The section of the document says SPI data structure should be 8bit + 16bit + 16bit + ..... The first 8 bit of data is W/R identification and register address.

Then following 16-bit data are the one to be written into register if write mode.

On the other hand, I also referring C2000Ware’s f2838x example projest, especially, spi_ex1_loopback.c.

This example seems to send “16 bit” data stream(16bit + 16bit + 16bit + ....). In other word, 16bit seems to be an unit as sending data.

How should I send first 8bit for DAC81416?