A power-off detection circuit and control system with hysteresis function
By introducing a hysteresis control circuit into the power-down detection circuit, the problem of power-down detection signal jitter is solved, the accuracy of power-down processing and system stability are achieved, and the risk of damage is reduced.
Patent Information
- Application Number
- CN202110739161.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-06-30
AI Technical Summary
In the existing technology, the power-down detection signal is prone to jitter near the detection voltage VDET, leading to misjudgment and system instability, which may damage the chip.
Design a power-down detection circuit with hysteresis function, including a voltage dividing circuit, a hysteresis control circuit, a reference voltage circuit and a comparison circuit. The hysteresis voltage is adjusted through the hysteresis control circuit to ensure the authenticity and accuracy of the power-down detection signal. stability.
Through the use of hysteresis control circuit, the power-down detection signal is ensured to be jitter-free, which improves the reliability and stability of the system and avoids misjudgment and potential damage during power-down processing.
Smart Images

Figure CN113484589B
Abstract
Description
Technical Field
[0001] The invention relates to a power-off detection technology, and in particular to a power-off detection circuit and a control system with a hysteresis function. Background Art
[0002] As consumers have higher and higher requirements for the performance and intelligence of electronic products, the integration of electronic products has become more and more complex. CPU, MPU, FPGA, and DSP are widely used in electronic products. These complex integrated circuits usually have strict requirements on the power-on and power-off timing of the system. If the power-on timing is incorrect, the system may not be able to start. Therefore, most engineers can achieve the correct power-on timing. The power-off timing is usually ignored by most engineers. However, if the power-off timing is incorrect, there is a serious risk of damaging the chip.
[0003] To correctly control the power-off sequence, the system power-off signal must be detected in advance and the power-off operation must be completed before the system stops working.
[0004] If the power-off detection signal jitters, the control system will misjudge the state, resulting in the system power consumption not being effectively controlled when a real power-off event occurs. The energy of the energy storage circuit is quickly consumed by the system. When the power-off circuit stably outputs a valid signal, the remaining energy in the energy storage circuit is not enough to complete the remaining operations, resulting in the loss of critical data and the loss of power-off timing. In severe cases, the chip may be damaged.
[0005] For example, the patent name is a processor power-off timing control system and method; the patent application number is CN201610647629.4; the application date is 2016-08-09; the patent records that the power supply voltage of the processor is detected in real time by a power-off detection circuit, and when the power supply voltage is lower than a preset threshold, a power-off trigger signal is generated; the power-off control circuit is connected to the power-off detection circuit, and after receiving the power-off trigger signal, the processor is controlled to a preset state of fixed power consumption through preset logic processing to control the power-off speed of the processor core voltage.
[0006] In the prior art, when the power supply voltage drops below the detection voltage VDET, a low-level power-off signal is output. However, the actual power-off signal is subject to interference. At the same time, due to different loads, the power-off waveform is also diverse. As a result, the power-off detection signal will jitter near the detection voltage VDET. Summary of the invention
[0007] The present invention aims at the disadvantages of the prior art power-off detection circuit, in which a low-level power-off signal is output when the power supply voltage drops below the detection voltage VDET. However, the actual power-off signal is interfered with. At the same time, due to different loads, the power-off waveform is also diverse. As a result, the power-off detection signal will jitter near the detection voltage VDET. The present invention provides a power-off detection circuit and control system with hysteresis function.
[0008] In order to solve the above technical problems, the present invention is solved by the following technical solutions:
[0009] A power-off detection circuit with hysteresis function, comprising a voltage dividing circuit, a hysteresis control circuit, a reference voltage circuit and a comparison circuit;
[0010] The voltage divider circuit is used to set the power-off detection voltage and the hysteresis voltage; the reference voltage circuit is used to generate the reference voltage; the comparison circuit is used to compare the sampling voltage of the voltage divider circuit with the reference voltage of the reference voltage circuit, and transmit the comparison result to the hysteresis control circuit, and the hysteresis control circuit is controlled according to the detected voltage.
[0011] By providing a hysteresis control circuit, the hysteresis voltage can be flexibly adjusted according to the design requirements and application environment, so that the output power-off detection signal is real, effective and jitter-free, to ensure that each power-off processing process can be accurately executed.
[0012] Preferably, an output circuit is further included, and the comparison result output by the comparison circuit is transmitted to the output circuit.
[0013] Preferably, the voltage divider circuit includes a resistor R1, a resistor R2, and a resistor R3, one end of the resistor R1 is connected to VIN, the other end is connected to the resistor R2, the other end of the resistor R2 is connected to the resistor R3, and the other end of the resistor R3 is connected to GND;
[0014] The hysteresis control circuit includes a resistor R3 and a MOS tube Q2, one end of the resistor R3 is connected to the drain of the MOS tube Q2, the source of the MOS tube Q2 is grounded, and the gate of the MOS tube Q2 is connected to the output pin of the comparator U1;
[0015] The reference voltage circuit includes a resistor R4 and a parallel reference voltage source U2, one end of the resistor R4 is connected to the power supply, the other end of the resistor R4 is connected to the reference voltage end of the reference voltage chip U2, and the other end of the reference voltage chip U2 is connected to GND;
[0016] The comparison circuit includes a voltage comparator U1 and a capacitor C2; the positive electrode of the input terminal of the voltage comparator U1 is connected to the reference voltage terminal of the reference voltage source U2, and the negative electrode of the input terminal of the voltage comparator U1 is connected to the non-power supply terminal of the resistor R1;
[0017] One end of the capacitor C2 is grounded, and the other end is connected to the power supply end of the voltage comparator U1; the ground end of the voltage comparator U1 is grounded; and the output end of the voltage comparator U1 is connected to the gate of the MOS tube Q2.
[0018] Preferably, the output circuit includes a resistor R5, a resistor R6 and a MOS transistor Q1; one end of the resistor R5 is grounded, and the other end is connected to the gate of the MOS transistor Q1; one end of the resistor R6 is connected to the power supply, and the other end is connected to the drain of the MOS transistor Q1; the source of the MOS transistor Q1 is grounded. By changing the supply voltage at the upper end of the output circuit resistor R6, it is used to adapt to different control systems.
[0019] As a preferred embodiment, it also includes an energy storage circuit and a power supply, the energy storage circuit is connected in parallel with the power supply; the energy storage circuit includes a capacitor C1. The energy storage circuit is used to store energy and ensure energy supply when the power supply is off.
[0020] Preferably, the parallel reference voltage source U2 includes AD1580. By adopting the AD1580 reference voltage source chip, its reference optimization performance is better.
[0021] A control system for power-off detection with hysteresis function comprises a power-off detection circuit with hysteresis function.
[0022] The present invention has significant technical effects due to the adoption of the above technical solution:
[0023] By providing a hysteresis control circuit, the hysteresis voltage can be flexibly adjusted according to the design requirements and application environment, so that the output power-off detection signal is real, effective and jitter-free, to ensure that each power-off processing process can be accurately executed.
[0024] The method of introducing hysteresis voltage into the power-off detection circuit solves the problem of jitter at the power-off voltage threshold point of the conventional power-off detection circuit, so that the control system can accurately execute the power-off processing flow, improve the reliability and stability of the system, and reduce the system maintenance cost. In addition, the power-off detection voltage and hysteresis voltage can be flexibly set according to the voltage-dividing resistor, which greatly improves the application scope of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a system diagram of the present invention.
[0026] Figure 2 It is a circuit schematic diagram of the present invention.
[0027] Figure 3 It is the circuit characteristic waveform diagram of the present invention.
[0028] Figure 4 It is a circuit simulation diagram of the present invention.
[0029] Figure 5It is a circuit simulation result diagram of the present invention. DETAILED DESCRIPTION
[0030] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0031] Example 1
[0032] A power-off detection circuit with hysteresis function, comprising a voltage dividing circuit, a hysteresis control circuit, a reference voltage circuit and a comparison circuit;
[0033] The voltage divider circuit is used to set the power-off detection voltage and the hysteresis voltage; the reference voltage circuit is used to generate the reference voltage; the comparison circuit is used to compare the sampling voltage of the voltage divider circuit with the reference voltage of the reference voltage circuit, and transmit the comparison result to the hysteresis control circuit, and the hysteresis control circuit is controlled according to the detected voltage.
[0034] By providing a hysteresis control circuit, the hysteresis voltage can be flexibly adjusted according to the design requirements and application environment, so that the output power-off detection signal is real, effective and jitter-free, to ensure that each power-off processing process can be accurately executed.
[0035] The voltage divider circuit includes resistors R1, R2 and R3. One end of resistor R1 is connected to VIN, and the other end is connected to resistor R2. The other end of resistor R2 is connected to resistor R3. The other end of resistor R3 is connected to GND.
[0036] The hysteresis control circuit includes a resistor R3 and a MOS tube Q2, one end of the resistor R3 is connected to the drain of the MOS tube Q2, the source of the MOS tube Q2 is grounded, and the gate of the MOS tube Q2 is connected to the output pin of the comparator U1;
[0037] The reference voltage circuit includes a resistor R4 and a parallel reference voltage source U2, one end of the resistor R4 is connected to the power supply, the other end of the resistor R4 is connected to the reference voltage end of the reference voltage chip U2, and the other end of the reference voltage chip U2 is connected to GND;
[0038] The comparison circuit includes a voltage comparator U1 and a capacitor C2; the positive electrode of the input terminal of the voltage comparator U1 is connected to the reference voltage terminal of the reference voltage source U2, and the negative electrode of the input terminal of the voltage comparator U1 is connected to the non-power supply terminal of the resistor R1;
[0039] One end of the capacitor C2 is grounded, and the other end is connected to the power supply end of the voltage comparator U1; the ground end of the voltage comparator U1 is grounded; and the output end of the voltage comparator U1 is connected to the gate of the MOS tube Q2.
[0040] Example 2
[0041] Based on Example 1, this embodiment further includes an output circuit, and the comparison result output by the comparison circuit is transmitted to the output circuit. It also includes an energy storage circuit and a power supply, and the energy storage circuit is connected in parallel with the power supply; the energy storage circuit includes a capacitor C1. The energy storage circuit is used to store energy and ensure energy supply when the power supply is off.
[0042] The parallel reference voltage source U2 is AD1580. By using the AD1580 reference voltage source chip, its reference optimization performance is better.
[0043] The output circuit includes resistor R5, resistor R6 and MOS tube Q1; one end of resistor R5 is grounded, and the other end is connected to the gate of MOS tube Q1; one end of resistor R6 is connected to the power supply, and the other end is connected to the drain of MOS tube Q1; the source of MOS tube Q1 is grounded. By changing the supply voltage at the upper end of the output circuit resistor R6, it is used to adapt to different control systems.
[0044] Example 3
[0045] On the basis of the above embodiment, in this embodiment, at the moment when the power supply is just powered on, the voltage of pin 1 of the voltage comparator U1 is greater than the voltage of pin 3, the pin 4 of the comparator outputs a high level, the output MOS tube Q1 is turned on, the output signal VEN is a low level, and at the same time, the hysteresis control MOS tube Q2 is turned on, the resistor R3 is short-circuited, and the voltage after the resistor R2 and R1 are divided is sent to pin 3 of the voltage comparator U1. Therefore, the calculation formula of the detection voltage VDET_ON during the power-on process is as follows;
[0046]
[0047] In the formula, V DET_ON is the detection voltage at power-on; V REF is the reference voltage of the reference chip U2; R1 and R2 are voltage divider resistors for setting the power-off detection voltage.
[0048] Before the power starts to power off, the voltage at pin 1 of the voltage comparator U1 is less than the voltage at pin 3 of the voltage comparator U1. Pin 4 of the voltage comparator U1 outputs a low level, the output MOS tube Q1 is turned off, the output signal VEN is a high level, and the hysteresis control MOS tube Q2 is turned off. The voltage divided by resistors R2, R3 and R1 is sent to pin 3 of the comparator U1. Therefore, the calculation formula of the detection voltage VDET_OFF during the power-off process is as follows:
[0049]
[0050] In the formula, V DET_OFF is the detection voltage when power is off; V REF is the reference voltage of the reference chip U2; R1, R2, R3 are the voltage divider resistors for setting the power-off detection voltage; the hysteresis voltage ΔV of the power-off detection circuitDET The calculation formula is:
[0051] ΔV DET =V DET_ON -V DET_OFF
[0052] Its circuit characteristics are shown in the attached Figure 3 During the power-on process, when the power supply voltage rises to VDET_ON, the output signal VEN of the power-off detection circuit changes from VOL to VOH; during the power-off process, when the power supply voltage drops to VDET_OFF, the output signal VEN of the power-off detection circuit changes from VOH to VOL; the difference between VDET_ON and VDET_OFF is the hysteresis voltage ΔVDET. The power-off detection voltage and threshold voltage are reasonably set according to the application environment to avoid the power-off detection signal from jittering near the power-off voltage, so as to achieve reliable output of the power-off detection signal and ensure the smooth execution of the power-off process.
[0053] Example 4
[0054] Based on the above embodiment, the power supply of this embodiment is 12V;
[0055] System supply voltage: VDC = 12.0V; power-off detection voltage: V DET_OFF =6.0V; Hysteresis voltage: ΔV DET =0.5V
[0056] Calculated from the hysteresis voltage formula: V DET_ON =6.5V. DET_ON and V DET_OFF The calculation formula of the voltage divider resistors R1, R2, and R3 is as follows:
[0057]
[0058]
[0059] The reference voltage chip is AD1580 from ADI, the reference voltage VREF is equal to 1.225V, the resistor R1 is 20KΩ, and the values of R2 and R3 are calculated by the above formula: R2=4.6445KΩ; R3=486.34, R2 and R3 take the closest actual resistance values: R2=4.7KΩ; R3=470Ω.
[0060] Substituting the resistance values of R1, R2, and R3 into the calculation formulas for power-on detection voltage, power-off detection voltage, and hysteresis voltage, we can calculate: V DET_ON =6.438V; V DET_OFF =5.964V;ΔV DET =0.474V, meeting the preset design goal.
[0061] According to the above calculation results, create a circuit simulation file, as shown in the attached Figure 4 As shown; circuit simulation results V DET_ON =6.437V; V DET_ON =5.958V, which is basically consistent with the design result. Figure 5 shown.
[0062] Example 5
[0063] A control system for power-off detection with hysteresis function comprises the power-off detection circuit with hysteresis function of the above embodiment.
Claims
1. A power-off detection circuit with hysteresis function, characterized in that: It includes a voltage divider circuit, a hysteresis control circuit, a reference voltage circuit and a comparison circuit; The voltage divider circuit is used to set the power-off detection voltage and the hysteresis voltage; the reference voltage circuit is used to generate the reference voltage; The comparison circuit is used to compare the sampling voltage of the voltage divider circuit with the reference voltage of the reference voltage circuit, and transmit the comparison result to the hysteresis control circuit, and the hysteresis control circuit performs control according to the detected voltage; The voltage divider circuit includes resistors R1, R2 and R3. One end of resistor R1 is connected to VIN, and the other end is connected to resistor R2. The other end of resistor R2 is connected to resistor R3. The other end of resistor R3 is connected to GND. The hysteresis control circuit includes a resistor R3 and a MOS tube Q2, one end of the resistor R3 is connected to the drain of the MOS tube Q2, the source of the MOS tube Q2 is grounded, and the gate of the MOS tube Q2 is connected to the output pin of the comparator U1; The reference voltage circuit includes a resistor R4 and a parallel reference voltage source U2, one end of the resistor R4 is connected to the power supply, the other end of the resistor R4 is connected to the reference voltage end of the reference voltage chip U2, and the other end of the reference voltage chip U2 is connected to GND; The comparison circuit includes a voltage comparator U1 and a capacitor C2; the positive electrode of the input terminal of the voltage comparator U1 is connected to the reference voltage terminal of the reference voltage source U2, and the negative electrode of the input terminal of the voltage comparator U1 is connected to the non-power supply terminal of the resistor R1; One end of the capacitor C2 is grounded, and the other end is connected to the power supply end of the voltage comparator U1; the ground end of the voltage comparator U1 is grounded; the output end of the voltage comparator U1 is connected to the gate of the MOS tube Q2; By setting up a hysteresis control circuit, the hysteresis voltage can be flexibly adjusted according to the design requirements and application environment, so that the output power-off detection signal is real, effective and jitter-free. At the moment when the power supply is powered on, the voltage at pin 1 of the voltage comparator U1 is greater than the voltage at pin 3, the output of pin 4 of the comparator is high, the output MOS tube Q1 is turned on, the output signal VEN is low, and at the same time, the hysteresis control MOS tube Q2 is turned on, the resistor R3 is short-circuited, and the voltage after the resistor R2 and R1 are divided is sent to pin 3 of the voltage comparator U1. Therefore, the calculation formula of the detection voltage VDET_ON during the power-on process is as follows; In the formula, It is the detection voltage at power-on; is the reference voltage of the reference chip U2; R1 and R2 are the voltage divider resistors for setting the power-off detection voltage; Before the power starts to power off, the voltage at pin 1 of the voltage comparator U1 is less than the voltage at pin 3 of the voltage comparator U1. Pin 4 of the voltage comparator U1 outputs a low level, the output MOS tube Q1 is turned off, the output signal VEN is a high level, and the hysteresis control MOS tube Q2 is turned off. The voltage divided by resistors R2, R3 and R1 is sent to pin 3 of the comparator U1. Therefore, the calculation formula of the detection voltage VDET_OFF during the power-off process is as follows: In the formula, It is the detection voltage when power is off; is the reference voltage of the reference chip U2; R1, R2, R3 are the voltage divider resistors for setting the power-off detection voltage; Hysteresis voltage of power failure detection circuit The calculation formula is: 。 2. A power-off detection circuit with hysteresis function according to claim 1, characterized in that: The device also includes an output circuit, and the comparison result output by the comparison circuit is transmitted to the output circuit.
3. A power-off detection circuit with hysteresis function according to claim 2, characterized in that: The output circuit includes a resistor R5, a resistor R6 and a MOS tube Q1; one end of the resistor R5 is grounded, and the other end is connected to the gate of the MOS tube Q1; one end of the resistor R6 is connected to the power supply, and the other end is connected to the drain of the MOS tube Q1; the source of the MOS tube Q1 is grounded.
4. A power-off detection circuit with hysteresis function according to claim 1, characterized in that: It also includes an energy storage circuit and a power supply, wherein the energy storage circuit is connected in parallel with the power supply; the energy storage circuit includes a capacitor C1.
5. A power-off detection circuit with hysteresis function according to claim 1, characterized in that: The shunt reference voltage source U2 includes an AD1580.
6. A control system for power failure detection with hysteresis function, characterized in that: The invention comprises a power-off detection circuit with hysteresis function as described in any one of claims 1 to 5.
