Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hi every body ... I 'm working on a project where i need to interface the MMA7445L accelerometer with mbed. My problem is that i need to read the 10 bit readings found in X_OUT_LSB, X_OUT_MSB,Y_OUT_LSB,Y_OUT_MSB,Z_OUT_LSB, Z_OUT_MSB, but i don't know how to do it ! i tried to read each register by itself and merge them in one 16-bit interger, but i have a problem with understanding "2's complement" concept, so i don't know how to get the negative acceleration values .... can anyone tell me how i can read from the two registers to get the final acceleration?? thank you in advance.