GPIO16, deep sleep and pin interrupt
Posted: Wed Feb 22, 2017 2:50 am
My device goes into deep sleep and GPIO16 is connected to RESET in order to enable it to wake up.
But I also need to be able to manually wake up the device before the sleep period has expired using a short/long press button interrupt.
The reason is that a short press triggers the device to go into run mode and a long press triggers setup mode.
I cannot use the reset button as this triggers on the rising edge and I don't think it's therefore possible to detect that the reset button is being held down after the system has restarted.
So, can GPIO16 be also set as a pin interrupt that will force the system to wake up before the sleep period expires or is there another way ??
But I also need to be able to manually wake up the device before the sleep period has expired using a short/long press button interrupt.
The reason is that a short press triggers the device to go into run mode and a long press triggers setup mode.
I cannot use the reset button as this triggers on the rising edge and I don't think it's therefore possible to detect that the reset button is being held down after the system has restarted.
So, can GPIO16 be also set as a pin interrupt that will force the system to wake up before the sleep period expires or is there another way ??