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

LPCOMP Reference Selection

Hi everyone,

I am using LPCOMP in rFF58122. When coosing the reference voltage, I have to fill the structure nrf_drv_lpcomp_config_t with the hal nrf_lpcomp_config_t that includes the reference voltage (nrf_lpcomp_ref_t).

This nrf_lpcomp_ref_t (in nrf_lpcomp.h) may be from 1_8 to 7_8 supply voltage reference and two external references.

If I choose, for example, NRF_LPCOMP_REF_SUPPLY_2_8, does that mean that LPCOMP is comparing the voltage with 2/8 of the supply voltage (in my case a 3.6V battery)?

Is it possible to use the internal reference of the nRF51822, so it is not affected by tension falls?

Thank you

Related