Skip to content

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

Closed
@jps2000

Description

@jps2000

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

Activity

per1234

per1234 commented on Aug 13, 2018

@per1234
Collaborator

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

jps2000

jps2000 commented on Aug 17, 2018

@jps2000
Author

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

e-ika

e-ika commented on Sep 6, 2018

@e-ika

Yes, seems something that isn't working

per1234

per1234 commented on Jan 24, 2019

@per1234
Collaborator

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      arduino nano (ATMEGA328P) interrupt FALLING is doing CHANGE · Issue #414 · arduino/reference-en