Post Go back to editing

INT1 does non operate correctly

Category: Datasheet/Specs
Product Number: ADXL314
I nedd to use ADXL314 to have an interrupt on falling edge every time the activity threasold is exceeded.

Below my setup:
1 - read register 0x30 (INT_SOURCE) to reset the interrupt
2 - write
register 0x31 (DATA_FORMAT) with value 0x20, to have an interrupt on falling edge
3 - write register 0x24 (THRESH_ACT) with value 0x08
4 - write register 0x25 (THRESH_INACT) with value 0x04
5 - write register 0x26 (TIME_INACT) with value 0x03
6 - write register 0x27 (ACT_INACT) with value 0xF7
7 - write register 0x2F (INT_MAP) with value 0x00, to have interrupt on INT1 pin
8 - write register 0x38 (FIFO_CTL) with value 0x00
9 - write register 0x2C (BW_RATE) with value 0x0A, 100 Hz output data rate
10 - write register 0x2E (INT_ENABLE) with value 0x10, to enable activity interrupt
11 - write register 0x2D (POWER_CTL) with value 0x08, to place the device into measurement mode
At this point I see an interrup immediatly without moving the device. I read register 0x30 to reset the interrupt,
and on the oscilloscope I see the int1 pin that goes high, but it doesn't fire again even if I bump the device.
Is there any register I 'm not setting correcty? 
I'm stuck, I nedd help,
thanks in advance 
Emanuela
  • Hi Emanuela, upon initial revision it looks like your registers are set up properly and INT1 should fire on a falling edge. However, it seems like your activity and inactivity thresholds are quite low, and would most likely fall below the noise floor, which would explain why the activity trigger is immediately firing. Given that the 314 has a range of ±200g, your activity threshold would be around 0.4g over the reference level, which this model isn't sensitive enough to pick up over its large g range. Moreover, TIME_INACT is set to 3 samples, meaning 3 consecutive samples over the threshold would trigger the activity flag. This value is also quite low. May I ask about the use case for this device? Is the large range necessary?