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
Interrupts not working when in sleep mode #84
Comments
try using the avr/sleep.h library and see if you van get it working. There's plenty of tutorials out there. I'm om vacation right now, so I'm not able to help you at the moment. |
After quite a bit of fiddling with both using avr/sleep.h and the sleep options through this board functions, I have narrowed it down to be specifically the FALLING condition. Works fine when using LOW but not FALLING. Both using your MegaCore and the standard 2560 board. I can make that work. So I can say conclusively it is not limited to your board lib, where should I file a bug report on this for presumably the default lib? Unless my understanding of the chip is wrong, but this FALLING edge interrupt should still work in sleep, but I may be wrong. |
I think the best place to report/discuss this may be over at the avrfreaks forum. Thats where all the big guys hang out 😉 There might be a silicon bug inside the ATmega2560, so post the date code of the chip along with your question. |
Hello,
Essentially the problem I am having is my interrupts are not working to wake a 2560 from sleep using the AVR core pinout, here is my test code:
The interrupt works if I remove the sleep lines, but won't wake the micro from sleep. I've tried interrupts INT4 and INT7, the board I am currently working on does not have any other INT pins broken out.
The text was updated successfully, but these errors were encountered: