Clarification on LIS3DH Event detection
Going over the application note AN3308 (Pg:27), step 9 depicts that in order to detect event, for example, free-fall, poll INT1 pad. This means checking the the physical status of the MCU pin to which INT1 pin is connected.
However, looking at the example codes provided by ST for free fall detection, it says read INT pin 1 in polling mode
or read src status register.
/*
* Check INT 1 pin or read source register
*/
lis3dh_reg_t all_source;
lis3dh_int1_gen_source_get(&dev_ctx, &all_source.int1_src);
if (!(all_source.byte & 0x3f))
{
sprintf((char*)tx_buffer, "freefall detected\r\n");
tx_com(tx_buffer, strlen((char const*)tx_buffer));
}This tells me that even if I have not connected the INT1 pin to the MCU but reading the interrupt source (LIS3DH_INT1_SRC) register of LIS3DH via I2C is enough for detecting events?
A clarification on this will solve my dilemma.
Thanks
