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.
I am reading the documentation AR1xx_Radar_Interface_Control, specifically the sections regarding the radar message structure (section 2.3) through the SPI message sequence (section 3.2). I am a little bit confused about the byte order in which to send data.
This paragraph:
states that message header and message data that is larger than one byte should be sent in little-endian byte order ie. the least significant byte is sent first. Further down in the document, there is a diagram given that demonstrates sending a SPI message:
It demonstrates sending the SYNC word 0x43211234 by first sending 0x1234 and then sending 0x4321. This suggests breaking a 4B field into two 2B chunks, and sending each 2B chunk in little-endian form.
My question is: if I wanted to transmit a 4B field in the message, 0x12345678, in what byte order should it be sent? Should it be sent as (0x8765, 0x4321), or as (0x4321, 0x8765)?
Cesar,
Let me make sure I understand everything. Here is my understanding of how the protocol should work:
This interpretation would also be consistent with how the SYNC word is sent, as shown in Figure 3.2 we discussed above. Can you confirm whether this is correct, or if we have a conceptual mistake?
Thanks,
Antonio