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

[nRF52832] Can DETECT signal be edge detect?

Hi all,

I am thinking of using a GPIO pin's "SENSE LOW" to wake up my device from SYSTEM OFF mode. In order to avoid the device keeps waking up in case the pin stays low (e.g. a button is continuously pushed), I would like to use the DETECT signal as "edge detect" instead of "level detect".

Is there a way to make the signal be edge detect, or is there any code recipe to achieve something similar?

Thank you very much for your help.

Parents
  • Hi,

    Q: Is there a way to make the signal be edge detect, or is there any code recipe to achieve something similar?

    A: Yes, you can use the ANADETECT signal. The LPCOMP can wake up the system from System OFF by asserting the ANADETECT signal. The ANADETECT signal can be derived from any of the event sources that generate the UP, DOWN and CROSS events. Take a look at the LPCOMP Example in the SDK for how to configure and use the LPCOMP.

Reply
  • Hi,

    Q: Is there a way to make the signal be edge detect, or is there any code recipe to achieve something similar?

    A: Yes, you can use the ANADETECT signal. The LPCOMP can wake up the system from System OFF by asserting the ANADETECT signal. The ANADETECT signal can be derived from any of the event sources that generate the UP, DOWN and CROSS events. Take a look at the LPCOMP Example in the SDK for how to configure and use the LPCOMP.

Children
Related