3 Block Diagram
The HLVD module’s block diagram is shown in the figure below.
The HLVD can be software-enabled through the HLVDEN bit. Each time the HLVD module is enabled, the HLVDRDY bit can be used to detect when the module is stable and ready to use. The HLVDINTH and HLVDINTL bits of the HLVDCON0 register determine the overall operation of the module. When INTH is set, the module monitors for rise in VDD above the trip point set by the SEL bits. When INTL is set, the module monitors for drop in VDD below the trip point set by the SEL bits. When both the INTH and INTL bits are set, any changes above or below the trip point set by the SEL bits can be monitored. The OUT bit can be read to determine if the voltage is greater than or less than the selected trip point. If the supply voltage is below the set point, then the HLVDOUT bit will be set and, if the supply voltage is above the set point, the OUT bit will be cleared.