3539 lightning detector- interrupt question

I recently purchased a Sparkfun lightning detector. I am trying to integrate it into my weather station which has a plethory of sensors.

I am using the circuitpython library, and have it working. In order to work this sensor into my weather program, I need to understand the nature of the interrupt. My understanding is that the interrupt pin ‘goes high’ when an event is detected. Does the pin stay high until read, or is it high momentarily? If it stays high, how do I count events? I do not want continuous polling. CP has countio to detect edge changes and count them, if the interrupt is temporary, I can use countio to determine the number of lightning events. Otherwise, if the interrupt pin is only reset after actually reading the sensor, then I need to somehow detect the interrupt. I am using asyncio to cooperatively multitask, it works great, but needs to have a bit of time between tasks, it may be more than a few seconds.

Any info, or suggestions would be appreciated.

Roger

These might help explain interrupts.

https://learn.sparkfun.com/tutorials/pr … rduino/all

https://learn.adafruit.com/cooperative- … interrupts

Yellowdog,

Thank you. I am familiar with the adafruit asyncio library.

What I still want to know is if the interrupt stays high until the spi bus queries the 3539 board.

Roger

Page 34 of the data sheet has the information you’re looking for.

Thanks again, exactly what I needed.

Roger