thinks for your reply,
I want to reads the x-axis、y-axis and z-axis tilt angle as following codes ,if get reg00 is 22 ,can i think this time the x-aixs angle is 0 °?
How to understand the MMA7660 Datasheet "APPENDIX C - MMA7660FC ACQUISITION CODE TABLE" ,Angle X or Y blank meaning when 6-bit result is 22 - 42.
float TILT_XY[64] = {0, 2.69, 5.38, 8.08, 10.81, 13.55, 16.33, 19.16, 22.02, 24.95, 27.95, 31.04, 34.23, 37.54, 41.01, 44.68, 48.59, 52.83, 57.54, 62.95, 69.64, 79.86, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -79.86, -69.64, -62.95, -57.54, -52.83, -48.59, -44.68, -41.01, -37.54, -34.23, -31.04, -27.95, -24.95, -22.02, -19.16, -16.33, -13.55, -10.81, -8.08, -5.38, -2.69};
int main()
{
unsigned char x;
float AngleX;
//
x = MMA7660_GetResult(reg00);
//Get the X-axis angle
AngleX = TILT_XY[x];
}