AnsweredAssumed Answered

How to get 14 bit data from MMA8451Q Accelerometer ?

Question asked by Amit Kumar on Nov 14, 2013
Latest reply on Nov 27, 2014 by terry_lr


I want to extract 14 bit data out of MMA8451Q Accelerometer and display it over UART. So for storing I am taking int16_t  x, y, z; the maximum value which I am getting out is 23736 instead of permissible value 2^14 = 16384. and the minimum value which I am getting out is -17736 instead of the permissible value -16384. I am using FRDM-K20D50M board and the accelerometer is mounted on it. I am using codewarrior with processor expert. I am using MMA8451Q library in processor expert and extracting data using x=MMA1_GetX(); or x=MMA1_MeasureGetRawX();  Kindly look into the matter.


Amit Kumar