Page 1 of 1

Interrupts Trigger on Opposite Logic Levels

Posted: Fri Mar 08, 2024 11:07 pm
by DaveInPA
Looking to use hardware interrupt to trigger short piece of code with a basic clock signal. I have a scope on the signal and it seems that triggers when i specify RISING when the signal goes from 3.3 to 0 vs. the other way around. Same with the FALLING interrupt where it will trigger when the signal goes from 0 to 3.3v.

The other strange behavior is that if the signal is left low and i have it set to FALLING trigger interrupts are being constantly triggered.

I thought i read the docs carefully but i don't see any mention of reverse logic on the interrupts. Also don't get why if its set to FALLING it triggers when held low or when set to RISING and held high.

Any pointers for this newbie that is probably missing something obvious? I'm using GPIO23 on a WROOM-32 and Arduino-IDE.

Re: Interrupts Trigger on Opposite Logic Levels

Posted: Sat Mar 09, 2024 4:51 pm
by DaveInPA
SOLVED: I changed the pin configuration to be PULLDOWN and i think it solved my problems...