The utility model provides a charger with a power failure memory function, which realizes intelligent charging by integrating an
alternating current power supply input module, an EMI (Electro-Magnetic Interference) filtering module, a rectifying module, a filtering module, a
voltage dividing module, an MCU (Microprogrammed
Control Unit) control module, a
memory module, a power failure detection module, a preset time maintenance module and a charging
recovery module. The charger can remember parameters such as
voltage, current, battery type and the like set by a user, and automatically recover to a state before power failure after the power supply is recovered, and the user does not need to operate again. The function is achieved through
cooperative work of the MCU controller, the
memory module, the power failure detection module and the
recovery module, the operation process is greatly simplified, and the user experience is improved. And when the power supply fails, the preset time maintaining module ensures that the setting is not lost, so that the safety and reliability of the charging process are ensured.