A power-off protection circuit and integrated chip
By adopting a voltage regulation and control circuit designed with pure hardware circuit design in electronic products, the complexity and cost of dual power supply circuits are solved, and low-cost and small-volume power-down protection is achieved to prevent the control unit from entering dormant or stuttering. state.
Patent Information
- Application Number
- CN202011280534.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-16
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-11-16
AI Technical Summary
The existing dual power supply circuit design is complex and costly in electronic products, making it difficult to achieve low-cost and small-volume power failure protection.
The pure hardware circuit design is adopted, including the first voltage regulating circuit, the power supply control circuit, the second voltage regulating circuit and the reset control circuit. The power supply and reset control of the control unit are realized through these circuits to ensure that the control unit is prevented from entering in the event of power outage. Sleep or crash state.
It realizes intelligent protection of electronic products to prevent abnormalities or damage caused by power failure, and is low in cost and small in size.
Smart Images

Figure CN112271704B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power electronics, and in particular to a power-off protection circuit and an integrated chip. Background Art
[0002] During the use of electronic products, users have higher and higher requirements for the stability and safety of electronic product performance. During use, when abnormal operation or abnormal power failure occurs, electronic products are usually required to achieve intelligent protection. For this reason, some engineers use a dual power supply circuit power supply solution in the design of the MCU power supply circuit, that is, a power supply circuit design in which the main power supply and the backup power supply are compatible with each other, and the software control strategy performs real-time detection on the two power supply circuits to ensure the stable and safe operation of electronic products.
[0003] However, although the dual power supply circuit design is feasible, both the hardware circuit design and the software control strategy are relatively complex, and the cost is high and the size is large, which is not conducive to the low-cost and small-volume development of electronic products. Summary of the invention
[0004] The embodiments of the present invention aim to provide a power-off protection circuit and an integrated chip, which can realize power-off protection of electronic products by using a simple pure hardware circuit, and have low cost and small size.
[0005] To achieve the above object, in a first aspect, the present invention provides a power-off protection circuit, the power-off protection circuit being used to be connected to a reset signal input terminal and a power supply terminal of a control unit, the power-off protection circuit comprising:
[0006] A first voltage regulating circuit is connected to a voltage source, and the first voltage regulating circuit is used to convert an input voltage of the voltage source so that an output end of the first voltage regulating circuit outputs a first voltage;
[0007] a power supply control circuit connected to the first voltage regulating circuit, the power supply control circuit being used for controlling the control unit to be powered on or off according to the first voltage;
[0008] a second voltage regulating circuit, connected to the power supply control circuit and the power supply end of the control unit respectively, the second voltage regulating circuit is used to convert the first voltage so that the output end of the second voltage regulating circuit outputs a second voltage, and the second voltage is used to provide a power supply voltage for the control unit;
[0009] A reset control circuit is connected to the second voltage regulating circuit and a reset signal input terminal of the control unit respectively, and the reset control circuit is used to output a reset control signal to the control unit according to the second voltage.
[0010] In an optional manner, the power supply control circuit includes a first signal generating circuit and a first switch circuit, the input end of the first signal generating circuit is connected to the output end of the first voltage regulating circuit, the output end of the first signal generating circuit is connected to the input end of the first switch circuit, and the output end of the first switch circuit is connected to the second voltage regulating circuit;
[0011] The first signal generating circuit is used to output a switching signal according to the first voltage to control the switching state of the first switching circuit.
[0012] In an optional manner, the first signal generating circuit includes a first comparator and a first voltage stabilizing diode;
[0013] The non-inverting input terminal of the first comparator is connected to the cathode of the first voltage regulator diode and the voltage source respectively, the inverting input terminal of the first comparator is connected to the output terminal of the first voltage regulating circuit, the output terminal of the first comparator is connected to the input terminal of the first switching circuit, and the anode of the first voltage regulator diode is grounded.
[0014] In an optional manner, the first switch circuit includes a first switch tube, a second switch tube and a third switch tube;
[0015] The control end of the first switch tube is connected to the output end of the first comparator, the first end of the first switch tube is grounded, and the second end of the first switch tube is connected to the control end of the second switch tube;
[0016] A first end of the second switch tube is grounded, and a second end of the second switch tube is connected to a control end of the third switch tube;
[0017] A first end of the third switch tube is connected to an input end of the second voltage regulating circuit, and a second end of the third switch tube is connected to an output end of the first voltage regulating circuit.
[0018] In an optional manner, the first switch circuit further includes a first capacitor, and two ends of the first capacitor are respectively connected to the control end and the first end of the first switch tube;
[0019] The first capacitor is used to control the on-time of the first switch tube.
[0020] In an optional manner, the reset control circuit includes a second switch circuit and a second signal generating circuit;
[0021] The input end of the second switch circuit is connected to the output end of the second voltage regulating circuit, the output end of the second switch circuit is connected to the input end of the second signal generating circuit, and the output end of the second signal generating circuit is connected to the reset signal input end of the control unit;
[0022] The second switch circuit is used to switch a switch state according to the second voltage, so that the second signal generating circuit outputs a reset signal to the control unit.
[0023] In an optional manner, the second switch circuit includes a fourth switch tube;
[0024] The control end of the fourth switch tube is connected to the output end of the second voltage regulating circuit, the first end of the fourth switch tube is grounded, and the second end of the fourth switch tube is connected to the voltage source.
[0025] In an optional manner, the second signal generating circuit includes a second comparator;
[0026] The non-inverting input terminal of the second comparator is connected to the output terminal of the second regulated voltage, the inverting input terminal of the second comparator is connected to the second terminal of the fourth switch tube, and the output terminal of the second comparator is connected to the reset signal input terminal of the control unit.
[0027] In an optional manner, the second signal generating circuit further includes a second capacitor, a first end of the second capacitor is connected to the output end of the second comparator, and the other end of the second capacitor is grounded;
[0028] The second capacitor is used to control the duration of the output terminal of the second comparator outputting the reset signal.
[0029] In a second aspect, an embodiment of the present invention provides an integrated chip, including a control unit and the power-off protection circuit as described above;
[0030] The power-off protection circuit is connected to the control unit, and is used to provide a power supply voltage to the control unit and a reset signal to the control unit.
[0031] The beneficial effects of the embodiments of the present invention are as follows: the power-off protection circuit provided by the present invention is used to be connected to the reset signal input terminal and the power supply terminal of the control unit, and the power-off protection circuit includes a first voltage regulating circuit, a power supply control circuit, a second voltage regulating circuit and a reset control circuit, wherein the first voltage regulating circuit is connected to the voltage source, and the first voltage regulating circuit is used to convert the input voltage of the voltage source so that the output terminal of the first voltage regulating circuit outputs a first voltage, the power supply control circuit is connected to the first voltage regulating circuit, and the power supply control circuit is used to control the control unit to be powered on or off according to the first voltage, and the second voltage regulating circuit is respectively connected to the power supply control circuit and the power supply terminal of the control unit, and the second voltage regulating circuit is used to convert the first voltage so that the output terminal of the second voltage regulating circuit outputs a second voltage The second voltage is used to provide a power supply voltage for the control unit. The reset control circuit is respectively connected to the second voltage regulating circuit and the reset signal input terminal of the control unit. The reset control circuit is used to output a reset control signal to the control unit according to the second voltage. That is, when the electronic device provided with the above-mentioned power-off protection circuit loses power, the power supply control circuit can control the control unit to lose power. At the same time, the reset control circuit can output a reset control signal to the control unit to control the control unit to reset, thereby achieving both power loss of the control unit and forced reset of the control unit. Therefore, when the electronic product loses power, the control unit can be prevented from entering a sleep or freeze state protection, that is, power-off protection of the electronic product is achieved, and a pure hardware circuit is used, which has low cost and small size. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0033] Figure 1 A schematic diagram of the structure of an integrated chip and a voltage source provided by an embodiment of the present invention;
[0034] Figure 2 A schematic diagram of the structure of an integrated chip and a voltage source provided by another embodiment of the present invention;
[0035] Figure 3 A schematic diagram of the circuit structure of a first voltage regulating circuit provided in an embodiment of the present invention;
[0036] Figure 4 A schematic diagram of the circuit structure of a power supply control circuit provided in an embodiment of the present invention;
[0037] Figure 5 A schematic diagram of the circuit structure of a second voltage regulating circuit provided in an embodiment of the present invention;
[0038] Figure 6A schematic diagram of the circuit structure of a reset control circuit provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] Please refer to Figure 1 , Figure 1 A schematic diagram of the structure of an integrated chip and a voltage source provided by an embodiment of the present invention, such as Figure 1 As shown, the integrated chip 100 includes a power-off protection circuit 10 and a control unit 20 , wherein the input end of the power-off protection circuit 10 is connected to the voltage source 200 , and the power-off protection circuit 10 is connected to the control unit 20 .
[0041] Specifically, the voltage source 200 is used to provide an input voltage for the power-off protection circuit 10. The power-off protection circuit 10 provides both a power supply voltage and a reset signal for the control unit 20. For example, the reset signal output terminal of the power-off protection circuit 10 is connected to the reset signal input terminal of the control unit 20 through a connection L1 to provide a reset signal for the control unit 20. At the same time, the voltage input terminal of the power-off protection circuit 10 is connected to the power supply terminal of the control unit 20 through a connection L2 to provide a power supply voltage for the control unit 20, that is, to control the working voltage of the control unit 20, wherein the control unit 20 may be a single-chip microcomputer (MCU), etc.
[0042] Therefore, if the above integrated chip 100 is provided in an electronic product, when the electronic product experiences an abnormal power failure, for example, the main power switch trips, resulting in an abnormal power failure, at this time, the power failure protection circuit 10 can disconnect the connection between the voltage source 200 and the control unit 20, and at the same time, the power failure protection circuit 10 can output a reset signal to force the control unit 20 to reset, thereby preventing the control unit 20 from entering a dormant or dead state protection. Thus, intelligent protection of electronic products is achieved in the event of an abnormal power failure, preventing the electronic products from being abnormal or damaged.
[0043] like Figure 2As shown, the power-off protection circuit 10 includes a first voltage regulating circuit 11, a power supply control circuit 12, a second voltage regulating circuit 13 and a reset control circuit 14, wherein the first voltage regulating circuit is connected to an external voltage source 200, the power supply control circuit 12 is respectively connected to the first voltage regulating circuit 11 and the second voltage regulating circuit 13, the second voltage regulating circuit is connected to the power supply end of the control unit 20, and the reset control circuit 14 is respectively connected to the second voltage regulating circuit 13 and the reset signal input end of the control unit.
[0044] Specifically, the first voltage regulating circuit 11 is used to convert the input voltage of the voltage source 200 so that the output end of the first voltage regulating circuit 11 outputs the first voltage. Since the voltage source 200 cannot usually be directly used to directly power the various modules or the control unit 20 in the power-off protection circuit 10, it is necessary to set a corresponding circuit to convert the voltage of the voltage source 200 to meet the voltage requirements of different circuits. For example, the first voltage regulating circuit 11 is set as a DC-to-DC module circuit.
[0045] An example of using a three-terminal voltage-stabilizing integrated chip to form the first voltage regulating circuit 11 is used for description.
[0046] like Figure 3 As shown, the input terminal Vin of the first three-terminal voltage-stabilizing integrated chip U1, that is, the third pin of the first three-terminal voltage-stabilizing integrated chip U1 is connected to the voltage source 200, and the input voltage V0 of the voltage source 200 is input to the third pin of the first three-terminal voltage-stabilizing integrated chip U1 after passing through the first energy storage capacitor EC1 and the first filter capacitor C1, wherein the first energy storage capacitor EC1 is used to store energy for release when necessary to maintain the stability of the input voltage of the third pin of the first three-terminal voltage-stabilizing integrated chip U1, and the first filter capacitor C1 is used to filter out high-frequency interference in the input voltage V0.
[0047] The output terminal Vout of the first three-terminal voltage-stabilizing integrated chip U1, that is, the voltage output by the second pin of the first three-terminal voltage-stabilizing integrated chip U1 is the converted first voltage V1, and the second pin of the first three-terminal voltage-stabilizing integrated chip U1 is respectively connected to one end of the second energy storage capacitor EC2 and one end of the second capacitor C2, and the role of the second energy storage capacitor EC2 and the second capacitor C2 is similar to that of the first energy storage capacitor EC1 and the first filter capacitor C1, which is within the scope that can be easily understood by those skilled in the art and will not be repeated here. The ground terminal GND of the three-terminal voltage-stabilizing integrated chip U1 is grounded.
[0048] therefore, Figure 3The circuit structure shown can convert the input voltage V0 into the first voltage V1. For example, assuming that the input voltage V0 is 12V and the first voltage V1 is 5V, a three-terminal voltage regulator integrated chip of model LM7805 can be selected as the first three-terminal voltage regulator integrated chip U1. LM7805 is a commonly used linear three-terminal voltage regulator integrated chip. Although there are many types of external packages, the output voltage is 5V. When the input voltage V0 is connected to LM7805, the output voltage of the second pin of LM7805, that is, the first voltage V1 is 5V. Thus, the first voltage regulating circuit realizes the conversion of the 12V input power supply into a 5V DC power supply, and inputs the 5V DC power supply into the power supply control circuit 12.
[0049] The power supply control circuit 12 can control the power on or off of the control unit 20 according to the first voltage. The power supply control circuit 12 monitors the first voltage V1 in real time to see if there is any abnormality, and can take corresponding measures in time to deal with the abnormality of the first voltage V1.
[0050] like Figure 4 As shown, Figure 4 : is a schematic diagram of a possible circuit structure of a power supply control circuit 12. The power supply control circuit 12 includes a first signal generating circuit 121 and a first switch circuit 122. The input end of the first signal generating circuit 121 is connected to the output end of the first voltage regulating circuit, that is, the first voltage V1 is input to the first signal generating circuit 121, the output end of the first signal generating circuit 121 is connected to the input end of the first switch circuit 122, and the output end of the first switch circuit 122 is connected to the second voltage regulating circuit.
[0051] The first signal generating circuit 121 can output a switch signal according to the change of the received first voltage V1 to control the switch state of the first switch circuit 122 .
[0052] Optionally, the first signal generating circuit 121 includes a first comparator U3A and a first voltage zener diode ZD1, wherein the non-inverting input terminal of the first comparator U3A (i.e., the 3rd pin of the first comparator U3A) is respectively connected to the cathode of the first voltage zener diode ZD1 and the voltage source, the inverting input terminal of the first comparator U3A (i.e., the 2nd pin of the first comparator U3A) is connected to the output terminal of the first voltage regulating circuit 11, the output terminal of the first comparator U3A (i.e., the 1st pin of the first comparator U3A) is connected to the input terminal of the first switching circuit 122, and the anode of the first voltage zener diode ZD1 is grounded.
[0053] Optionally, the first signal generating circuit 121 further includes a first resistor R1, a second resistor R2, a third resistor R3 and a third filter capacitor C3, wherein the third pin of the first comparator U3A is connected to the cathode of the first voltage stabilizing diode ZD1, and the third pin of the first comparator U3A is also connected to the voltage source through the second resistor R2, and is grounded through the third resistor R3. The first resistor R1 and the second resistor R2 connected in series are used to divide the input voltage V0 to provide an input voltage of the third pin of the first comparator U3A, which serves as the first reference voltage VFA of the first comparator U3A. At the same time, the first voltage stabilizing diode ZD1 can clamp the first reference voltage VFA to prevent the first reference voltage VFA from being too large and damaging the first comparator U3A when the input voltage V0 fluctuates too much instantaneously; the third resistor R3 plays a current limiting role, and can also prevent the first voltage V1 from being too large and causing damage to the first comparator U3A.
[0054] By setting the resistance values of the first resistor R1 and the second resistor R2, and selecting a suitable first voltage zener diode ZD1, the first reference voltage VFA can be set to be lower than the first voltage V1. When no abnormal power failure occurs, the first reference voltage VFA is set to be lower than the first voltage V1. At this time, the first pin of the first comparator U3A outputs a low-level signal. When an abnormal power failure occurs, the first voltage V1 decreases and is lower than the first reference voltage VFA. At this time, the first pin of the first comparator U3A outputs a high-level signal.
[0055] It should be understood that the first reference voltage VFA can be Figure 4 As shown, the first reference voltage VFA is obtained from a voltage source. In another embodiment, an independent voltage source may be added as the first reference voltage VFA.
[0056] Optionally, the first switch circuit 121 includes a first switch tube Q1, a second switch tube Q2 and a third switch tube Q3, the control end of the first switch tube Q1, that is, the first pin of the first switch tube Q1 is connected to the first pin of the first comparator U3A, the first end of the first switch tube Q1, the second pin of the first switch tube Q1 is grounded, the second end of the first switch tube Q1, the third pin of the first switch tube Q1 is connected to the control end of the second switch tube Q2 (the first pin of the second switch tube Q2); the first end of the second switch tube Q2 (the second pin of the second switch tube Q2) is grounded, the second end of the second switch tube Q2 (the third pin of the second switch tube Q2) is connected to the control end of the third switch tube Q3 (the first pin of the third switch tube Q3); the first end of the third switch tube Q3 (the second pin of the third switch tube Q3) is connected to the input end of the second voltage regulating circuit 13, and the second end of the third switch tube Q3 (the third pin of the third switch tube Q3) is connected to the output end of the first voltage regulating circuit 11. The switching state of the first switch circuit 122 refers to the on and off states of the first switch tube Q1 , the second switch tube Q2 and the third switch tube Q3 .
[0057] Optionally, the first switch circuit 121 further includes a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8 and a ninth resistor R9. The specific connection method of each component is as follows: Figure 4 As shown, no further description is given here.
[0058] In practical applications, the first switch tube Q1 and the second switch tube Q2 are selected as triodes, and the third switch tube Q3 is selected as a P-channel MOS. At this time, the base of the triode is the first pin of the switch tube, the emitter of the triode is the second pin of the switch tube, and the collector of the triode is the third pin of the switch tube; the gate of the MOS tube is the first pin of the switch tube, the source of the MOS tube is the second pin of the switch tube, and the drain of the MOS tube is the third pin of the switch tube.
[0059] When no abnormal power failure occurs, the first pin of the first comparator U3A outputs a low-level signal. At this time, both the first pin and the second pin of the first switch tube Q1 are low-level signals, and the first switch tube Q1 is turned off; the first pin of the second switch tube Q2 is connected to the output end of the first voltage regulating circuit 11 through the seventh resistor R7, the voltage on the first pin of the second switch tube Q2 is the first voltage V1, and the first pin of the second switch tube Q2 is grounded, then there is a voltage difference between the first pin and the second pin of the second switch tube Q2, and the second switch tube Q2 is turned on; then the first pin of the third switch tube Q3 is connected to the ground AGND of the power supply through the ninth resistor R9, the third pin and the second pin of the second switch tube Q2, then the first pin of the third switch tube Q3 is a low level, and the third switch tube Q3 is turned on. Thus, the output end of the first voltage regulating circuit 11 is connected to the output end of the second voltage regulating circuit 13 through the 3rd pin and the 2nd pin of the third switch tube Q3. Then, at this time, the second voltage regulating circuit 13 has an input voltage V1 (i.e., V11), and the second voltage regulating circuit 13 can also output a power supply voltage for providing the control unit 20 with work, and the control unit 20 is in a normal working state.
[0060] When an abnormal power failure occurs, the first pin of the first comparator U3A outputs a high-level signal, at which time the first pin of the first switch tube Q1 is at a high level, and the second pin of the first switch tube Q1 is grounded and also at a low level, so the first switch tube Q1 is turned on; the first pin of the second switch tube Q2 is connected to the ground AGND of the power supply through the third pin and the second pin of the first switch tube Q1, the first pin of the second switch tube Q2 is at a low level, the second pin of the second switch tube Q2 is also grounded, and the second switch tube Q2 is turned off; the voltage at the connection point between the seventh resistor R7 and the eighth resistor R8 is the voltage at the first pin of the third switch tube Q3, and the voltage at the connection point between the seventh resistor R7 and the eighth resistor R8 is the divided voltage of the first voltage V1, and the third switch tube Q3 is turned off. Thus, the connection between the first voltage regulating circuit 11 and the second voltage regulating circuit 12 is disconnected, the second voltage regulating circuit 12 loses the input power supply, that is, the control unit 20 also loses the power supply voltage, the control unit 20 stops working, and the power supply circuit of the control unit 20 is completely cut off.
[0061] Furthermore, the first switch circuit 121 further includes a first capacitor EC3, two ends of the first capacitor EC3 are respectively connected to the first pin and the second pin of the first switch tube Q1, and the first capacitor is used to control the on-time of the first switch tube Q1.
[0062] When the first pin of the first switch tube Q1 is converted from a low level to a high level, the first capacitor EC3 is charged, and the first switch tube Q1 is in a conducting state at this time. Then the first capacitor EC3 is discharged through the sixth resistor R6. When the voltage discharged to the first pin of the first switch tube Q1 is not enough to turn on the first switch tube Q1, the first switch tube Q1 is turned off. Therefore, the conduction time of the first switch tube Q1 is related to the speed of discharge of the first capacitor EC3, and the speed of discharge of the first capacitor EC3 is related to the capacitance value of the first capacitor EC3, that is, the conduction time of the first switch tube Q1 depends on the capacitance value of the first capacitor EC3. By selecting the first capacitor EC3 with different capacitance values, the conduction time of the first switch tube Q1 can be adjusted. Therefore, by setting the capacitance value of the first capacitor EC3, the power-off duration of the control unit 20 can be set so that it can be completely powered off and reset.
[0063] The second voltage regulating circuit 13 is used to convert the first voltage so that the output end of the second voltage regulating circuit 13 outputs a second voltage, and the second voltage is used to provide a power supply voltage for the control unit 20 .
[0064] Likewise, the second voltage regulating circuit 13 can use a circuit structure similar to that of the first voltage regulating circuit 11 to implement the voltage conversion process.
[0065] like Figure 5 As shown, the second voltage regulating circuit 13 includes a second three-terminal voltage stabilizing integrated chip U2. When no abnormal power failure occurs, the second voltage regulating circuit 13 includes the second three-terminal voltage stabilizing integrated chip U2. The input voltage is voltage V11, that is, the first voltage V1. The second three-terminal voltage stabilizing integrated chip U2 converts the first voltage V1 into a second voltage V2. The second voltage V2 can be directly used as the power supply voltage of the control unit 20. The actual model of the second three-terminal voltage stabilizing integrated chip U2 needs to be determined according to the input voltage required by the control unit 20. For example, the control unit 20 requires 3.3V power supply. Assuming that the first voltage regulating circuit 11 has converted the 12V input voltage into 5V, the second three-terminal voltage stabilizing integrated chip U2 needs to be able to convert 5V into 3.3V, such as the AMS1117 chip, which can convert the input 5V into a stable 3.3V output.
[0066] The reset control circuit 14 is used to output a reset control signal to the control unit 20 according to the second voltage. When a power failure occurs, the reset control circuit 14 can promptly output a reset signal to the control unit 20 so that the control unit 20 can be forced to execute a reset to prevent the control unit 20 from entering a sleep or freeze state protection.
[0067] like Figure 6As shown, in one embodiment, the reset control circuit 14 includes a second switch circuit 141 and a second signal generating circuit 142, the input end of the second switch circuit 141 is connected to the output end of the second voltage regulating circuit 13, the output end of the second switch circuit 141 is connected to the input end of the second signal generating circuit 142, and the output end of the second signal generating circuit 142 is connected to the reset signal input end of the control unit 20. The second switch circuit 141 is used to switch the switch state according to the second voltage, so that the second signal generating circuit 142 outputs a reset signal to the control unit 20.
[0068] Optionally, the second switching circuit 141 includes a fourth switching tube Q4, the control end of the fourth switching tube Q4 (i.e., the first pin of the fourth switching tube Q4) is connected to the output end of the second voltage regulating circuit 13, the first end of the fourth switching tube Q4 (i.e., the second pin of the fourth switching tube Q4) is grounded, and the second end of the fourth switching tube Q4 (i.e., the third pin of the fourth switching tube Q4) is connected to the voltage source.
[0069] Optionally, the second signal generating circuit 142 includes a second comparator U3B, the in-phase input terminal of the second comparator U3B (i.e., the 5th pin of the second comparator U3B) is connected to the output terminal of the second regulated voltage 13, the inverting input terminal of the second comparator U3B (i.e., the 6th pin of the second comparator U3B) is connected to the 3rd pin of the fourth switch tube Q4, and the output terminal of the second comparator U3B (i.e., the 7th pin of the second comparator U3B) is connected to the reset signal input terminal of the control unit 20.
[0070] Optionally, the second switch circuit 141 further includes a ninth resistor R9, a tenth resistor R10, an eleventh resistor R11, a twelfth resistor R12, a thirteenth resistor R13, a fourteenth resistor R14, a fifteenth resistor R15 and a first diode D1, and the specific connection relationship is as follows: Figure 6 The circuit structure shown is available and will not be described in detail here.
[0071] In practical applications, the fourth switch tube Q4 is described by taking a triode as an example, and the specific pin correspondence is consistent with that of other switch tubes in this embodiment.
[0072] When no abnormal power failure occurs, the second voltage V2 is divided by the ninth resistor R9 and the tenth resistor R10 to serve as the voltage on the first pin of the fourth switch tube Q4, and the second pin of the fourth switch tube Q4 is grounded. There is a voltage difference between the first pin and the second pin of the fourth switch tube Q4, so that the fourth switch tube Q4 is turned on; the sixth pin of the second comparator U3B is connected to the ground AGND of the power supply through the twelfth resistor R12, the third pin and the second pin of the fourth switch tube Q4, and the voltage input to the fifth pin of the second comparator U3B is the voltage VFB, which is the voltage of the second voltage V2 after the current limiting of the fourteenth resistor R14. At this time, the voltage of the in-phase input terminal of the second comparator U3B is greater than the voltage of the inverting input terminal, and the output of the seventh pin of the second comparator U3B is a high level, that is, the signal output from the connection REST_MCU is a high level signal, and the control unit 20 does not perform the reset process and is in a normal working state.
[0073] When an abnormal power failure occurs, the second voltage V2 decreases, and the fourth switch tube Q4 can be disconnected by setting the ninth resistor R9 and the tenth resistor R10; the sixth pin of the second comparator U3B is connected to the voltage source through the twelfth resistor R12 and the eleventh resistor R11, and the voltage on the sixth pin of the second comparator U3B is pulled up, which is higher than the voltage on the fifth pin of the second comparator U3B. At this time, the voltage at the in-phase input terminal of the second comparator U3B is less than the voltage at the inverting input terminal, and the seventh pin of the second comparator U3B outputs a low level, that is, the signal output from the wiring REST_MCU is a low level signal, and the control unit 20 forces the reset process to execute.
[0074] Similarly, the voltage VFB can be Figure 6 As shown, the voltage VFB is obtained from the second voltage. In another embodiment, an independent voltage source may be added as the voltage VFB.
[0075] In one embodiment, the second signal generating circuit 142 also includes a second capacitor EC6, a first end of the second capacitor EC6 is connected to the 7th pin of the second comparator U3B, and the other end of the second capacitor EC6 is grounded, wherein the second capacitor EC6 is used to control the duration of the reset signal (i.e., a low level signal) output by the 7th pin of the second comparator U3B.
[0076] When the 7th pin of the second comparator U3B outputs a low level, the second capacitor EC6 will start to be charged. During the charging process, the reset signal slowly increases from a low level signal. When the reset signal is charged to a level that can no longer meet the reset requirements of the control unit 20, the reset of the control unit 20 ends, that is, the reset time of the control unit 20 is determined by the charging time of the second capacitor EC6, and the charging time of the second capacitor EC6 is determined by the capacitance value of the second capacitor EC6. When the capacitance of the second capacitor EC6 increases, the charging time becomes longer, and the reset time becomes longer accordingly, otherwise the reset time becomes shorter. Therefore, by setting the capacitance value of the second capacitor EC6, the forced reset time of the control unit 20 can be adjusted to ensure that the control unit 20 completes the reset.
[0077] It should be noted that each switch tube in this embodiment can be a triode, a MOS tube or an IGBT switch tube, and the first switch tube Q1, the second switch tube Q2, the third switch tube Q3 and the fourth switch tube Q4 can be the same or different. For example, the first switch tube Q1, the second switch tube Q2, the third switch tube Q3 and the fourth switch tube Q4 can all be MOS tubes.
[0078] The power-off protection circuit 10 and the integrated chip 100 provided by the present invention are used to connect with the reset signal input terminal and the power supply terminal of the control unit 20. The power-off protection circuit 10 includes a first voltage regulating circuit 11, a power supply control circuit 12, a second voltage regulating circuit 13 and a reset control circuit 14, wherein the first voltage regulating circuit 11 is connected to the voltage source 200, and the first voltage regulating circuit 11 is used to convert the input voltage of the voltage source 200 so that the output terminal of the first voltage regulating circuit 11 outputs a first voltage, the power supply control circuit 12 is connected to the first voltage regulating circuit 11, and the power supply control circuit 12 is used to control the control unit 20 to be powered on or off according to the first voltage, and the second voltage regulating circuit 13 is respectively connected to the power supply control circuit 12 and the power supply terminal of the control unit 20, and the second voltage regulating circuit 13 is used to convert the first voltage so that the second voltage regulating circuit 13 The output end of the control unit 20 outputs a second voltage, and the second voltage is used to provide a power supply voltage for the control unit 20. The reset control circuit 14 is respectively connected to the second voltage regulating circuit 13 and the reset signal input end of the control unit 20. The reset control circuit 14 is used to output a reset control signal to the control unit 20 according to the second voltage, that is, when the electronic device provided with the power-off protection circuit 10 loses power, the power supply control circuit 12 can control the control unit 20 to lose power. At the same time, the reset control circuit 14 can output a reset control signal to the control unit 20 to control the control unit 20 to reset, thereby achieving both power loss of the control unit 20 and forced reset of the control unit 20. Therefore, when the electronic product loses power, the control unit 20 can be prevented from entering a dormant or dead state protection, that is, power-off protection of the electronic product is achieved, and a pure hardware circuit is used, which has a low cost and a small size.
[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A power-off protection circuit, characterized in that: The power-off protection circuit is used to be connected to the reset signal input terminal and the power supply terminal of the control unit, and the power-off protection circuit includes: A first voltage regulating circuit is connected to a voltage source, and the first voltage regulating circuit is used to convert an input voltage of the voltage source so that an output end of the first voltage regulating circuit outputs a first voltage; a power supply control circuit connected to the first voltage regulating circuit, the power supply control circuit being used for controlling the control unit to be powered on or off according to the first voltage; a second voltage regulating circuit, connected to the power supply control circuit and the power supply end of the control unit respectively, the second voltage regulating circuit is used to convert the first voltage so that the output end of the second voltage regulating circuit outputs a second voltage, and the second voltage is used to provide a power supply voltage for the control unit; A reset control circuit is connected to the second voltage regulating circuit and a reset signal input terminal of the control unit respectively, and the reset control circuit is used to output a reset control signal to the control unit according to the second voltage.
2. The power-off protection circuit according to claim 1, characterized in that: The power supply control circuit includes a first signal generating circuit and a first switch circuit, the input end of the first signal generating circuit is connected to the output end of the first voltage regulating circuit, the output end of the first signal generating circuit is connected to the input end of the first switch circuit, and the output end of the first switch circuit is connected to the second voltage regulating circuit; The first signal generating circuit is used to output a switching signal according to the first voltage to control the switching state of the first switching circuit.
3. The power-off protection circuit according to claim 2, characterized in that: The first signal generating circuit includes a first comparator and a first voltage stabilizing diode; The non-inverting input terminal of the first comparator is connected to the cathode of the first voltage regulator diode and the voltage source respectively, the inverting input terminal of the first comparator is connected to the output terminal of the first voltage regulating circuit, the output terminal of the first comparator is connected to the input terminal of the first switching circuit, and the anode of the first voltage regulator diode is grounded.
4. The power-off protection circuit according to claim 3, characterized in that: The first switch circuit includes a first switch tube, a second switch tube and a third switch tube; The control end of the first switch tube is connected to the output end of the first comparator, the first end of the first switch tube is grounded, and the second end of the first switch tube is connected to the control end of the second switch tube; A first end of the second switch tube is grounded, and a second end of the second switch tube is connected to a control end of the third switch tube; A first end of the third switch tube is connected to an input end of the second voltage regulating circuit, and a second end of the third switch tube is connected to an output end of the first voltage regulating circuit.
5. The power-off protection circuit according to claim 4, characterized in that: The first switch circuit further includes a first capacitor, and two ends of the first capacitor are respectively connected to the control end and the first end of the first switch tube; The first capacitor is used to control the on-time of the first switch tube.
6. The power-off protection circuit according to any one of claims 1 to 5, characterized in that: The reset control circuit includes a second switch circuit and a second signal generating circuit; The input end of the second switch circuit is connected to the output end of the second voltage regulating circuit, the output end of the second switch circuit is connected to the input end of the second signal generating circuit, and the output end of the second signal generating circuit is connected to the reset signal input end of the control unit; The second switch circuit is used to switch a switch state according to the second voltage, so that the second signal generating circuit outputs a reset signal to the control unit.
7. The power-off protection circuit according to claim 6, characterized in that: The second switch circuit includes a fourth switch tube; The control end of the fourth switch tube is connected to the output end of the second voltage regulating circuit, the first end of the fourth switch tube is grounded, and the second end of the fourth switch tube is connected to the voltage source.
8. The power-off protection circuit according to claim 7, characterized in that: The second signal generating circuit includes a second comparator; The non-inverting input terminal of the second comparator is connected to the output terminal of the second regulated voltage, the inverting input terminal of the second comparator is connected to the second terminal of the fourth switch tube, and the output terminal of the second comparator is connected to the reset signal input terminal of the control unit.
9. The power-off protection circuit according to claim 8, characterized in that: The second signal generating circuit further includes a second capacitor, a first end of the second capacitor is connected to the output end of the second comparator, and the other end of the second capacitor is grounded; The second capacitor is used to control the duration of the output terminal of the second comparator outputting the reset signal.
10. An integrated chip, characterized in that: It comprises a control unit and a power-off protection circuit as claimed in any one of claims 1 to 9; The power-off protection circuit is connected to the control unit, and is used to provide a power supply voltage to the control unit and a reset signal to the control unit.
