Power-down protection circuit of electronic system
Technical Field
The utility model relates to the technical field of electronics, in particular to a power-down protection circuit of an electronic system.
Background
A power-down protection circuit is a circuit for protecting electronic devices and circuits from damage that may be caused by a power failure or a power interruption. It ensures that the system responds correctly when the power is lost, protects the device from damage and data loss, and provides reliable power switching to ensure continued stable operation of the device. The conventional power-down protection operation is to increase input and output capacitors, but the increase of the capacitors can cause the phenomenon of dead halt due to insufficient load of a front-stage power supply, or cause the system short circuit and the start-up failure due to overlarge capacitance value of a rear-stage circuit.
Disclosure of utility model
Aiming at the problems in the prior art, the utility model provides a power-down protection circuit of an electronic system, which aims to solve the problems of data loss and power failure caused by system halt due to insufficient power supply, capacitor overcharge, short circuit and the like.
The technical scheme includes that the electronic system power-down protection circuit comprises a power supply, a power supply circuit used for supplying power to a load, a charging circuit used for charging a capacitor and having overcurrent protection, a power-down detection module used for detecting the power supply state of the power supply, and a clamping circuit capable of keeping the voltage of the capacitor consistent, wherein the clamping circuit is connected with a first capacitor and a second capacitor in series, two ends of the first capacitor are connected with a first voltage reference chip in parallel, and two ends of the second capacitor are connected with a second voltage reference chip in parallel.
Based on the above, the utility model comprises a power supply circuit, a charging circuit, a clamping circuit and a power failure detection module. When the power supply supplies power, current can pass through the power supply circuit supplies power to the load, and can charge the first capacitor and the second capacitor through the charging circuit simultaneously, the charging circuit is provided with a current limiting resistor and a triode, and instant short circuit phenomenon is prevented from occurring. The clamping circuit is provided with a first capacitor and a second capacitor in series, so that the output voltage of the capacitor is improved. Meanwhile, the first capacitor and the second capacitor are respectively connected with the first voltage reference chip and the second voltage reference chip in parallel, so that the capacitor can be prevented from being overcharged, and the charge quantity stored by the two capacitors connected in series is ensured to be the same. The power-down detection module can detect the working state of the power supply, and when the power-down condition is detected, the first capacitor and the second capacitor supply power, so that the power-down protection function is achieved, and the data loss is avoided.
Further, the charging circuit comprises a first resistor, a second resistor, a first triode, a second unidirectional diode and a third unidirectional diode, one end of the first resistor and an emitter of the first triode are connected with an anode output end of the power supply, a base electrode of the first triode and an emitter of the second triode are connected with the other end of the first resistor, a collector electrode of the first triode, a base electrode of the second triode and one end of the second resistor are connected, the other end of the second resistor is connected with a cathode of the power supply, a collector electrode of the second triode is connected with an anode of the second unidirectional diode, a cathode of the second unidirectional diode is connected with an anode of the third unidirectional diode, and a cathode of the third unidirectional diode is connected with an output end of the circuit.
Based on the above, the first resistor can play a role in limiting current to the charging circuit, so as to prevent instant short circuit, and the first triode and the second triode play a role in overcurrent protection and constant current charging.
Further, the power failure detection module comprises a third resistor, a fourth resistor and an MCU, one end of the third resistor is connected with the positive electrode of the power supply, the other end of the third resistor is connected with one end of the fourth resistor, the other end of the fourth resistor is connected with the negative electrode of the power supply, and the connection point of the third resistor and the fourth resistor is connected with an ADC pin of the MCU.
Based on the above, the third resistor and the fourth resistor play a role of voltage division in the circuit, the MCU detects after voltage division, and finally, the power supply voltage is calculated reversely and logic judgment is performed. If the power supply voltage is lost, the power-down protection flow is entered, and the power-down protection circuit supplies power.
Further, one end of the clamping circuit is connected with the cathode of the second unidirectional diode, and the other end of the clamping circuit is connected with the cathode of the power supply.
In order to more clearly illustrate the above-mentioned features of the present utility model and its intended objects, the present utility model will be further described with reference to the accompanying drawings and examples.
Drawings
FIG. 1 is a schematic circuit diagram of the present utility model.
The reference numerals illustrate a power supply circuit 1, a charging circuit 2, a power failure detection module 3, a clamping circuit 4, a first voltage reference chip 5 and a second voltage reference chip 6.
Detailed Description
As shown in fig. 1, the power-down protection circuit of the electronic system comprises a power supply DC, and further comprises a power supply circuit 1 for supplying power to a load, a charging circuit 2 for charging a capacitor and having overcurrent protection, a power-down detection module 3 for detecting the state of the power supply DC, and a clamping circuit 4 capable of keeping the voltage of the capacitor consistent, wherein the clamping circuit 4 is connected with a first capacitor C1 and a second capacitor C2 in series, two ends of the first capacitor C1 are connected with a first voltage reference chip 5 in parallel, and two ends of the second capacitor C2 are connected with a second voltage reference chip 6 in parallel.
The charging circuit 2 comprises a first resistor R1, a second resistor R2, a first triode V1, a second triode V2, a second unidirectional diode D2 and a third unidirectional diode D3, wherein one end of the first resistor R1 and an emitter of the first triode V1 are connected with an anode output end of the power supply DC, a base electrode of the first triode V1 and an emitter of the second triode V2 are connected with the other end of the first resistor R1, a collector electrode of the first triode V1, a base electrode of the second triode V2 and one end of the second resistor R2 are connected, the other end of the second resistor R2 is connected with a cathode of the power supply DC, a collector electrode of the second triode V2 is connected with an anode of the second unidirectional diode D2, a cathode of the second unidirectional diode D2 is connected with an anode of the third unidirectional diode D3, and an output end of the cathode connection circuit of the third unidirectional diode D3.
The power failure detection module 3 comprises a third resistor R3, a fourth resistor R4 and an MCU, one end of the third resistor R3 is connected with the positive pole of the power supply DC, the other end of the third resistor R3 is connected with one end of the fourth resistor R4, the other end of the fourth resistor R4 is connected with the negative pole of the power supply DC, and the connection point of the third resistor R3 and the fourth resistor R4 is connected with an ADC pin of the MCU.
One end of the clamping circuit 4 is connected with the cathode of the second unidirectional diode D2, and the other end of the clamping circuit 4 is connected with the cathode of the power supply DC.
The specific implementation manner of this embodiment is that when the power supply DC supplies power, the power supply circuit 1 supplies power to the load, and the charging circuit 2 charges the first capacitor C1 and the second capacitor C2, and the first resistor R1 performs current limiting to prevent an instantaneous short circuit. The third resistor R3 and the fourth resistor R4 play a role in voltage division in the circuit, the MCU detects the voltage after the voltage division, and finally, the power supply DC voltage is calculated reversely and logic judgment is carried out. If the DC voltage of the power supply is lost, a power-down protection flow is entered, and the power supply is performed by the clamping circuit 4. The clamping circuit 4 is provided with a first capacitor C1 and a second capacitor C2 in series, so that the output voltage of the capacitor is improved. Meanwhile, the first capacitor C1 and the second capacitor C2 are respectively connected in parallel with the first voltage reference chip 5 and the second voltage reference chip 6, so that the first capacitor C1 and the second capacitor C2 can be prevented from being overcharged, and the first capacitor C1 and the second capacitor C2 are ensured to store the same amount of charge, and uneven amounts of charge are prevented.
The above description is only of the best mode for carrying out the utility model, and is not intended to limit the utility model, but it is intended that modifications and substitutions made by those skilled in the art without departing from the spirit and scope of the utility model.