force edge-triggered behaviour of EXTI interrupt
MCU & Boards
No replies yet. Be the first to reply.
Join the discussion.
MCU & Boards
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: force edge-triggered behaviour of EXTI interrupt
by Kei ·
First, we apologize that the provided Define name is a misleading name.
If you look at the data sheet of W7500P, you can see the following figure related to EXTI.
Interruption occurs only for Low and High values in this logic structure.
Therefore, if you continuously press a specific button that has set EXTI, it is normal that interrupt occurs continuously even if Pending is cleared.
This is caused by the EXTI_Handler you created.
This is caused by changing the polarity.
This is because when you press the button, the polarity changes to Trigger_HIGH, and an interrupt occurs again when you release the button.
The conclusion is that in case of W7500P, you need to use GPIO interrupt to use falling rising edge.
Please refer to the GPIO/Interrupt example below.
RE: force edge-triggered behaviour of EXTI interrupt
by becky ·
Hi,
I recommend using the interrupt function of the GPIO register.
This interrupt is capable of rising and falling detect.
I think that this code will work the way you want it.
If not, please reply.
Thank you
RE: force edge-triggered behaviour of EXTI interrupt
by digitig21 ·
Hey guys,
@becky: Your code works fine! thank you.
Now I want to add a post to this thread, because in the course of my coding process I noticed 2 things:
Example:
This code won’t work. Why?