FXOS8700CQ Auto-sleep with Magnetic threshold trigger

Document created by Tomas Vaverka Employee on Oct 1, 2017Last modified by ebiz_ws_prod on Dec 13, 2017
Version 3Show Document
  • View in full screen mode

* This simple example code has been written for the FRDM-KL25Z + FRDM-FXS-MULT2-B
* boards and demonstrates how to use the embedded magnetic threshold detection
* function in conjunction with the auto-wake/sleep mode for reducing current
* consumption of the FXOS8700CQ.
* The magnetic threshold is set to 100uT (1000 counts) on the X and Y axis.
* Once this threshold is exceeded, the FXOS8700CQ is waken up and an interrupt
* is generated on the INT1 pin. If the magnetic field is below this threshold
* within the 20ms period, the FXOS8700CQ goes back to sleep mode and also
* generates an interrupt on the INT1 pin.

Original Attachment has been moved to: FRDM-KL25Z-FXOS8700CQ-Auto-sleep-with-Magnetic-threshold-trigger.rar