Good Day.
I want to measure the approximate voltage level on the battery in the nrf52820 microcontroller using a comparator (COMP) operating in Single-ended mode. I use the VDD contact as a reference voltage (3V coming from the PMIС nPM1100). The connection diagram is shown in the screenshot.
Please help me understand what values of resistors (R1, R2) and capacitor (C1) should be used for the best measurement performance? I will be glad for any help.