поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN4650 датащи(PDF) 41 Page - STMicroelectronics

номер детали AN4650
подробное описание детали  This document is intended to provide usage information
PDF  102 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4650 датащи(HTML) 41 Page - STMicroelectronics

Back Button AN4650 Datasheet HTML 37Page - STMicroelectronics AN4650 Datasheet HTML 38Page - STMicroelectronics AN4650 Datasheet HTML 39Page - STMicroelectronics AN4650 Datasheet HTML 40Page - STMicroelectronics AN4650 Datasheet HTML 41Page - STMicroelectronics AN4650 Datasheet HTML 42Page - STMicroelectronics AN4650 Datasheet HTML 43Page - STMicroelectronics AN4650 Datasheet HTML 44Page - STMicroelectronics AN4650 Datasheet HTML 45Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 41 / 102 page
background image
DocID027415 Rev 1
41/102
AN4650
Interrupt generation
102
The example code which implements the SW routine for the wake-up event recognition
using the slope filter is given below.
Since the duration time is set to zero, the wake-up interrupt signal is generated for each
X,Y,Z slope data exceeding the configured threshold. The WK_THS field of the
WAKE_UP_THS register is set to 000010b, therefore the wake-up threshold is 62.5 mg
(= 2 * FS_XL / 26).
4.4
6D/4D orientation detection
The LSM6DS3 device provides the capability to detect the orientation of the device in
space, enabling easy implementation of energy-saving procedures and automatic image
rotation for mobile devices.
4.4.1
6D orientation detection
Six orientations of the device in space can be detected; the interrupt signal is asserted when
the device switches from one orientation to another. The interrupt is not re-asserted as long
as the position is maintained.
6D interrupt is generated when, for two consecutive samples, only one axis exceeds a
selected threshold and the acceleration values measured from the other two axes are lower
than the threshold: the ZH, ZL, YH, YL, XH, XL bits of the D6D_SRC (1Dh) register indicate
which axis has triggered the 6D event.
In more detail:
D6D_IA is set high when the device switches from one orientation to another.
ZH (YH, XH) is set high when the face perpendicular to the Z(Y,X) axis is almost flat
and the acceleration measured on the Z(Y,X) axis is positive and in the module bigger
than the threshold.
ZL (YL, XL) is set high when the face perpendicular to the Z(Y,X) axis is almost flat and
the acceleration measured on the Z(Y,X) axis is negative and in the module bigger than
the threshold.
The SIXD_THS[1:0] bits of the TAP_THS_6D register are used to select the threshold value
used to detect the change in device orientation. The threshold values given in Table 30 are
valid for each accelerometer full-scale value.
1
Write 60h into CTRL1_XL
// Turn on the accelerometer
// ODR_XL = 416 Hz, FS_XL = 2g
2
Write 00h into TAP_CFG
// Apply slope filter; latch mode disabled
3
Write 00h into WAKE_UP_DUR
// No duration
4
Write 02h into WAKE_UP_THS
// Set wake-up threshold
5
Write 20h into MD1_CFG
// Wake-up interrupt driven to INT1 pin
Table 29. D6D_SRC register
b7
b6
b5
b4
b3
b2
b1
b0
0
D6D_IA
ZH
ZL
YH
YL
XH
XL



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com