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

LPCOMP : Cross detect - Rising or falling edge ?

Hello,

I'm using low power comparator with cross detection.

It works but I can't detect if it's failling or rising edge.

Can we detect simultaneously DOWN and UP event ?

My setup is : - NRF52832-DK - Linux environment - SEGGER-RTT - SDK 11

Thank you.

  • Solution found :

    "The immediate value of the LPCOMP can be sampled to RESULT by triggering the SAMPLE task."

    In practice :

      NRF_LPCOMP->TASKS_SAMPLE = 1;