Interrupts Trigger on Opposite Logic Levels

DaveInPA
Posts: 2
Joined: Fri Mar 08, 2024 11:00 pm

Interrupts Trigger on Opposite Logic Levels

Postby DaveInPA » Fri Mar 08, 2024 11:07 pm

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.

DaveInPA
Posts: 2
Joined: Fri Mar 08, 2024 11:00 pm

Re: Interrupts Trigger on Opposite Logic Levels

Postby DaveInPA » Sat Mar 09, 2024 4:51 pm

SOLVED: I changed the pin configuration to be PULLDOWN and i think it solved my problems...

Who is online

Users browsing this forum: No registered users and 110 guests