This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Wakeup from sleep with GPIO

Hi, I would like to put a nrf51822 device into system off mode and wake it up with a GPIO transition from high to low. I would like to measure the press time of the button after wake up but it seems that software doesn't run properly until the button is pressed. So, does the software run normally after the reset transition even if the button is still pressed? I hope it is clear. Thanks.

Parents
  • Well the software doesn't run properly until the button is pressed because it's off. After you press the button and the chip resets then of course it will run normally, from the very start of your code. If you want to measure the press time of the button, then you'll have to detect at the start of your code if the button is currently pressed and start timing it, and you'll miss the time it takse for the system to reset itself.

  • Hi, yes, I do exactly as you said. The timer starts running after reset immediately is level is low. Anyway, can you confirm that software runs after the wake up transition even if it still at low? Thanks.

Reply Children
No Data
Related