An integrated circuit comprising a processor, non-volatile memory, an
input for receiving power from a power supply and a power detection unit,
wherein the integrated circuit is configured to enable multi-word writes
to the non-volatile memory, the power detection unit being configured to:
monitor a quality of power supplied to the input; and in the event the
quality of the power drops below a predetermined threshold, preventing
subsequent words in any multi-word write currently being performed from
being written to the memory.