Power failure protection is possible by using the power-fail comparator (POF) that is monitoring power supply.
If the power-fail comparator is enabled, and the power supply voltage is below the POF threshold, the power-fail comparator will prevent RRAMC from performing write operations. For more information about POF, see Power-fail comparator.
If a power failure warning is present at the start of an RRAM write operation, RRAMC will block the operation and a bus error will be signaled.
If a power failure warning occurs during an ongoing RRAM write, RRAMC can be configured
to handle this in two ways:
- If POWER.CONFIG.POF = Abort, then RRAMC will stop the commit process from the internal write-buffer as soon as the condition occurs. After a power-failure event, the write buffer must be cleared by using the CLRWRITEBUF task before writing more data to RRAM.
- If POWER.CONFIG.POF = Wait, then RRAMC will try to complete the on-going write despite the warning of the operating voltage becoming too low.