A power supply control device for an image forming apparatus of the
present invention includes a shutoff detector for monitoring the state of
a power switch. In response to the output signal of the shutoff detector
representative of the turn-off of the power switch, a shutoff processing
section executes processing for avoiding accidental error detection and
protecting a memory before the output voltage of a DC power supply drops
to a preselected level.