Mcube MC3672 Quick Start Manuals page 12

Accelerometer driver
Table of Contents

Advertisement

MC3672 Accelerometer Driver
4.5 SET RESOLUTION
Set the accelerometer resolution to 6, 7, 8, 10, 12 or 14 bit.
MC36XX_acc.SetResolutionCtrl(MC36XX_RESOLUTION_14BIT);
When the FIFO is enabled, the output of the FIFO is mapped to registers 0x02 to 0x07,
and the data has a maximum resolution of 12-bits
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);
mCube Proprietary.
© 2018 mCube Inc. All rights reserved.
.
APS-045-0017v1.2
Quick Start Guide and Demo
12 / 19

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Mcube MC3672

Table of Contents