Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arduino nano (ATMEGA328P) interrupt FALLING is doing CHANGE #414

Closed
jps2000 opened this issue Aug 13, 2018 · 4 comments
Closed

arduino nano (ATMEGA328P) interrupt FALLING is doing CHANGE #414

jps2000 opened this issue Aug 13, 2018 · 4 comments
Labels

Comments

@jps2000
Copy link

jps2000 commented Aug 13, 2018

Attaching interrupt to PD2 or PD3 should handle RISING, CHANGE and FALLING behavior.
However FALLING is actually doing CHANGE. RISING is working properly!

@per1234
Copy link
Collaborator

per1234 commented Aug 13, 2018

Is this really related to a problem with the documentation content?

@jps2000
Copy link
Author

jps2000 commented Aug 17, 2018

First it is something that is not working.
Hence one can mention that in doc or repair it

@jps2000 jps2000 closed this as completed Aug 17, 2018
@jps2000 jps2000 reopened this Aug 17, 2018
@e-ika
Copy link

e-ika commented Sep 6, 2018

Yes, seems something that isn't working

@per1234
Copy link
Collaborator

per1234 commented Jan 24, 2019

I've been doing some experiments and I can't manage to reproduce this issue. FALLING is working just as expected for me.

I'm going to close this but if @jps2000 or @e-ika will provide me with enough information to reproduce the issue, I'll be happy to re-open it.

Note that if you use a switch or similar to trigger the interrupt, you could indeed get a FALLING interrupt when the pin goes HIGH. The reason is that contact bounce will actually cause several transitions from HIGH to LOW and back before the pin reaches a steady state. A more suitable source of a clean interrupt signal for testing is another Arduino board running the Blink example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants