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.

f28377d spi data read



Hi everyone,

I have a question about the spi of f28377d board. The spi has 8-bits and 16-bits transfer but I need to read the data of 24-bits length. How can I do that?

To be more clear, I will send a data of length 8-bits to configure the slave(AD7793)  then, the slave  will send me the data of 24-bit length.

I am trying to do it like below;

After configuring the slave out of the while loop, I should generate 24-bits of clock to read from the slave. Can I write to Txbuf register three consequtive 8-bits of dummy data in while loop to generate a clock length of 24-bits. Is this the way of doing it?

Thank you.

  • QJ,

    With the C28x SPI module, having consecutive words transmitted will generate clocks without a SPISTE transition. In your case, yes, you would configure the SPI to be 8-bit words, and write 3 words of dummy data to generate the 24-bit clock train.

    -Mark