The invention discloses a power failure protection circuit and application thereof. The power failure protection circuit comprises a main circuit, a power supply circuit, a detection circuit and a
logic control circuit; the main circuit is a bidirectional
silicon controlled
rectifier switching circuit with an optoelectronic
isolator U4; the power supply circuit is a half-wave rectification circuit; a switch SW1 is arranged between the power supply circuit and the detection circuit, the detection circuit comprises a time
delay circuit and a switch state detection circuit, and state detection ofa
power grid and the switch SW1 can be realized; the
logic control circuit comprises
NAND logic controllers U1, U2 and U3, and controls the level of an input pin 2 of the U4, thereby controlling thevoltage difference between a pin 1 and a pin 2 of the U4, thereby achieving the control of the bidirectional
silicon controlled
rectifier. When the working circuit is suddenly powered off during operation, the
power grid and switch detection signals are abnormal, the circuit stops operating, and the switch SW1 is not switched off; and after
electrification, the
power grid is detected to be normal,but the switch is detected to be in a
closed state, the
logic control circuit does not output a trigger
signal, the main circuit is started, and normal operation can be realized only by switching offand switching on the switch.