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