Setting MMA7660 for meassuring Acceleration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setting MMA7660 for meassuring Acceleration

921 Views
sidel
Contributor I

Hello,

 

I am using the MMA7660 Accelerometer.

 

I have tried the following register initialization for "NO interupts, active mode, 8 samples per second"

 

 

INTSU =  0x00;  // Interrupt Setup Register
MODE =  0x01;  // MODE" Register
SR       =  0x94;  //Sample Rate Register
PDET  =  0x00;  //Tap/Pulse Detection Register
PD       =  0x00;  // "PD"  Tap/Pulse Debounce Count Register
I am reading out the orientation angles from the chip,
Can someone plz tell what should I change in order to read acceleration measurments instead of orientation?
I have red the datasheet thoroughly but I cannot find anything about switching between orientation and acceleration readout modes.
Kind Regards,
George
Labels (1)
0 Kudos
2 Replies

328 Views
Jake74
Contributor I

The acceleration is read in the X,Y,and Z registers (registers 0,1,and 2). Gravity is of course 1G.

0 Kudos

328 Views
sidel
Contributor I

Thanks for your Reply Jake,

 

From what I have understood, the chip outputs either orientation angles or acceleration values. Both measurements are updated on X,Y,Z registers (see page 28) but somehow the mode is selected .

 

Untill now I can get only orientation angles on X,Y,Z registers can anyone advise how can I switch to acceleration readout?

 

 

0 Kudos