pinMode(7, INPUT_PULLUP); attachInterrupt(digitalPinToInterrupt(7), IRQcounter, FALLING);
Under normal circumstances, the Interrupt will react to Falling and interprets the number of falls..On a power down of the mains, the alarm battery automatically takes over, so the interrupt should not be triggered at all. So I'm looking for a solution to prevent this from happening.Please see the O-Scope reading._______ _______ _______ | | | | |______| |______|
Thanks Paul. The answer is I don't know By observation, the alarm doesn't lose power. Is there anyway to resolve this?