wakeup and sleep mode of fxls8962

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

wakeup and sleep mode of fxls8962

670 Views
lyp06118022
Contributor I

Hi,

I am using fxls8962 through freedom sensor Toolbox . I want to activate the sleep mode. what I do just as the following:

0X17, SENS-CONFIG3 = 0X80, 12,5HZ WAKEUP,  3200HZ  SLEEP (default in FRDM)

0x18, SENS-CONFIG4 =0X21, WAKE SDCD_OT, ACTIVATE _HIGH;

0X1E, ASLP_CNT_LSB = 96;

0X20, INT_EN =0X84, DATA READY and ASLP EN;

0x30, SDCD_CONFIG2 = 0XD8, default value, SDCD_EN

SDCD value is -125~125.

when I kick start, the sensor can read the XYZ data periodically in the "accelerometer" page, and I can see the INT1 interrupt from the oscilloscope. And it  can go to sleep mode itself after 8s just as the setting. And the sys_mode is truly =0x2, means is in sleep mode now. However, when I shake the freedom sensor, I can read the sys_mode turns to =0x01, means is wakeup now. But in the "accelerometer" page there is no data update, no INT1 interrupt from oscilloscope.

the BT-mode = GND ( the same as my MCU board)

what I want is: the sensor can wakeup itself from sleep mode, and Activate INT1/INT2 interrupt, so my main MCU can be activated through interrupt from sleep mode.

So, is there any other steps I need to do to finish the sleep mode setting? Thank you.

Best regards,

li yanpo

Labels (1)
Tags (1)
0 Kudos
1 Reply

580 Views
JozefKozon
NXP TechSupport
NXP TechSupport

Hi Li Yanpo,

please find AN12004 attached, where you can find examples for setting FXLS89x2 accelerometers in different modes.

With Best Regards,

Jozef 

0 Kudos