(Power Save) Why do interrupts need to be disabled before execution of the EPOF instruction?
The EPOF instruction and the POF instruction must be executed in succession in order to switch to RAM back-up mode. If an interrupt occurs between these two instructions, the MCU will not go into RAM back-up mode even after returning from the interrupt routine. For this reason, disable interrupts by executing the DI instruction before executing the EPOF instruction. (#105022)