Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN2847 Datasheet(PDF) 24 Page - STMicroelectronics

Part # AN2847
Description  This document provides application information for the low-voltage 3-axis digital output
PDF  31 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2847 Datasheet(HTML) 24 Page - STMicroelectronics

Back Button AN2847 Datasheet HTML 20Page - STMicroelectronics AN2847 Datasheet HTML 21Page - STMicroelectronics AN2847 Datasheet HTML 22Page - STMicroelectronics AN2847 Datasheet HTML 23Page - STMicroelectronics AN2847 Datasheet HTML 24Page - STMicroelectronics AN2847 Datasheet HTML 25Page - STMicroelectronics AN2847 Datasheet HTML 26Page - STMicroelectronics AN2847 Datasheet HTML 27Page - STMicroelectronics AN2847 Datasheet HTML 28Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 24 / 31 page
background image
Interrupt generation
AN2847
24/31
Doc ID 15136 Rev 2
5.4
Inertial wake-up
The wake-up interrupt refers to a specific configuration of the INTx_CTRL registers that
allow the interrupt generation when the acceleration on the configured axis exceeds a
defined threshold (
Figure 10).
Figure 10.
Inertial wake-up interrupt
5.4.1
HP filter bypassed
This paragraph provides a basic algorithm which shows the practical use of the inertial
wake-up feature. In particular, with the code below, the device is configured to recognize
when the absolute acceleration along either X or Y axis exceeds a preset threshold (250 mg
used in the example). The event which triggers the interrupt is latched inside the device and
its occurrence is signaled through the usage of the INT1 pin.
0 g
WAKE UP
THRESHOLD
WKP Interrupt
0 g
WAKE UP
THRESHOLD
WKP Interrupt
WU Interrupt
1
write 2Fh into CTRL_REG1
// Turn on the sensor and enable X, Y and Z
// ODR = 100 Hz
2
write 00h into CTRL_REG2
// High pass filter disabled
3
write 00h into CTRL_REG3
// Latched interrupt active high on INT1 pad
4
write 00h into CTRL_REG4
// FS = 2 g
5
write 00h into CTRL_REG5
// Sleep to Wake disabled
6
write10h into INT1_THS
// Threshold = 250 mg
7
write 00h into INT1_DURATION
// Duration = 0
8
write 0Ah into INT1_CFG
// Enable XH and YH interrupt generation
9
poll INT1 pad; if INT1=0 then goto 8
// Poll RDY/INT pin waiting for the
// wake-up event
10
read INT1_SRC
// Return the event that has triggered the
// interrupt
11
(Wake-up event has occurred; insert
your code here)
// Event handling
12
goto 8



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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