Electronic Components Datasheet Search
  English  ▼

X  

AN4650 Datasheet(PDF) 39 Page - STMicroelectronics

Part # AN4650
Description  This document is intended to provide usage information
PDF  102 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4650 Datasheet(HTML) 39 Page - STMicroelectronics

Back Button AN4650 Datasheet HTML 35Page - STMicroelectronics AN4650 Datasheet HTML 36Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 39 / 102 page
background image
DocID027415 Rev 1
39/102
AN4650
Interrupt generation
102
The free-fall interrupt signal can be driven to the two interrupt pins by setting to 1 the
INT1_FF bit of the MD1_CFG register or the INT2_FF bit of the MD2_CFG register; it can
also be checked by reading the FF_IA bit of the WAKE_UP_SRC register.
If latch mode is disabled (LIR bit of TAP_CFG is set to 0), the interrupt signal is
automatically reset when the free-fall condition is no longer verified. If latch mode is enabled
and the free-fall interrupt signal is driven to the interrupt pins, once a free-fall event has
occurred and the interrupt pin is asserted, it must be reset by reading the WAKE_UP_SRC
register. If the latch mode is enabled but the interrupt signal is not driven to the interrupt
pins, the latch feature does not take effect.
The register used to configure the threshold parameter is named FREE_FALL; the unsigned
threshold value is related to the value of the FF_THS[2:0] field value as indicated in
Table 28. The values given in this table are valid for each accelerometer full-scale value.
Duration time is measured in N/ODR_XL, where N is the content of the FF_DUR[5:0] field of
the FREE_FALL / WAKE_UP_DUR registers and ODR_XL is the accelerometer data rate.
A basic SW routine for the free-fall event recognition is given below.
The sample code exploits a threshold set to 312 mg for free-fall recognition and the event is
notified by hardware through the INT1 pin. The FF_DUR[5:0] field of FREE_FALL /
WAKE_UP_DUR registers is configured like this to ignore events that are shorter than
6/ODR_XL = 6/412 Hz ~= 15 msec in order to avoid false detections.
Table 28. Free-fall threshold LSB value
FREE_FALL - FF_THS[2:0]
Threshold LSB value [mg]
000
156
001
219
010
250
011
312
100
344
101
406
110
469
111
500
1
Write 60h into CTRL1_XL
// Turn on the accelerometer
// ODR_XL = 416 Hz, FS_XL = 2g
2
Write 00h into WAKE_UP_DUR
// Set event duration (FF_DUR5 bit)
3
Write 33h into FREE_FALL
// Set FF threshold (FF_THS[2:0] = 011b)
// Set six samples event duration (FF_DUR[5:0] = 000110b)
4
Write 10h into MD1_CFG
// FF interrupt driven to INT1 pin
5
Write 01h into TAP_CFG
// Latch interrupt



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


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