Sensors
28 NXP Semiconductors
MMA8452Q
0x15: FF_MT_CFG freefall/motion configuration register
This is the freefall/motion configuration register for setting up the conditions of the freefall or motion function.
OAE bit allows the selection between motion (logical OR combination) and freefall (logical AND combination) detection.
ELE denotes whether the enabled event flag will to be latched in the FF_MT_SRC register or the event flag status in the
FF_MT_SRC will indicate the real-time status of the event. If ELE bit is set to a logic ‘1’, then the event flags are frozen when the
EA bit gets set, and are cleared by reading the FF_MT_SRC source register.
ZHFE, YEFE, XEFE enable the detection of a motion or freefall event when the measured acceleration data on X, Y, Z channel
is beyond the threshold set in FF_MT_THS register. If the ELE bit is set to logic ‘1’ in the FF_MT_CFG register new event flags
are blocked from updating the FF_MT_SRC register.
FF_MT_THS is the threshold register used to detect freefall motion events. The unsigned 7-bit FF_MT_THS threshold register
holds the threshold for the freefall detection where the magnitude of the X and Y and Z acceleration values is lower or equal than
the threshold value. Conversely, the FF_MT_THS also holds the threshold for the motion detection where the magnitude of the
X or Y or Z acceleration value is higher than the threshold value.
Figure 12. FF_MT_CFG high- and low-g level
0x16: FF_MT_SRC freefall/motion source register
0x15: FF_MT_CFG register (read/write)
Bit
7
Bit
6
Bit
5
Bit
4
Bit
3
Bit
2
Bit
1
Bit
0
ELE OAE ZEFE YEFE XEFE 0 0 0
Table 26. FF_MT_CFG description
Field Description
ELE
Event latch enable: Event flags are latched into FF_MT_SRC register. Reading of the FF_MT_SRC register clears the event
flag EA and all FF_MT_SRC bits. Default value: 0.
0: Event flag latch disabled; 1: Event flag latch enabled
OAE
Motion detect/freefall detect flag selection. Default value: 0. (freefall flag)
0: Freefall flag (logical AND combination)
1: Motion flag (logical OR combination)
ZEFE
Event flag enable on Z. Default value: 0.
0: Event detection disabled; 1: Raise event flag on measured acceleration value beyond preset threshold
YEFE
Event flag enable on Y event. Default value: 0.
0: Event detection disabled; 1: Raise event flag on measured acceleration value beyond preset threshold
XEFE
Event flag enable on X event. Default value: 0.
0: Event detection disabled; 1: Raise event flag on measured acceleration value beyond preset threshold
0x16: FF_MT_SRC freefall and motion source register (read only)
Bit
7
Bit
6
Bit
5
Bit
4
Bit
3
Bit
2
Bit
1
Bit
0
EA 0 ZHE ZHP YHE YHP XHE XHP
+8 g
High-g + Threshold (Motion)
Low-g Threshold (Freefall)
High-g - Threshold (Motion)
–8 g
X, Y, Z High-g Region
X, Y, Z High-g Region
X, Y, Z Low-g Region
Negative
Positive
Acceleration
Acceleration
Sensors
NXP Semiconductors 29
MMA8452Q
This register keeps track of the acceleration event which is triggering (or has triggered, in case of ELE bit in FF_MT_CFG register
being set to 1) the event flag. In particular EA is set to a logic ‘1’ when the logical combination of acceleration events flags
specified in FF_MT_CFG register is true. This bit is used in combination with the values in INT_EN_FF_MT and
INT_CFG_FF_MT register bits to generate the freefall/motion interrupts.
An X,Y, or Z motion is true when the acceleration value of the X or Y or Z channel is higher than the preset threshold value defined
in the FF_MT_THS register.
Conversely an X, Y, and Z low event is true when the acceleration value of the X and Y and Z channel is lower than or equal to
the preset threshold value defined in the FF_MT_THS register.
0x17: FF_MT_THS freefall and motion threshold register
The threshold resolution is 0.063 g/LSB and the threshold register has a range of 0 to 127 counts. The maximum range is to 8 g.
Note that even when the full scale value is set to 2 g or 4 g the motion detects up to 8 g. If the low-noise bit is set in register 0x2A
then the maximum threshold will be limited to 4 g regardless of the full-scale range.
DBCNTM bit configures the way in which the debounce counter is reset when the inertial event of interest is momentarily not true.
When DBCNTM bit is a logic ‘1’, the debounce counter is cleared to 0 whenever the inertial event of interest is no longer true as
shown in Figure 13, (b). While the DBCNTM bit is set to logic ‘0’ the debounce counter is decremented by 1 whenever the inertial
event of interest is no longer true (Figure 13, (c)) until the debounce counter reaches 0 or the inertial event of interest becomes
active.
Decrementing the debounce counter acts as a median enabling the system to filter out irregular spurious events which might
impede the detection of inertial events.
Table 27. Freefall/motion source description
Field Description
EA
Event active flag. Default value: 0.
0: No event flag has been asserted; 1: One or more event flag has been asserted.
See the description of the OAE bit to determine the effect of the 3-axis event flags on the EA bit.
ZHE
Z-motion flag. Default value: 0.
0: No Z-motion event detected, 1: Z motion has been detected
This bit reads always zero if the ZEFE control bit is set to zero
ZHP
Z-motion polarity flag. Default value: 0.
0: Z event was positive g, 1: Z event was negative g
This bit read always zero if the ZEFE control bit is set to zero
YHE
Y-motion flag. Default value: 0.
0: No Y-motion event detected, 1: Y motion has been detected
This bit read always zero if the YEFE control bit is set to zero
YHP
Y-motion polarity flag. Default value: 0
0: Y event detected was positive g, 1: Y event was negative g
This bit reads always zero if the YEFE control bit is set to zero
XHE
X-motion flag. Default value: 0
0: No X-motion event detected, 1: X motion has been detected
This bit reads always zero if the XEFE control bit is set to zero
XHP
X-motion polarity flag. Default value: 0
0: X event was positive g, 1: X event was negative g
This bit reads always zero if the XEFE control bit is set to zero
0x17: FF_MT_THS register (read/write)
Bit
7
Bit
6
Bit
5
Bit
4
Bit
3
Bit
2
Bit
1
Bit
0
DBCNTM THS6 THS5 THS4 THS3 THS2 THS1 THS0
Table 28.
FF_MT_THS description
Field Description
DBCNTM
Debounce counter mode selection. Default value: 0.
0: Increments or decrements debounce, 1: Increments or clears counter.
THS[6:0]
Freefall/motion threshold: Default value: 000_0000.
Sensors
30 NXP Semiconductors
MMA8452Q
0x18: FF_MT_COUNT debounce register
This register sets the number of debounce sample counts for the event trigger.
This register sets the minimum number of debounce sample counts of continuously matching the detection condition user
selected for the freefall, motion event.
When the internal debounce counter reaches the FF_MT_COUNT value a freefall/motion event flag is set. The debounce counter
will never increase beyond the FF_MT_COUNT value. Time step used for the debounce sample count depends on the ODR
chosen and the oversampling mode as shown in Table 30.
0x18: FF_MT_COUNT register (read/write)
Bit
7
Bit
6
Bit
5
Bit
4
Bit
3
Bit
2
Bit
1
Bit
0
D7 D6 D5 D4 D3 D2 D1 D0
Table 29. FF_MT_COUNT description
Field Description
D[7:0]
Count value. Default value: 0000_0000
Table 30. FF_MT_COUNT relationship with the ODR
ODR (Hz)
Max time range (s) Time step (ms)
Normal LPLN HighRes LP Normal LPLN HighRes LP
800 0.319 0.319 0.319 0.319 1.25 1.25 1.25 1.25
400 0.638 0.638 0.638 0.638 2.5 2.5 2.5 2.5
200 1.28 1.28 0.638 1.28 5 5 2.5 5
100 2.55 2.55 0.638 2.55 10 10 2.5 10
50 5.1 5.1 0.638 5.1 20 20 2.5 20
12.5 5.1 20.4 0.638 20.4 20 80 2.5 80
6.25 5.1 20.4 0.638 40.8 20 80 2.5 160
1.56 5.1 20.4 0.638 40.8 20 80 2.5 160

101990016

Mfr. #:
Manufacturer:
Seeed Studio
Description:
Acceleration Sensor Development Tools TESSEL ACCELEROMETER MODULE
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet