Data Sheet

MMA8452Q
Sensors
Freescale Semiconductor, Inc. 23
6.2 Portrait/ Landscape Embedded Function Registers
For more details on the meaning of the different user configurable settings and for example code refer to Freescale application
note, AN4068.
0x10: PL_STATUS Portrait/Landscape Status Register
This status register can be read to get updated information on any change in orientation by reading Bit 7, or on the specifics
of the orientation by reading the other bits. For further understanding of Portrait Up, Portrait Down, Landscape Left, Landscape
Right, Back and Front orientations please refer to Figure 3. The interrupt is cleared when reading the PL_STATUS register.
NEWLP is set to 1 after the first orientation detection after a STANDBY to ACTIVE transition, and whenever a change in LO,
BAFRO, or LAPO occurs. NEWLP bit is cleared anytime PL_STATUS register is read.
The Orientation mechanism state change
is limited to a maximum 1.25g. LAPO BAFRO and LO continue to change when NEWLP is set. The current position is locked if
the absolute value of the acceleration experienced on any of the three axes is greater than 1.25g.
Table 18. High-Pass Filter Cutoff Options
Oversampling Mode = Normal
SEL1 SEL0 800 Hz 400 Hz 200 Hz 100 Hz 50 Hz 12.5 Hz 6.25 Hz 1.56 Hz
0 0 16 Hz 16 Hz 8 Hz 4 Hz 2 Hz 2 Hz 2 Hz 2 Hz
0 1 8 Hz 8 Hz 4 Hz 2 Hz 1 Hz 1 Hz 1 Hz 1 Hz
1 0 4 Hz 4 Hz 2 Hz 1 Hz 0.5 Hz 0.5 Hz 0.5 Hz 0.5 Hz
1 1 2 Hz 2 Hz 1 Hz 0.5 Hz 0.25 Hz 0.25 Hz 0.25 Hz 0.25 Hz
Oversampling Mode = Low Noise Low Power
0 0 16 Hz 16 Hz 8 Hz 4 Hz 2 Hz 0.5 Hz 0.5 Hz 0.5 Hz
0 1 8 Hz 8 Hz 4 Hz 2 Hz 1 Hz 0.25 Hz 0.25 Hz 0.25 Hz
1 0 4 Hz 4 Hz 2 Hz 1 Hz 0.5 Hz 0.125 Hz 0.125 Hz 0.125 Hz
1 1 2 Hz 2 Hz 1 Hz 0.5 Hz 0.25 Hz 0.063 Hz 0.063 Hz 0.063 Hz
Oversampling Mode = High Resolution
0 0 16 Hz 16 Hz 16 Hz 16 Hz 16 Hz 16 Hz 16 Hz 16 Hz
0 1 8Hz 8Hz 8Hz 8Hz 8Hz 8Hz 8Hz 8Hz
1 0 4Hz 4Hz 4Hz 4Hz 4Hz 4Hz 4Hz 4Hz
1 1 2 Hz 2 Hz 2 Hz 2 Hz 2 Hz 2 Hz 2 Hz 2 Hz
Oversampling Mode = Low Power
0 0 16 Hz 8 Hz 4 Hz 2 Hz 1 Hz 0.25 Hz 0.25 Hz 0.25 Hz
0 1 8 Hz 4 Hz 2 Hz 1 Hz 0.5 Hz 0.125 Hz 0.125 Hz 0.125 Hz
1 0 4 Hz 2 Hz 1 Hz 0.5 Hz 0.25 Hz 0.063 Hz 0.063 Hz 0.063 Hz
1 1 2 Hz 1 Hz 0.5 Hz 0.25 Hz 0.125 Hz 0.031 Hz 0.031 Hz 0.031 Hz
0x10: PL_STATUS Register (Read Only)
Bit
7
Bit
6
Bit
5
Bit
4
Bit
3
Bit
2
Bit
1
Bit
0
NEWLP LO 0 0 0 LAPO[1] LAPO[0] BAFRO
Table 19. PL_STATUS Register Description
NEWLP
Landscape/Portrait status change flag. Default value: 0.
0: No change, 1: BAFRO and/or LAPO and/or Z-Tilt lockout value has changed
LO
Z-Tilt Angle Lockout. Default value: 0.
0: Lockout condition has not been detected.
1: Z-Tilt lockout trip angle has been exceeded. Lockout has been detected.
LAPO[1:0]
(1)
1. The default power up state is BAFRO = 0, LAPO = 0, and LO = 0.
Landscape/Portrait orientation. Default value: 00
00: Portrait Up: Equipment standing vertically in the normal orientation
01: Portrait Down: Equipment standing vertically in the inverted orientation
10: Landscape Right: Equipment is in landscape mode to the right
11: Landscape Left: Equipment is in landscape mode to the left.
BAFRO
Back or Front orientation. Default value: 0
0: Front: Equipment is in the front facing orientation.
1: Back: Equipment is in the back facing orientation.