EasyManua.ls Logo

Mcube MC3419 - Config Motion Feature; Config Interrupt Mode

Mcube MC3419
20 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MC3419 3-Axis Accelerometer EV3419A Quick Start Guide and Demo
mCube Proprietary. APS-045-0033v1.0 13 / 20
© 2020 mCube Inc. All rights reserved.
4.6 READ SAMPLING RATE
Read the current sampling rate with:
MC34X9_acc.GetSampleRate ();
It returns sampling rate from 25 ~ 1000 Hz.
4.7 CONFIG MOTION FEATURE
To configure motion feature, open MC34X9.h
Set the threshold and debounce value used by the tilt and flip logic for activity detection:
#define s_bCfgFTThr 100
#define s_bCfgFTDebounce 50
Set the threshold and debounce value used by the any motion logic for activity detection:
#define s_bCfgANYMThr 200
#define s_bCfgANYMDebounce 100
Set the threshold, duration and count value used by the shake logic for activity detection:
#define s_bCfgShakeThr 300
#define s_bCfgShakeP2PDuration 10
#define s_bCfgShakeCount 1
Set the threshold and duration value used by the tilt35 logic for activity detection:
#define s_bCfgTILT35Thr 20
#define s_bCfgTILT35Timer MC34X9_TILT35_2p0
4.8 CONFIG INTERRUPT MODE
Configure the FIFO interrupt mode with:
MC34X9_acc.SetFIFOINTCtrl(false, false, enableFifoThrINT);