Freescale Semiconductor FRDM-FXS-MULTI 데이터 시트

다운로드
페이지 65
MMA8652FC
Sensors
32
Freescale Semiconductor, Inc.
6.7
Portrait/Landscape configuration and status registers
For more information about the different user-configurable settings and example code, see application note AN4083, Data 
Manipulation and Basic Settings for Xtrinsic MMA865xFC Accelerometers
.
6.7.1
0x10: PL_STATUS Portrait/Landscape Status register
To get updated information on any change in orientation, read the Portrait/Landscape Status register (read Bit 7, or read the other 
bits for more orientation data). For more about Portrait Up, Portrait Down, Landscape Left, Landscape Right, Back, and Front 
orientations, see 
The interrupt is cleared when reading the PL_STATUS register.
The orientation mechanism state change is limited to a maximum 1.25 g. 
The current position is locked if the absolute value of the acceleration experienced on any of the three axes is greater than 
1.25 g.
LAPO, BAFRO, and LO continue to change when NEWLP is set. 
Table 34. 0x10 PL_STATUS Register (Read-Only)
Back to Register Address Map
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
NEWLP
LO
LAPO[1]
LAPO[0]
BAFRO
Table 35. PL_STATUS register
Bit(s)
Field
Description
7
NEWLP
Landscape/Portrait status change flag
• 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. 
0 No change (default)
1 BAFRO and/or LAPO and/or Z-Tilt lockout value has changed
6
LO
Z-Tilt Angle Lockout
0 Lockout condition has not been detected (default)
1 Z-Tilt lockout trip angle has been exceeded. 
Lockout has been detected.
5–3
Can be 0 or 1.
2–1
LAPO[1:0]
(1)
1. The default power-up state is BAFRO = 0, LAPO = 00, and LO = 0.
Landscape/Portrait orientation
00 Portrait Up: Equipment standing vertically in the normal orientation (default)
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.
0
BAFRO
Back or Front orientation
0 Front: Equipment is in the front-facing orientation (default)
1 Back: Equipment is in the back-facing orientation