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.

Issue in interpreting the accelerometer values on Btool

Other Parts Discussed in Thread: CC2541DK-MINI, BLE-STACK

Hi,

I am trying to read the BMA 250 accelerometer value from CC2541DK-mini keyfob using dongle and Btool application. The three axis (x,y,z) values that i am receiving on the software are in hexa decimal representation. Since the BMA 250 gives accelerometer values in 10 bits  (8MSB + 2LSB), i am confused how to interpret the hexa values in the software, because a hex value only give information about 8 bits, how can i read the remaining 2 bits.

  • Hi khan,

    You can see the source implementation in accReadAcc16 from bma250.c in the BLE-Stack v1.4.2 SDK.

    Best wishes
  • Thanks for your reply!

    I have gone through the bma250.c file , but it contains code for both 8 bit and 16 bit output, it therefore is confusing again. Since the output from accelerometer on Btool is 2 hex values (such as 'FA'), i am assuming that these are only the MSB 8 bits values of the accelerometer. Am i right in this assumption?