
Data sheet
BMA220
Page 25
BST-BMA220-DS003-08 | Revision 1.15 | August 2011 Bosch Sensortec
© Bosch Sensortec GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to
third parties. BOSCH and the symbol are registered trademarks of Robert Bosch GmbH, Germany.
Note: Specifications within this document are subject to change without notice.
Figure 9: Orientation definition and interrupt thresholds with respect to the angle phi
The criteria for portrait/landscape switching is fulfilled and the interrupt is generated when the
threshold |acc_y/acc_x|=1 is crossed (i.e. 45°, 135°, 225°, 315°). As soon as the interrupt is set,
no new interrupt is generated within the hysteresis level of 0.66<|acc_y/acc_x|<1.66
corresponding to a hysteresis interval of 13% around the threshold.
It is possible to block the orientation detection depending on certain conditions (no orientation
interrupt will be triggered). This orientation interrupt blocking feature is configurable via the
orient_blocking[1:0] bits in the following manner:
‘00’ interrupt blocking is completely
disabled.
‘01’ no interrupt is generated, when |z|>0.9g OR |x|+|y| < 0.4g OR when the slopes of
the acceleration data exceeds 0.2g (sample-to-sample).
‘10’ no interrupt is generated, when |z|>0.9g OR |x|+|y| < 0.4g OR while the slopes of
the acceleration data exceeds 0.3g (sample-to-sample).
‘11’ no interrupt is generated, when |z|>0.9g OR |x|+|y| < 0.4g OR while the slopes of
the acceleration data exceeds 0.4g (sample-to-sample).
For all states where interrupt blocking through slope detection is used, the interrupt should be
re-enabled after the slope has been below the threshold for 3 times in a row.
For all states where interrupt blocking is enabled, in order to trigger the interrupt, the orientation
should remain the same (stable) until the timer runs out (for ~100ms). The timer starts to count
when orientation changes between two consecutive samples. If the orientation changes while
timer is still counting, the timer is restarted.
The criteria for switching from upward to downward looking fulfilled and the interrupt is
generated when the threshold z=0g is crossed. As soon as the interrupt is set, no new interrupt
is generated within the hysteresis level of -0.4g<z<0.4g (i.e. 25° tilt around vertical position).
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
0 45 90 135 180 225 270 315 360
phi
acc_y/acc_x
acc_x/sin(theta)
acc_y/sin(theta)
portrait upright landscape left portrait upside
down
landscape right portrait upright
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
0 45 90 135 180 225 270 315 360
phi
acc_y/acc_x
acc_x/sin(theta)
acc_y/sin(theta)
portrait upright landscape left portrait upside
down
landscape right portrait upright
Comentarios a estos manuales