Sensors
NXP Semiconductors 31
MMA8452Q
Figure 13. DBCNTM bit function
High-g Event on
Count Threshold
FF
FFEA
all 3-axis
(Motion Detect)
Counter
Value
High-g Event on
Count Threshold
Debounce
(a)
all 3-axis
(Motion Detect)
Counter
Value
High-g Event on
Count Threshold
Debounce
EA
all 3-axis
(Motion Detect)
Counter
Value
DBCNTM = 1
(b)
EA
DBCNTM = 0
(c)
Sensors
32 NXP Semiconductors
MMA8452Q
6.4 Transient (HPF) acceleration detection
For more information on the uses of the transient function please review NXP application note AN4071. This function is similar
to the motion detection except that high-pass filtered data is compared. There is an option to disable the high-pass filter through
the function. In this case the behavior is the same as the motion detection. This allows for the device to have two motion detection
functions.
0x1D: Transient_CFG register
The transient detection mechanism can be configured to raise an interrupt when the magnitude of the high-pass filtered
acceleration threshold is exceeded. The TRANSIENT_CFG register is used to enable the transient interrupt generation
mechanism for the three axes (X, Y, Z) of acceleration. There is also an option to bypass the high-pass filter. When the high-pass
filter is bypassed, the function behaves similar to the motion detection.
0x1E: TRANSIENT_SRC register
The transient source register provides the status of the enabled axes and the polarity (directional) information. When this register
is read it clears the interrupt for the transient detection. When new events arrive while EA = 1, additional *TRANSE bits may get
set, and the corresponding *_Trans_Pol flag become updated. However, no *TRANSE bit may get cleared before the
TRANSIENT_SRC register is read.
0x1D: TRANSIENT_CFG register (read/write)
Bit
7
Bit
6
Bit
5
Bit
4
Bit
3
Bit
2
Bit
1
Bit
0
0 0 0 ELE ZTEFE YTEFE XTEFE HPF_BYP
Table 31. TRANSIENT_CFG description
Field Description
ELE
Transient event flags are latched into the TRANSIENT_SRC register. Reading of the TRANSIENT_SRC register clears the event
flag. Default value: 0.
0: Event flag latch disabled; 1: Event flag latch enabled
ZTEFE
Event flag enable on Z-transient acceleration greater than transient threshold event. Default value: 0.
0: Event detection disabled; 1: Raise event flag on measured acceleration delta value greater than transient threshold.
YTEFE
Event flag enable on Y-transient acceleration greater than transient threshold event. Default value: 0.
0: Event detection disabled; 1: Raise event flag on measured acceleration delta value greater than transient threshold.
XTEFE
Event flag enable on X-transient acceleration greater than transient threshold event. Default value: 0.
0: Event detection disabled; 1: Raise event flag on measured acceleration delta value greater than transient threshold.
HPF_BYP
Bypass high-pass filter. Default value: 0.
0: Data to transient acceleration detection block is through HPF; 1: Data to transient acceleration detection block is NOT through
HPF (similar to motion detection function)
0x1E: TRANSIENT_SRC register (read only)
Bit
7
Bit
6
Bit
5
Bit
4
Bit
3
Bit
2
Bit
1
Bit
0
0 EA ZTRANSE Z_Trans_Pol YTRANSE Y_Trans_Pol XTRANSE X_Trans_Pol
Table 32. TRANSIENT_SRC 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.
ZTRANSE
Z-transient event. Default value: 0.
0: No interrupt, 1: Z-transient acceleration greater than the value of TRANSIENT_THS event has occurred
Z_Trans_Pol
Polarity of Z-transient event that triggered interrupt. Default value: 0.
0: Z event was positive g, 1: Z event was negative I
YTRANSE
Y-transient event. Default value: 0.
0: no interrupt, 1: Y-transient acceleration greater than the value of TRANSIENT_THS event has occurred
Y_Trans_Pol
Polarity of Y-transient event that triggered interrupt. Default value: 0.
0: Y event was positive g, 1: Y event was negative g
Sensors
NXP Semiconductors 33
MMA8452Q
When the EA bit gets set while ELE = 1, all other status bits get frozen at their current state. By reading the TRANSIENT_SRC
register, all bits get cleared.
0x1F: TRANSIENT_THS register
The transient threshold register sets the threshold limit for the detection of the transient acceleration. The value in the
TRANSIENT_THS register corresponds to a g value which is compared against the values of high-pass filtered data. If the high-
pass filtered acceleration value exceeds the threshold limit, an event flag is raised and the interrupt is generated if enabled.
The threshold THS[6:0] is a 7-bit unsigned number, 0.063 g/LSB. The maximum threshold is 8 g. Even if the part is set to full
scale at 2 g or 4 g this function will still operate up to 8 g. If the low-noise bit is set in register 0x2A, the maximum threshold to be
reached is 4 g.
Note: If configuring the transient detection threshold for less than 1 g, the high-pass filter will need some settling time. The settling
time will vary depending on selected ODR, high-pass frequency cutoff and threshold. For more information, please refer to NXP
application note AN4071.
0x20: TRANSIENT_COUNT
The TRANSIENT_COUNT sets the minimum number of debounce counts continuously matching the condition where the
unsigned value of high-pass filtered data is greater than the user specified value of TRANSIENT_THS.
The time step for the transient detection debounce counter is set by the value of the system ODR and the oversampling mode.
XTRANSE
X-transient event. Default value: 0.
0: No interrupt, 1: X-transient acceleration greater than the value of TRANSIENT_THS event has occurred
X_Trans_Pol
Polarity of X-transient event that triggered interrupt. Default value: 0.
0: X event was positive g, 1: X event was negative g
0x1F: TRANSIENT_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 33. TRANSIENT_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]
Transient threshold: Default value: 000_0000.
0x20: TRANSIENT_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 34. TRANSIENT_COUNT description
Field Description
D[7:0]
Count value. Default
value:
0000_0000
.
Table 35. TRANSIENT_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
Table 32. TRANSIENT_SRC description (continued)
Field Description

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