-
Notifications
You must be signed in to change notification settings - Fork 26
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
Does not work for pin High #12
Comments
I found all sleep modes except for idle requite pin LOW. Idle is the only one that allows pin HIGH and CHANGE. |
If you check out this chart from the Atmega328 datasheet you will see that in all sleep modes besides Idle only a level interrupt works (INT1,INT0 column). Level interrupts are only HIGH or LOW. Edge interrupts are CHANGE, RISING, and FALLING. Also the Arduino reference says only the Arduino Due, Zero, MKR1000 work for interrupt HIGH. So that leaves us with only LOW interrupt available for sleep modes besides Idle. |
This is interesting, found it here. But your saying this is not true? Maybe it depends on the version/batch of the Atmega chip? Strange. Tip: Quote: Commented by Manoraj Gnanadhas (Atmel) Hello Nick, Our design team has confirmed that “Note-3 mentioned under Table 10-1” is a datasheet bug. So you can use any type of interrupt (Rising edge/ Falling edge / Low level / Any logical change) to wake up from sleep mode. Sorry for the inconvenience caused. Best Regards, Thus, all interrupt types will wake the processor. |
Closing, hopefully its been solved or my answer helped. |
The code works great except when I monitor for a pin high condition. I changed falling and low to rising and high in the library. Any thoughts?
The text was updated successfully, but these errors were encountered: