AnsweredAssumed Answered

ADSP-BF537 + ADIS16350 SPI

Question asked by mbek on Jan 10, 2010
Latest reply on Apr 12, 2012 by PrasanthR

Hello,

 

I've bought the DSP and IMU in question, and am utilizing ucLinux in development. I've got the SPI up and running (CPOL=1, CPHA=1), and I assume it is working OK. I've got a few questions though in regard to the communication protocol:

 

Question 1: for example, if I send a packet (2 frames) [0x03 0x00 0x02 0x00] (voltage measurement) several times, and receieve a packet of data: [00 00 00 4A 00 00 00 CA], when looking at the first 2 frames, the first 2 bytes (00 00) are in regard to address 0x02, and the other two bytes (00 4A) in regard to address 0x03, right?

Do I then compose the data simply as 004A0000, or do I do the 12bit twos complement conversion separately on the two groups (0000 and 004A), and then combine the given values?

 

Question 2: if I just wish to read 2 byte data (from ie. 0x1a and 0x1b), can I send a packet with all 0 for the last frame ( [0x1b 0x00 0x1a 0x00 0x00 0x00] ) or must an actual address always be specified?

 

Thank you very much!

Outcomes