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.

TMS320F28027: How to receive 24bit data over SPI ?

Part Number: TMS320F28027


Hello,

For my project, I am interfacing BMP388 presure sensor  with F28027 through SPI. To read  from the sensor you have to send command byte and then recieve a 24 bit [dummy byte:byte1:byte2] as shown bellow:

but the F28027 buffer can only handle 16bit. So how to receive24 bits through SPI ?

Regards,

  • Younes,

    The thread you linked to describes exactly how to do this. What about the previous thread is unclear?

    I see that the difference in this sensor is that you have 4 8-bit words being transmitted in a single frame, so a total of 32 bits. You could send 2 16-bit words, or 4 8-bit words. 

    Remember that this SPI is just a big shift register, every time you transmit a bit, one will be latched in. So by transmitting the 32-bits, you really are only "sending" the 8 bit command, and can "Send" 24 bits of dummy data. You would receive 32 bits as well, but you can ignore the first 16  bits.

    -Mark