Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 22625

Re: How To obtain 32 bit Engineering Data from ADIS16485 IMU

$
0
0

Hi TM,

 

Thank you for the post.  Here is the process that I would use:

  1. Read X_GYRO_OUT in to a 16-bit, binary variable <data>
  2. Shift  X_GYRO_OUT up by 16 bits, which translates <data> into a 32-bit, twos complement number, with all zeros in the lower 16-bits
  3. Read X_GYRO_LOW into another variable <data_low>
  4. Add <data_low> to <data>; <data> is now a 32-bit, twos complement number, where its the upper 16-bits contain the binary number that was in Z_GYRO_OUT and its lower 16 bits of <data> contain the binary number that was in Z_GYRO_LOW.
  5. Apply binary to decimal conversion (most programming languages have libraries for this)
  6. Multiply the result by 0.02, then divide it by 2^16 (65536)

 

You already have this but for any one else that finds this post in the future, this refers to the OUTPUT DATA REGISTERS section in the ADIS16485 datasheet, which is located on page 15 in the present revision (C).

 

I hope that helps.  Let us know in an update post and our system administrators always appreciate a quick Correct Answer mark if you question has been answered. 

 

Many thanks!

 

We look forward to feedback on this matter and on your project. It sounds like an interesting application.

 

Best,

NevadaMark


Viewing all articles
Browse latest Browse all 22625

Trending Articles