EasyManua.ls Logo

Mcube MC3635 - Read Resolution; Set CWake Sampling Rate; Read CWake Sampling Rate; Set Sniff Sampling Rate

Mcube MC3635
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...
MC3635 3-Axis Accelerometer EV3635B Quick Start Guide and Demo
mCube Proprietary. APS-045-0018v1.2 13 / 20
© 2020 mCube Inc. All rights reserved.
4.6 READ RESOLUTION
Read the current resolution with:
MC36XX_acc.GetResolutionCtrl();
It returns: 0 for 6-bit | 1 for 7-bit | 2 for 8-bit | 3 for 10-bit | 4 for 12-bit | 5 for 14-bit.
4.7 SET CWAKE SAMPLING RATE
Set the accelerometer CWake mode sampling rate with:
MC36XX_acc.SetCWakeSampleRate(MC36XX_CWAKE_SR_DEFAULT_54Hz);
4.8 READ CWAKE SAMPLING RATE
Read the current CWake sampling rate with:
MC36XX_acc.GetCWakeSampleRate();
It returns sampling rate from 14 ~ 600 Hz.
4.9 SET SNIFF SAMPLING RATE
Set the accelerometer sniff mode sampling rate with:
MC36XX_acc.SetSniffSampleRate(MC36XX_SNIFF_SR_DEFAULT_7Hz);
4.10 READ SNIFF SAMPLING RATE
Read the current sniff sampling rate with:
MC36XX_acc.GetSniffSampleRate();
This returns sampling rate from 0.4 ~ 600 Hz.
4.11 CONFIG SNIFF MODE
Set the threshold values used by the SNIFF logic for activity detection:
MC36XX_acc.SetSniffThreshold(MC36XX_AXIS_X,5);
All three axes could be configured separately with different threshold value.
Set the threshold values used by the SNIFF logic for activity detection:
MC36XX_acc.SetSniffDetectCount(MC36XX_AXIS_X,3);
For each axis, a delta count is generated and compared to the threshold. When the delta
count is greater than the threshold, a SNIFF wakeup event occurs. There is a unique sniff