2020-06-07 09:59 AM
Hi all -
Two questions:
Related Comment: I see in the datasheet that, using the IEA bit of the INT_CFG register, INT can be set active high or active low, but I haven't yet found similar info on DRDY, nor indication of whether these two pins are Open Drain or Push/Pull.
Context: I would really like (if possible) to set both DRDY and INT to be active low and open drain, and join them together into a single combined DRDY_INT line to connect to a single GPIO on the MCU. For me, it seems rather redundant to have these two lines separate - either I am actively monitoring the pressure with the connected MCU (and can easily decide on the MCU what to do, with simple logic based on measured pressure levels), or I am not. If I am NOT actively monitoring the pressure on the MCU, only then I do I really need to be alerted whenever a certain pressure threshold is reached. Thus the desire to not waste a second GPIO line when wiring the LIS3MDL to an MCU.
2020-06-08 07:52 AM
Hi @Bacteriusewley , unfortunately it is not possible to combine the two interrupts (threshold event and DRDY) on a single INT pad for the LIS3MDL (is it possible on other sensors, for example on the LIS2MDL). You could manage the DRDY by polling the STATUS_REG (27h) register, but I agree it is not an elegant solution. The two INT and DRDY pin are configured in push-pull output mode (because the two signals are routed by default on the physical pins, differently from the LIS2MDL case)... Regards