I am new to NXP and there is something I want to do and I don't understand how to do it.
I have a product running on a 3 volts battery. There is a voltage divider on the battery that connects to pin PIO_0/ACMP_I1. I need to monitor this voltage, and when it goes under a certain threshold, set a flag to indicate it is time to change the battery. I went through the datasheet and I don't understand what I should do. Can someone please give me a quick overview of what I should do?