We are using GPIO1 (pin no. 18) as ADC for the external voltage monitor.
We have configured the ADC code for high-level (111) and low-level (000) threshold detection.
once the voltage reaches the low-level threshold, the interrupt generates a low-level limit, if the voltage reaches the high-level threshold, the interrupt still generates the low-level limit instead of the high-level limit.