| Electronic Components Datasheet Search |
|
AN3308 Datasheet(PDF) 25 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3308 Datasheet(HTML) 25 Page - STMicroelectronics |
|
25 / 52 page ![]() AN3308 Inertial interrupt Doc ID 18198 Rev 1 25/52 6.4 Free-fall detection Free-fall detection refers to a specific configuration of INT1_CTRL registers that allows to recognize when the device is free falling: the acceleration measure along all the axes goes to zero. In a real case a “free-fall zone” is defined around the zero-g level where all the accelerations are small enough to generate the interrupt (Figure 10). Figure 10. Free-fall interrupt This paragraph provides the basics for the use of the free-fall detection feature. In particular, the SW routine that configures the device to detect free-fall events and to signal them is the following: 1 Write A7h into CTRL_REG1 // Turn on the sensor, enable X, Y, and Z // ODR = 100 Hz 2 Write 00h into CTRL_REG2 // High-pass filter disabled 3 Write 40h into CTRL_REG3 // Interrupt driven to INT1 pad 4 Write 00h into CTRL_REG4 // FS = 2 g 5 Write 08h into CTRL_REG5 // Interrupt latched 6 Write 16h into INT1_THS // Set free-fall threshold = 350 mg 7 Write 03h into INT1_DURATION // Set minimum event duration 8 Write 95h into INT1_CFG // Configure free-fall recognition 9 Poll INT1 pad; if INT1 = 0 then go to 10 // Poll INT1 pin waiting for the free-fall event 10 (Free-fall event has occurred; insert your code here) // Event handling 11 Read INT1_SRC register // Clear interrupt request 12 Go to 9 |
|
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 |
| 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 |