Datasheet

MMA8652FC
Sensors
36 Freescale Semiconductor, Inc.
Table 47, “Threshold angle thresholds look-up table,” on page 36 is a look-up table to set the threshold. This is the center value
that will be set for the trip point from portrait to landscape and from landscape to portrait. The default trip angle is 45° (0x10). The
default hysteresis is ±14°.
7–3 P_L_THS[7:3]
Portrait/Landscape trip threshold angle (from 15° to 75°)
See Table 47, “Threshold angle thresholds look-up table,” on
page 36 for the values with the corresponding approximate threshold
angle.
1_0000 (45°) (default)
For the landscape/portrait detection to work
correctly,
THS + HYS > 0
and THS + HYS < 32.
All angles are accurate to ±2°.
2–0 HYS[2:0]
Hysteresis value
This angle is added to the threshold angle, for a smoother transition
from portrait to landscape and landscape to portrait.
This angle ranges from 0° to ±24°.
100 (±14°) (default)
Table 47. Threshold angle thresholds look-up table
Threshold Angle
(approximately)
5-bit Register
Value
15° 0x07
20° 0x09
30° 0x0C
35° 0x0D
40° 0x0F
45° 0x10
55° 0x13
60° 0x14
70° 0x17
75° 0x19
Table 48. Trip angles with hysteresis for 45° angle
Hysteresis
Register Value
Hysteresis
± Angle Range
Landscape-to-Portrait
Trip Angle
Portrait-to-Landscape
Trip Angle
0 ±0 45° 45°
1 ±4 49° 41°
2 ±7 52° 38°
3 ±11 56° 34°
4 ±14 59° 31°
5 ±17 62° 28°
6 ±21 66° 24°
7 ±24 69° 21°
Table 46. P_L_THS_REG register (Continued)