This application note introduces a power-fail comparator for NVRAM supervisory devices, which can deal with issues caused by unexpected power loss and provide early warning functionality. It can monitor the unregulated supply voltage and generate a warning signal when the supply voltage falls below a preset threshold, allowing the system to perform a controlled shutdown sequence.