Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3393 Datasheet(PDF) 16 Page - STMicroelectronics

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

AN3393 Datasheet(HTML) 16 Page - STMicroelectronics

Back Button AN3393 Datasheet HTML 12Page - STMicroelectronics AN3393 Datasheet HTML 13Page - STMicroelectronics AN3393 Datasheet HTML 14Page - STMicroelectronics AN3393 Datasheet HTML 15Page - STMicroelectronics AN3393 Datasheet HTML 16Page - STMicroelectronics AN3393 Datasheet HTML 17Page - STMicroelectronics AN3393 Datasheet HTML 18Page - STMicroelectronics AN3393 Datasheet HTML 19Page - STMicroelectronics AN3393 Datasheet HTML 20Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 103 page
background image
Interrupt generation
AN3393
16/103
DocID018750 Rev 4
3
Interrupt generation
The LIS3DSH can be configured to generate interrupt signals activated by user-defined
motion patterns. To do this, pins 9 and 11 are used respectively as INT2 and INT1.
Interrupt signals are the main results of the two state machines; they are triggered when
output/stop/continue states are reached in one of the two state machines. When an interrupt
occurs, the INT_SM1 or the INT_SM2 bit on the STAT register (18h) is updated.
Both State Machine 1 and State Machine 2 can be routed to INT1 and INT2, by setting the
SM1_PIN and SM2_PIN bits in the CTRL_REG1 and CTRL_REG2 registers.
Moreover, the device may be configured to have a HW signal to determine when a new set
of measurement data is available for reading. By setting the DR_EN bit to ‘1’ in the
CTRL_REG3 register (23h), the data-ready signal is routed to INT1 and the DRDY bit in the
STAT register (18h) is updated according to the status.
Interrupt signal polarity is set through the IEA bit while the signal shape (latched/pulsed) is
set through the IEL bit in the CTRL_REG3 register (23h). When the interrupt is pulsed, it has
a fixed duration of 50 μs.
An interrupt on the INT1 pin can also be generated when a FIFO buffer is used, such as for
a programmable watermark level, FIFO empty or FIFO full events (see CTRL_REG6
register, 25h).
Finally, interrupts can be enabled/disabled by setting bits INT2_EN and INT1_EN in the
CTRL_REG3 register (23h).
Table 5 indicates all the interrupt bits in the LIS3DSH.
Figure 2 shows how the interrupt signals can be routed to the interrupt pins.
Table 5. Interrupt bits
Bit
Register
Behavior
INT_SM1
STAT (18h)
Updated when INT1 occurs
INT_SM2
STAT (18h)
Updated when INT2 occurs
SM1_PIN
CTRL_REG1 (21h)
State Machine 1 interrupt routed to INT1/INT2
SM2_PIN
CTRL_REG2 (22h)
State Machine 2 interrupt routed to INT1/INT2
DR_EN
CTRL_REG3 (23h)
Enable/disable data-ready signal (routed to INT1)
IEA
CTRL_REG3 (23h)
Define interrupt signal polarity (active low / active high)
IEL
CTRL_REG3 (23h)
Define interrupt signal shape: latched / pulsed
P1_EMPTY
CTRL_REG6 (25h)
Enable FIFO empty indication on INT1 pin
P1_WTM
CTRL_REG6 (25h)
Enable FIFO watermark interrupt on INT1 pin
P1_OVERRUN
CTRL_REG6 (25h)
Enable FIFO overrun interrupt on INT1 pin
P2_BOOT
CTRL_REG6 (25h)
Enable BOOT interrupt on INT2 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


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