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

COMP and external reference

Hi,

I'm trying to compare two RC networks by using GPIOTE, PPI, a Timer and the comparator to measure the time needed for a charge and discharge cycle for each of the networks and then comparing the values.

At the moment I'm using the comparator in single ended mode with VDD as reference and this is working, but the results are pretty noisy. Part of the noise is obviously coming from the reference voltage, because doing the measurements inside a high priority timeslot is reducing the noise significantly.

For further improvements I want to supply VDD externally to AIN0 through a low pass filter (1.2kOhm, 2.2uF), but after changing the reference from NRF_COMP_REF_VDD to NRF_COMP_REF_ARef and ext_ref to NRF_COMP_EXT_REF_0 the output of the comparator is always zero.

Is there anything else to do or enable to use an external reference?

Parents Reply Children
No Data
Related