công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN4506 bảng dữ liệu(PDF) 31 Page - STMicroelectronics

tên linh kiện AN4506
Giải thích chi tiết về linh kiện  This document is intended to provide information
PDF  47 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4506 bảng dữ liệu(HTML) 31 Page - STMicroelectronics

Back Button AN4506 Datasheet HTML 27Page - STMicroelectronics AN4506 Datasheet HTML 28Page - STMicroelectronics AN4506 Datasheet HTML 29Page - STMicroelectronics AN4506 Datasheet HTML 30Page - STMicroelectronics AN4506 Datasheet HTML 31Page - STMicroelectronics AN4506 Datasheet HTML 32Page - STMicroelectronics AN4506 Datasheet HTML 33Page - STMicroelectronics AN4506 Datasheet HTML 34Page - STMicroelectronics AN4506 Datasheet HTML 35Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 31 / 47 page
background image
AN4506
Interrupt generation
DocID026442 Rev 2
31/47
This paragraph provides the basics for the use of the selective axis movement detection
feature. Here below is reported the example code which implements the SW routine for the
selective axis movement recognition:
The code sample exploits a threshold set at 60 dps selective axis movement detection and
the event is notified by the hardware signal INT1. At step 7, the IG_DURATION register is
configured like this to ignore events that are shorter than 1/DR = 1/100 ~= 10 msec in order
to avoid false detections. Once the selective axis movement detection has occurred, a read
of the IG_SRC register clears the request and the device is ready to recognize other events.
1
Write 0Fh into CTRL1
// Turn on the sensor and enable X, Y, and Z
// ODR = 100 Hz
3
Write 80h into CTRL3
// Interrupt driven to INT1 pad
4
Write 00h into CTRL4
// FS = 245 dps
6
Write 1Fh into IG_THS_XH
// Threshold = 60 dps
7
Write 58h into IG_THS_XL
// Threshold = 60 dps
8
Write 1Fh into IG_THS_YH
// Threshold = 60 dps
9
Write 58h into IG_THS_YL
// Threshold = 60 dps
10 Write 1Fh into IG_THS_ZH
// Threshold = 60 dps
11
Write 58h into IG_THS_ZL
// Threshold = 60 dps
12 Write 01h into IG_DURATION
// Duration = 10 ms
13 Write 65h into IG_CFG
// Enable XL, YL and ZH interrupt generation in AND
// configuration. Interrupt latched
14 Poll INT1 pad; if INT1=0 then go to 8
// Poll INT1 pin waiting for the
// wake-up event
15 Read IG_SRC
// Return the event that has triggered the
// interrupt
16
(Wake-up event has occurred; insert
your code here)
// Event handling
17 Go to 15



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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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