The invention belongs to the field of
switching power supplies, and relates to a power failure holding circuit and a control method. The power failure holding circuit comprises a controller, a switch, a
filter capacitor, an
energy storage capacitor and a bidirectional direct-current converter, and the bidirectional direct-current converter comprises an
inductor, a switching tube S1, a switching tube S2, a
diode D1 and a
diode D2; the bidirectional direct-current converter is controlled by the controller to enable the power-down holding circuit to work in a boost mode, a buck mode or a free
discharge mode. In a boost mode, the
inductor, the switching tube S1 and the
diode D2 form a boost circuit; in a buck mode, the
inductor, the switching tube S2 and the diode D1 form a step-down circuit, and the switching tube S2 works in an on-off state; in the free
discharge mode, the switching tube S2 is controlled to be in a normally-on state, and the
energy storage capacitor directly supplies power to the output
voltage. The boost and buck
modes are controlled by independent switching tubes, the switching response speed of the boost and buck
modes is high, and the problems of narrow application range, complex control and slow
mode switching dynamic response in the prior art can be effectively solved.