FXOS8700CQ Auto-sleep with Magnetic threshold trigger

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

FXOS8700CQ Auto-sleep with Magnetic threshold trigger

FXOS8700CQ Auto-sleep with Magnetic threshold trigger

*********************************************************************************************************
* 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.
*********************************************************************************************************

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1125338%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFXOS8700CQ%20Auto-sleep%20with%20Magnetic%20threshold%20trigger%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1125338%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E*********************************************************************************************************%3CBR%20%2F%3E*%20This%20simple%20example%20code%20has%20been%20written%20for%20the%20FRDM-KL25Z%20%2B%20FRDM-FXS-MULT2-B%20%3CBR%20%2F%3E*%20boards%20and%20demonstrates%20how%20to%20use%20the%20embedded%20magnetic%20threshold%20detection%3CBR%20%2F%3E*%20function%20in%20conjunction%20with%20the%20auto-wake%2Fsleep%20mode%20for%20reducing%20current%3CBR%20%2F%3E*%20consumption%20of%20the%20FXOS8700CQ.%3CBR%20%2F%3E*%20%3CBR%20%2F%3E*%20The%20magnetic%20threshold%20is%20set%20to%20100uT%20(1000%20counts)%20on%20the%20X%20and%20Y%20axis.%3CBR%20%2F%3E*%20Once%20this%20threshold%20is%20exceeded%2C%20the%20FXOS8700CQ%20is%20waken%20up%20and%20an%20interrupt%3CBR%20%2F%3E*%20is%20generated%20on%20the%20INT1%20pin.%20If%20the%20magnetic%20field%20is%20below%20this%20threshold%20%3CBR%20%2F%3E*%20within%20the%2020ms%20period%2C%20the%20FXOS8700CQ%20goes%20back%20to%20sleep%20mode%20and%20also%20%3CBR%20%2F%3E*%20generates%20an%20interrupt%20on%20the%20INT1%20pin.%20%3CBR%20%2F%3E*********************************************************************************************************%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎10-01-2017 09:24 AM
Updated by: