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

X  

AN4650 датащи(PDF) 43 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) 43 Page - STMicroelectronics

Back Button 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 AN4650 Datasheet HTML 46Page - STMicroelectronics AN4650 Datasheet HTML 47Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 43 / 102 page
background image
DocID027415 Rev 1
43/102
AN4650
Interrupt generation
102
Hereafter an example which implements the SW routine for 6D orientation detection.
4.4.2
4D orientation detection
The 4D direction function is a subset of the 6D function especially defined to be
implemented in mobile devices for portrait and landscape computation. It can be enabled by
setting the D4D_EN bit of the TAP_THS_6D register to 1. In this configuration, the Z-axis
position detection is disabled, therefore reducing position recognition to cases (a), (b), (c),
and (d) of Table 31.
4.5
Single-tap and double-tap recognition
The single-tap and double-tap recognition functions featured in the LSM6DS3 help to create
a man-machine interface with little software loading. The device can be configured to output
an interrupt signal on a dedicated pin when tapped in any direction.
If the sensor is exposed to a single input stimulus, it generates an interrupt request on the
inertial interrupt pin INT1 and/or INT2. A more advanced feature allows the generation of an
interrupt request when a double input stimulus with programmable time between the two
events is recognized, enabling a mouse button-like function.
In the LSM6DS3 device the single-tap and double-tap recognition functions use the slope
between two consecutive acceleration samples to detect the tap events; the slope data is
computed using the following formula:
slope(tn) = [ acc(tn) - acc(tn-1) ] / 2
This function can be fully programmed by the user in terms of expected amplitude and
timing of the slope data by means of a dedicated set of registers.
Single and double-tap recognition work independently of the selected output data rate.
Recommended accelerometer ODRs for these functions are 416 Hz and 833 Hz.
Table 31. D6D_SRC register in 6D positions
Case
D6D_IA
ZH
ZH
YH
YL
XH
XL
(a)
1001000
(b)
1000001
(c)
1000010
(d)
1000100
(e)
1100000
(f)
1010000
1
Write 60h into CTRL1_XL
// Turn on the accelerometer
// ODR_XL = 416 Hz, FS_XL = 2g
2
Write 40h into TAP_THS_6D
// Set 6D threshold (SIXD_THS[1:0] = 10b = 60 degrees)
4
Write 10h into TAP_CFG
// Enable LPF2 filter
3
Write 01h into CTRL8_XL
// Apply LPF2 filter to 6D functionality
5
Write 04h into MD1_CFG
// 6D interrupt driven to INT1 pin



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