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

Set 2 pins to wakeup from System ON and OFF, and know which pin was pressed

I want to configure two pins to be able to wake up both from System ON and OFF and know which pin was pressed

is it possible?

Parents
  • Hi,

    It is not possible for SYSTEMOFF, as the wakeup will reset almost all the peripherals including GPIOs so you wont be able to tell which GPIO caused the wakeup.

    Only possible reasons that we could know are mentioned in NRF_POWER->RESETREAS register in nrf51 reference manual section 12.3 Table 53.

    Bit number 16 will only tell you that the wakeup is from systemoff due to DETECT signal from gpio but it wont tell you which GPIO caused this.

Reply
  • Hi,

    It is not possible for SYSTEMOFF, as the wakeup will reset almost all the peripherals including GPIOs so you wont be able to tell which GPIO caused the wakeup.

    Only possible reasons that we could know are mentioned in NRF_POWER->RESETREAS register in nrf51 reference manual section 12.3 Table 53.

    Bit number 16 will only tell you that the wakeup is from systemoff due to DETECT signal from gpio but it wont tell you which GPIO caused this.

Children
No Data
Related