A circuit for prevention of unintentional writing to a memory prevents
unintentional writing to a nonvolatile memory, after a recovery from a
transitory power failure. The circuit includes a low-voltage detection
circuit for detecting a power supply voltage drop depending on the state
of a control signal for the detection circuit. A writing operation to the
memory is prohibited depending on the control signal as well as upon an
output signal of the low-voltage detection circuit.