Sensors
NXP Semiconductors 43
MMA8452Q
The corresponding functional block interrupt enable bit allows the functional block to route its event detection flags to the system’s
interrupt controller. The interrupt controller routes the enabled functional block interrupt to the INT1 or INT2 pin.
0x2E: CTRL_REG5 register (read/write)
The system’s interrupt controller shown in Figure 10 uses the corresponding bit field in the CTRL_REG5 register to determine the
routing table for the INT1 and INT2 interrupt pins. If the bit value is logic ‘0’, the functional block’s interrupt is routed to INT2, and
if the bit value is logic ‘1’, then the interrupt is routed to INT1. One or more functions can assert an interrupt pin; therefore a host
application responding to an interrupt should read the INT_SOURCE (0x0C) register to determine the appropriate sources of the
interrupt.
6.8 User offset correction registers
For more information on how to calibrate the 0 g offset, refer to application note AN4069. The 2’s complement offset correction
registers values are used to realign the zero-g position of the X, Y, and Z-axis after device board mount. The resolution of the
offset registers is 2 mg per LSB. The 2’s complement 8-bit value would result in an offset compensation range ±256 mg.
0x2F: OFF_X offset correction X register
INT_EN_LNDPRT
Interrupt enable. Default value: 0.
0: Orientation (landscape/portrait) interrupt disabled.
1: Orientation (landscape/portrait) interrupt enabled.
INT_EN_PULSE
Interrupt enable. Default value: 0.
0: Pulse detection interrupt disabled; 1: Pulse detection interrupt enabled
INT_EN_FF_MT
Interrupt enable. Default value: 0.
0: Freefall/motion interrupt disabled; 1: Freefall/motion interrupt enabled
INT_EN_DRDY
Interrupt enable. Default value: 0.
0: Data-ready interrupt disabled; 1: Data-ready interrupt enabled
0x2E: CTRL_REG5 interrupt configuration register
Bit
7
Bit
6
Bit
5
Bit
4
Bit
3
Bit
2
Bit
1
Bit
0
INT_CFG_ASLP 0 INT_CFG_TRANS INT_CFG_LNDPRT INT_CFG_PULSE INT_CFG_FF_MT 0 INT_CFG_DRDY
Table 62.
Interrupt configuration register description
Field Description
INT_CFG_ASLP
INT1/INT2 configuration. Default value: 0.
0: Interrupt is routed to INT2 pin; 1: Interrupt is routed to INT1 pin
INT_CFG_TRANS
INT1/INT2 configuration. Default value: 0.
0: Interrupt is routed to INT2 pin; 1: Interrupt is routed to INT1 pin
INT_CFG_LNDPRT
INT1/INT2 configuration. Default value: 0.
0: Interrupt is routed to INT2 pin; 1: Interrupt is routed to INT1 pin
INT_CFG_PULSE
INT1/INT2 configuration. Default value: 0.
0: Interrupt is routed to INT2 pin; 1: Interrupt is routed to INT1 pin
INT_CFG_FF_MT
INT1/INT2 configuration. Default value: 0.
0: Interrupt is routed to INT2 pin; 1: Interrupt is routed to INT1 pin
INT_CFG_DRDY
INT1/INT2 configuration. Default value: 0.
0: Interrupt is routed to INT2 pin; 1: Interrupt is routed to INT1 pin
0x2F: OFF_X 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 61. Interrupt enable register description (continued)
Field Description