This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

uC sleeping BUT Not Waking off RDYN issue?

I'm right now getting uC to sleep WHEN THERE ARE NO ACI EVENTS I think I'm doing right, the uC sleeps but I'm not able to wake up despite the fact that RDYN is connceted to pin 2 and as I use ATmega328 its the lowest level hardware interrupt that should make the uC wake up but it is not happning ,I have the issue covered here >> forums.adafruit.com/viewtopic.php

I have tried both external interrupt using attachInterrupt(0, funcNAME, CHANGE); and PCintPort::attachInterrupt(2, funcNAME, CHANGE/FALLING/RISING);

IN connections the RDYN is very finely soldered to pin2 of ATmega or else the nrf8001 wouldn't work at all so its the problem somewhere in the library or my methodology/way of getting the uC to sleep!

Parents
    1. Can you upgrade to the latest release in the github, the last release had some cleanup done in the hal_aci_tl.cpp

    The ACI library supports both polling and interrupts so (once you upgrade to the latest release) you not not need to change anything that happens in the interrupt code path when you are using polling. If you are using polling you only need to set up the pin attached to the RDYN line as a wakeup source for the mcu, having an interrupt to the RDYN line is optional as you will only use it as wakeup and not run the ACI in interrupt mode.

    You can post your results after you do the upgrade. There is an interface change in lib_aci_init() and in do_aci_setup() in the latest release.

Reply
    1. Can you upgrade to the latest release in the github, the last release had some cleanup done in the hal_aci_tl.cpp

    The ACI library supports both polling and interrupts so (once you upgrade to the latest release) you not not need to change anything that happens in the interrupt code path when you are using polling. If you are using polling you only need to set up the pin attached to the RDYN line as a wakeup source for the mcu, having an interrupt to the RDYN line is optional as you will only use it as wakeup and not run the ACI in interrupt mode.

    You can post your results after you do the upgrade. There is an interface change in lib_aci_init() and in do_aci_setup() in the latest release.

Children
No Data
Related