CN115576406A - Power-down detection and power supply maintenance function circuit and electronic equipment - Google Patents

Power-down detection and power supply maintenance function circuit and electronic equipment Download PDF

Info

Publication number
CN115576406A
CN115576406A CN202211330884.8A CN202211330884A CN115576406A CN 115576406 A CN115576406 A CN 115576406A CN 202211330884 A CN202211330884 A CN 202211330884A CN 115576406 A CN115576406 A CN 115576406A
Authority
CN
China
Prior art keywords
power supply
circuit
power
output
resistor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211330884.8A
Other languages
Chinese (zh)
Inventor
陈晓君
曹杰
陈小文
符兴东
朱钦炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Inovance Technology Co Ltd
Original Assignee
Shenzhen Inovance Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Inovance Technology Co Ltd filed Critical Shenzhen Inovance Technology Co Ltd
Priority to CN202211330884.8A priority Critical patent/CN115576406A/en
Publication of CN115576406A publication Critical patent/CN115576406A/en
Priority to PCT/CN2023/106993 priority patent/WO2024087737A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • G06F1/305Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations in the event of power-supply fluctuations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stand-By Power Supply Arrangements (AREA)

Abstract

本发明公开一种掉电检测和供电保持功能电路及电子设备,该掉电检测和供电保持功能电路包括:电源输出端用于接入用电负载;储能电路;供电保持控制电路的输入端与储能电路的输出端连接,供电保持控制电路的输出端与电源输出端连接,用于在导通时控制储能电路与电源输出端电连接;储能电压检测电路,储能电压检测电路的检测端与储能电路的输出端连接,储能电压检测电路的输出端与供电保持控制电路的受控端连接,用于检测储能电路的输出电压,并在储能电路的输出电压小于第一预设电压时,控制供电保持控制电路断开储能电路与电源输出端之间的电连接,以使储能电路停止为用电负载供电。本发明可以解决现有的掉电存储方案稳定性差的问题。

Figure 202211330884

The invention discloses a power failure detection and power supply maintenance functional circuit and electronic equipment. The power failure detection and power supply maintenance functional circuit comprises: a power supply output terminal for connecting to an electric load; an energy storage circuit; and an input terminal of a power supply maintenance control circuit It is connected with the output terminal of the energy storage circuit, and the output terminal of the power supply maintenance control circuit is connected with the output terminal of the power supply, and is used to control the electrical connection between the energy storage circuit and the output terminal of the power supply when it is turned on; the energy storage voltage detection circuit, the energy storage voltage detection circuit The detection end of the energy storage circuit is connected to the output end of the energy storage circuit, and the output end of the energy storage voltage detection circuit is connected to the controlled end of the power supply maintenance control circuit for detecting the output voltage of the energy storage circuit, and when the output voltage of the energy storage circuit is less than When the first preset voltage is reached, the power supply maintenance control circuit is controlled to disconnect the electrical connection between the energy storage circuit and the output terminal of the power supply, so that the energy storage circuit stops supplying power to the electric load. The invention can solve the problem of poor stability of the existing power-down storage scheme.

Figure 202211330884

Description

掉电检测和供电保持功能电路及电子设备Power-down detection and power supply maintenance function circuit and electronic equipment

技术领域technical field

本发明涉及电子设备技术领域,特别涉及一种掉电检测和供电保持功能电路及电子设备。The invention relates to the technical field of electronic equipment, in particular to a power failure detection and power supply maintenance function circuit and electronic equipment.

背景技术Background technique

工业产品的集成度越来越复杂,CPU、MCU、FPGA等处理器被大量的应用于产品中,这些复杂的集成电路产品需要在输入电源突然掉电时,仍然能维持一定的时间正常供电,以进行掉电状态数据的存储,同时以免掉电时因软件不当操作引起SD卡或EMMC存储器等器件的损坏。现有技术中,有的方案是掉电后由超级电容持续放电,不做控制,导致重新上电时由于之前电压没掉到0V引起系统启动异常,影响产品的易用性,和用户体验性差。The integration of industrial products is becoming more and more complex. CPUs, MCUs, FPGAs and other processors are widely used in products. These complex integrated circuit products need to maintain normal power supply for a certain period of time when the input power suddenly loses power. In order to store the data in the power-off state, and at the same time avoid damage to the SD card or EMMC memory due to improper operation of the software when the power is off. In the existing technology, some solutions are to continue to discharge the supercapacitor after power failure without control, resulting in abnormal system startup due to the previous voltage not falling to 0V when the power is turned on again, affecting the usability of the product and poor user experience .

发明内容Contents of the invention

本发明的主要目的是提出一种掉电检测和供电保持功能电路,旨在解决现有的掉电存储方案稳定性差的问题。The main purpose of the present invention is to propose a power failure detection and power supply maintenance function circuit, aiming to solve the problem of poor stability of the existing power failure storage scheme.

为实现上述目的,本发明提出的掉电检测和供电保持功能电路,包括:In order to achieve the above object, the power-down detection and power supply maintenance function circuit proposed by the present invention includes:

电源输出端,所述电源输出端用于接入用电负载;A power supply output terminal, the power supply output terminal is used to connect to an electrical load;

储能电路;energy storage circuit;

供电保持控制电路,所述供电保持控制电路的输入端与所述储能电路的输出端连接,所述供电保持控制电路的输出端与所述电源输出端连接,所述供电保持控制电路用于在导通时,控制所述储能电路与所述电源输出端电连接;A power supply maintenance control circuit, the input terminal of the power supply maintenance control circuit is connected to the output terminal of the energy storage circuit, the output terminal of the power supply maintenance control circuit is connected to the output terminal of the power supply, and the power supply maintenance control circuit is used for When turned on, control the energy storage circuit to be electrically connected to the output terminal of the power supply;

储能电压检测电路,所述储能电压检测电路的检测端与所述储能电路的输出端连接,所述储能电压检测电路的输出端与所述供电保持控制电路的受控端连接,所述储能电压检测电路用于检测所述储能电路的输出电压,并在所述储能电路的输出电压小于第一预设电压时,控制所述供电保持控制电路断开所述储能电路与所述电源输出端之间的电连接,以使所述储能电路停止为用电负载供电。An energy storage voltage detection circuit, the detection end of the energy storage voltage detection circuit is connected to the output end of the energy storage circuit, the output end of the energy storage voltage detection circuit is connected to the controlled end of the power supply maintenance control circuit, The energy storage voltage detection circuit is used to detect the output voltage of the energy storage circuit, and when the output voltage of the energy storage circuit is lower than a first preset voltage, control the power supply maintenance control circuit to disconnect the energy storage The electric connection between the circuit and the output terminal of the power supply is used to stop the energy storage circuit from supplying power to the electric load.

可选地,所述掉电检测和供电保持功能电路还包括:Optionally, the power-down detection and power supply maintenance function circuit also includes:

电源输入端,所述电源输入端与所述电源输出端连接,用于接入输入电源;A power input terminal, the power input terminal is connected to the power output terminal, and is used to connect to the input power supply;

电源检测电路,所述电源检测电路的检测端与所述电源输入端连接,所述电源检测电路的输出端与所述供电保持控制电路的受控端连接,所述电源检测电路用于检测所述电源输入端的输出电压,并在所述电源输入端的输出电压大于第二预设电压时,控制所述供电保持控制电路断开所述储能电路与所述电源输出端之间的电连接,以使所述储能电路停止为用电负载供电。A power detection circuit, the detection end of the power detection circuit is connected to the power input end, the output end of the power detection circuit is connected to the controlled end of the power supply maintenance control circuit, and the power detection circuit is used to detect the the output voltage of the input terminal of the power supply, and when the output voltage of the input terminal of the power supply is greater than a second preset voltage, control the power supply maintenance control circuit to disconnect the electrical connection between the energy storage circuit and the output terminal of the power supply, so that the energy storage circuit stops supplying power to the electric load.

可选地,所述电源检测电路还用于在所述电源输入端的输出电压小于第二预设电压时,输出供电保持信号至所述供电保持控制电路,以使所述供电保持控制电路控制所述储能电路与所述电源输出端电连接,以使所述储能电路为用电负载供电。Optionally, the power supply detection circuit is further configured to output a power supply maintenance signal to the power supply maintenance control circuit when the output voltage of the power input terminal is lower than a second preset voltage, so that the power supply maintenance control circuit controls the The energy storage circuit is electrically connected to the output end of the power supply, so that the energy storage circuit supplies power to the electric load.

可选地,所述电源检测电路的供电端与所述电源输出端连接,所述电源检测电路还用于在所述供电端掉电时,输出断电信号至所述供电保持控制电路,以使所述供电保持控制电路控制所述储能电路与所述电源输出端断开电连接,以使所述储能电路停止为用电负载供电。Optionally, the power supply end of the power detection circuit is connected to the power output end, and the power detection circuit is further configured to output a power-off signal to the power supply maintenance control circuit when the power supply end is powered off, so as to The power supply maintenance control circuit controls the energy storage circuit to be disconnected from the output terminal of the power supply, so that the energy storage circuit stops supplying power to the load.

可选地,所述掉电检测和供电保持功能电路还包括:Optionally, the power-down detection and power supply maintenance function circuit also includes:

电源转换电路,所述电源转换电路的输入端与电源输入端连接,所述电源转换电路的输出端分别与所述电源输出端及储能电路的输入端连接,所述电源转换电路用于将接入的输入电源转换为供电电压后输出;A power conversion circuit, the input end of the power conversion circuit is connected to the power input end, the output end of the power conversion circuit is respectively connected to the power output end and the input end of the energy storage circuit, and the power conversion circuit is used to The connected input power is converted into a power supply voltage and then output;

所述电源检测电路具有第一检测端及第二检测端,所述电源检测电路的第一检测端与所述电源输入端连接,所述电源检测电路的第二检测端与所述电源转换电路的输出端连接;The power detection circuit has a first detection end and a second detection end, the first detection end of the power detection circuit is connected to the power input end, the second detection end of the power detection circuit is connected to the power conversion circuit The output terminal connection;

所述电源检测电路用于检测所述电源输入端的输出电压与所述电源转换电路的输出电压,并在所述电源输入端的输出电压小于第二预设电压,和/或所述电源转换电路的输出电压小于第三预设电压时,输出供电保持信号至所述供电保持控制电路,以使所述供电保持控制电路控制所述储能电路与所述电源输出端电连接,以使所述储能电路为用电负载供电。The power detection circuit is used to detect the output voltage of the power input terminal and the output voltage of the power conversion circuit, and the output voltage at the power input terminal is less than a second preset voltage, and/or the power conversion circuit When the output voltage is less than the third preset voltage, output a power supply maintenance signal to the power supply maintenance control circuit, so that the power supply maintenance control circuit controls the electrical connection between the energy storage circuit and the output terminal of the power supply, so that the power storage The energy circuit supplies power to the electrical load.

可选地,所述电源检测电路还用于在所述电源输入端的输出电压大于第二预设电压且所述电源转换电路的输出电压大于第三预设电压时,输出断电信号至所述供电保持控制电路,以使所述供电保持控制电路控制所述储能电路与所述电源输出端断开电连接,以使所述储能电路停止为用电负载供电。Optionally, the power detection circuit is further configured to output a power-off signal to the A power supply maintenance control circuit, so that the power supply maintenance control circuit controls the electrical connection between the energy storage circuit and the output terminal of the power supply, so that the energy storage circuit stops supplying power to the electric load.

可选地,所述第二预设电压大于所述电源转换电路的欠压阈值;Optionally, the second preset voltage is greater than the undervoltage threshold of the power conversion circuit;

所述电源转换电路的欠压阈值为所述电源转换电路正常工作时的最小输入电压。The undervoltage threshold of the power conversion circuit is the minimum input voltage when the power conversion circuit works normally.

可选地,所述电源检测电路包括:Optionally, the power detection circuit includes:

信号输出电路,所述信号输出电路的输出端与所述供电保持控制电路的受控端连接;A signal output circuit, the output end of the signal output circuit is connected to the controlled end of the power supply maintenance control circuit;

第一检测电路,所述第一检测电路的检测端与所述电源输入端连接,所述第一检测电路的输出端与所述信号输出电路的第一受控端连接,所述第一检测电路用于检测所述电源输入端的输出电压,并在所述电源输入端的输出电压小于第二预设电压时,输出第一掉电信号至所述信号输出电路,以及在所述电源输入端的输出电压大于第二预设电压时,输出第一上电信号至所述信号输出电路;A first detection circuit, the detection terminal of the first detection circuit is connected to the input terminal of the power supply, the output terminal of the first detection circuit is connected to the first controlled terminal of the signal output circuit, and the first detection circuit The circuit is used to detect the output voltage of the input terminal of the power supply, and when the output voltage of the input terminal of the power supply is less than the second preset voltage, output the first power-down signal to the signal output circuit, and output at the input terminal of the power supply outputting a first power-on signal to the signal output circuit when the voltage is greater than the second preset voltage;

第二检测电路,所述第二检测电路的检测端与所述电源转换电路的输出端连接,所述第二检测电路的输出端与所述信号输出电路的第二受控端连接,所述第二检测电路用于检测所述电源转换电路的输出电压,并在所述电源转换电路的输出电压小于第三预设电压时,输出第二掉电信号至所述信号输出电路,以及在所述电源转换电路的输出电压大于第三预设电压时,输出第二上电信号至所述信号输出电路;A second detection circuit, the detection end of the second detection circuit is connected to the output end of the power conversion circuit, the output end of the second detection circuit is connected to the second controlled end of the signal output circuit, the The second detection circuit is used to detect the output voltage of the power conversion circuit, and when the output voltage of the power conversion circuit is less than a third preset voltage, output a second power-down signal to the signal output circuit, and when the output voltage of the power conversion circuit is less than a third preset voltage, When the output voltage of the power conversion circuit is greater than the third preset voltage, output a second power-on signal to the signal output circuit;

所述信号输出电路用于在接收到第一掉电信号和/或第二掉电信号时,输出供电保持信号至所述供电保持控制电路,以使所述供电保持控制电路控制所述储能电路与所述电源输出端电连接,以使所述储能电路为用电负载供电;以及,The signal output circuit is configured to output a power supply maintenance signal to the power supply maintenance control circuit when receiving the first power-down signal and/or the second power-down signal, so that the power supply maintenance control circuit controls the energy storage A circuit is electrically connected to the output terminal of the power supply, so that the energy storage circuit supplies power to an electrical load; and,

所述信号输出电路还用于在接收到第一上电信号和第二上电信号时,输出断电信号至所述供电保持控制电路,以使所述供电保持控制电路控制所述储能电路与所述电源输出端断开电连接,以使所述储能电路停止为用电负载供电。The signal output circuit is further configured to output a power-off signal to the power supply maintenance control circuit when receiving the first power-on signal and the second power-on signal, so that the power supply maintenance control circuit controls the energy storage circuit Disconnecting the electrical connection with the output end of the power supply, so that the energy storage circuit stops supplying power to the electric load.

可选地,所述第一检测电路包括第一电阻、第二电阻、第三电阻、第四电阻、第五电阻、第六电阻及第一比较器,所述第一电阻的第一端与所述电源输入端连接,所述第一电阻的第二端与所述第二电阻的第一端连接,所述第二电阻的第二端接地,所述第一电阻的第二端还与所述第一比较器的正向输入端连接,所述第三电阻的第一端接地,所述第三电阻的第二端与所述第四电阻第一端连接,所述第四电阻第二端与电源输出端连接,所述第三电阻与所述第四电阻的公共端与所述第一比较器的反向输入端连接,所述第一比较器的供电端与所述第四电阻的第二端连接,所述第一比较器的输出端与所述信号输出电路的第一受控端连接,所述第五电阻并联设置于所述第一比较器的输出端与正向输入端之间,所述第六电阻并联设置于所述第一比较器的供电端与输出端之间。Optionally, the first detection circuit includes a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, and a first comparator, and the first terminal of the first resistor is connected to The power input terminal is connected, the second end of the first resistor is connected to the first end of the second resistor, the second end of the second resistor is grounded, and the second end of the first resistor is also connected to the The positive input terminal of the first comparator is connected, the first terminal of the third resistor is grounded, the second terminal of the third resistor is connected to the first terminal of the fourth resistor, and the fourth resistor The two terminals are connected to the output terminal of the power supply, the common terminal of the third resistor and the fourth resistor is connected to the inverting input terminal of the first comparator, and the power supply terminal of the first comparator is connected to the fourth resistor. The second end of the resistor is connected, the output end of the first comparator is connected to the first controlled end of the signal output circuit, and the fifth resistor is arranged in parallel between the output end of the first comparator and the positive direction Between the input terminals, the sixth resistor is arranged in parallel between the power supply terminal and the output terminal of the first comparator.

可选地,所述第二检测电路包括第八电阻、第九电阻、第十电阻、第十一电阻、第十二电阻、第十三电阻及第二比较器,所述第八电阻的第一端与所述电源转换电路的输出端连接,所述第八电阻的第二端与所述第九电阻的第一端连接,所述第九电阻的第二端接地,所述第八电阻的第二端还与所述第二比较器的正向输入端连接,所述第十电阻的第一端接地,所述第十电阻的第二端与所述第十一电阻第一端连接,所述第十一电阻第二端与电源输出端连接,所述第十电阻与所述第十一电阻的公共端与所述第二比较器的反向输入端连接,所述第二比较器的输出端与所述信号输出电路的第二受控端连接,所述第十二电阻的第一端与所述电源输出端连接,所述第十二电阻的第二端与所述第二比较器的输出端连接,所述第十三电阻并联设置于所述第二比较器的输出端与正向输入端之间。Optionally, the second detection circuit includes an eighth resistor, a ninth resistor, a tenth resistor, an eleventh resistor, a twelfth resistor, a thirteenth resistor, and a second comparator, and the eighth resistor One end is connected to the output end of the power conversion circuit, the second end of the eighth resistor is connected to the first end of the ninth resistor, the second end of the ninth resistor is grounded, and the eighth resistor The second end of the second comparator is also connected to the positive input end of the second comparator, the first end of the tenth resistor is grounded, and the second end of the tenth resistor is connected to the first end of the eleventh resistor , the second end of the eleventh resistor is connected to the output end of the power supply, the common end of the tenth resistor and the eleventh resistor is connected to the inverting input end of the second comparator, and the second comparator The output terminal of the device is connected to the second controlled terminal of the signal output circuit, the first terminal of the twelfth resistor is connected to the output terminal of the power supply, and the second terminal of the twelfth resistor is connected to the second terminal of the twelfth resistor. The output ends of the two comparators are connected, and the thirteenth resistor is arranged in parallel between the output end of the second comparator and the positive input end.

可选地,所述储能电压检测电路包括第十四电阻、第十五电阻、第十六电阻、第三比较器及第三开关管,所述第十四电阻的第一端与所述储能电路的输出端连接,所述第十四电阻的第二端与所述第十五电阻的第一端连接,所述第十五电阻的第二端接地,所述第三比较器的反向输入端与所述第十四电阻的第二端连接,所述第三比较器的输出端与所述第三开关管的受控端连接,所述第十六电阻的第一端与所述储能电路的输出端连接,所述第十六电阻的第二端与所述第三比较器的输出端连接,所述第三开关管的第一端与所述供电保持控制电路的受控端连接,所述第三开关管的第二端接地。Optionally, the energy storage voltage detection circuit includes a fourteenth resistor, a fifteenth resistor, a sixteenth resistor, a third comparator, and a third switch tube, and the first end of the fourteenth resistor is connected to the The output end of the energy storage circuit is connected, the second end of the fourteenth resistor is connected to the first end of the fifteenth resistor, the second end of the fifteenth resistor is grounded, and the third comparator The reverse input terminal is connected to the second terminal of the fourteenth resistor, the output terminal of the third comparator is connected to the controlled terminal of the third switch tube, and the first terminal of the sixteenth resistor is connected to the The output end of the energy storage circuit is connected, the second end of the sixteenth resistor is connected to the output end of the third comparator, and the first end of the third switching tube is connected to the power supply maintenance control circuit. The controlled end is connected, and the second end of the third switching tube is grounded.

本发明还提出一种电子设备,包括处理器及如上述的掉电检测和供电保持功能电路;其中,The present invention also proposes an electronic device, including a processor and the above-mentioned power-down detection and power supply maintenance function circuit; wherein,

所述处理器的供电端与所述掉电检测和供电保持功能电路的电源输出端连接。The power supply end of the processor is connected with the power output end of the power failure detection and power supply maintenance function circuit.

可选地,所述处理器的信号接收端还与所述电源检测电路的输出端连接,所述处理器用于在接收到所述电源检测电路输出的供电保持信号时进行数据存储。Optionally, the signal receiving end of the processor is further connected to the output end of the power detection circuit, and the processor is configured to store data when receiving the power supply maintenance signal output by the power detection circuit.

本发明技术方案通过设置储能电压检测电路,使得储能电压检测电路能够检测储能电路的输出电压,并在储能电路的输出电压小于第一预设电压时,也即在后级负载处理器完成掉电数据存储后,控制供电保持控制电路断开储能电路与电源输出端的连接,从而使得后级负载处理器在重新上电前的供电电压值能够小于要求的电压值,避免后级负载处理器重新上电时出现异常,提高了掉电检测和供电保持功能电路的安全性和稳定性,解决了现有的掉电存储方案稳定性差的问题。The technical solution of the present invention sets the energy storage voltage detection circuit, so that the energy storage voltage detection circuit can detect the output voltage of the energy storage circuit, and when the output voltage of the energy storage circuit is lower than the first preset voltage, that is, in the subsequent load processing After the power-off data storage is completed, the control power supply maintenance control circuit disconnects the connection between the energy storage circuit and the output terminal of the power supply, so that the power supply voltage value of the subsequent load processor before power-on can be lower than the required voltage value, avoiding the subsequent stage load processor. An exception occurs when the load processor is powered on again, which improves the safety and stability of the power-off detection and power supply maintenance function circuits, and solves the problem of poor stability of the existing power-off storage scheme.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to the structures shown in these drawings without creative effort.

图1为本发明掉电检测和供电保持功能电路一实施例的功能模块示意图;Fig. 1 is a functional module schematic diagram of an embodiment of the power-down detection and power supply maintenance functional circuit of the present invention;

图2为本发明掉电检测和供电保持功能电路另一实施例的功能模块示意图;2 is a schematic diagram of functional modules of another embodiment of the power-down detection and power supply maintenance functional circuit of the present invention;

图3为本发明掉电检测和供电保持功能电路又一实施例的功能模块示意图;3 is a schematic diagram of functional modules of another embodiment of the power-down detection and power supply maintenance functional circuit of the present invention;

图4为本发明掉电检测和供电保持功能电路一实施例的电路结构示意图。FIG. 4 is a schematic diagram of the circuit structure of an embodiment of the power failure detection and power supply maintenance function circuit of the present invention.

附图标号说明:Explanation of reference numbers:

Figure BDA0003910197570000051
Figure BDA0003910197570000051

Figure BDA0003910197570000061
Figure BDA0003910197570000061

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

需要说明,若本发明实施例中有涉及方向性指示(诸如上、下、左、右、前、后……),则该方向性指示仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。It should be noted that if there is a directional indication (such as up, down, left, right, front, back...) in the embodiment of the present invention, the directional indication is only used to explain the position in a certain posture (as shown in the accompanying drawing). If the specific posture changes, the directional indication will also change accordingly.

另外,若本发明实施例中有涉及“第一”、“第二”等的描述,则该“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。In addition, if there are descriptions involving "first", "second" and so on in the embodiments of the present invention, the descriptions of "first", "second" and so on are only for descriptive purposes, and should not be interpreted as indicating or implying Its relative importance or implicitly indicates the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In addition, the technical solutions of the various embodiments can be combined with each other, but it must be based on the realization of those skilled in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist , nor within the scope of protection required by the present invention.

本发明提出一种掉电检测和供电保持功能电路。The invention proposes a power-down detection and power supply maintenance function circuit.

目前,现有技术中,有的方案是掉电后由超级电容持续放电,不做控制,导致重新上电时由于之前电压没掉到0V引起系统启动异常,影响产品的易用性,和用户体验性差。At present, in the existing technology, some solutions are to continue to discharge the supercapacitor after power-off without control, which will cause the system to start abnormally when the power is turned on again because the previous voltage did not drop to 0V, which will affect the usability of the product and the user. Poor experience.

为解决上述问题,参照图1至图4,在一实施例中,所述掉电检测和供电保持功能电路包括:In order to solve the above problems, with reference to Figures 1 to 4, in one embodiment, the power-down detection and power supply maintenance function circuit includes:

电源输出端,所述电源输出端用于接入用电负载;A power supply output terminal, the power supply output terminal is used to connect to an electrical load;

储能电路10;Energy storage circuit 10;

供电保持控制电路20,所述供电保持控制电路20的输入端与所述储能电路10的输出端连接,所述供电保持控制电路20的输出端与所述电源输出端连接,所述供电保持控制电路20用于在导通时,控制所述储能电路10与所述电源输出端电连接;A power supply maintenance control circuit 20, the input terminal of the power supply maintenance control circuit 20 is connected to the output terminal of the energy storage circuit 10, the output terminal of the power supply maintenance control circuit 20 is connected to the output terminal of the power supply, and the power supply maintenance control circuit 20 is connected to the output terminal of the power supply. The control circuit 20 is used to control the electrical connection between the energy storage circuit 10 and the output terminal of the power supply when it is turned on;

储能电压检测电路30,所述储能电压检测电路30的检测端与所述储能电路10的输出端连接,所述储能电压检测电路30的输出端与所述供电保持控制电路20的受控端连接,所述储能电压检测电路30用于检测所述储能电路10的输出电压,并在所述储能电路10的输出电压小于第一预设电压时,控制所述供电保持控制电路20断开所述储能电路10与所述电源输出端之间的电连接,以使所述储能电路10停止为用电负载供电。An energy storage voltage detection circuit 30, the detection end of the energy storage voltage detection circuit 30 is connected to the output end of the energy storage circuit 10, the output end of the energy storage voltage detection circuit 30 is connected to the power supply maintenance control circuit 20 The controlled end is connected, the storage voltage detection circuit 30 is used to detect the output voltage of the storage circuit 10, and when the output voltage of the storage circuit 10 is less than the first preset voltage, control the power supply to maintain The control circuit 20 disconnects the electrical connection between the energy storage circuit 10 and the output terminal of the power supply, so that the energy storage circuit 10 stops supplying power to the load.

在本实施例中,电源输出端用于接入如处理器等用电负载,电源输出端还可以与供电电路连接,用于为接入的后级负载进行正常供电,当供电电路掉电时,则由储能电路10提供临时供电,以使后级负载处理器能够及时将数据进行储存,防止数据因掉电而丢失。储能电路10可以选用储能电容、可充电电池等储能器件来实现,储能电路10还可以是与为后级负载正常供电的供电电路电连接,以在供电电路为接入的后级负载进行正常供电时,将供电电路输出的一部分电能存储起来,用作临时供电的电能,储能电路10中的电能也可以是来自其他电路的。供电保持控制电路20可以选用开关管等来实现,以控制储能电路10与电源输出端之间通路的连通或断开,供电保持控制电路20用于在后级负载处理器掉电时,控制储能电路10与电源输出端电连接,以使储能电路10为后级负载处理器提供临时供电。储能电压检测电路30可以选用分压电阻、比较器及开关管等来实现,比较器的正向输入端接入储能电路10的输出电压,并在比较器的反向输入端接入一个基准电压,如此,可以利用比较器输出的低电平及高电平控制开关管的导通或关断,从而控制储能电路10与电源输出端之间通路的连通或断开。In this embodiment, the output end of the power supply is used to connect to loads such as processors, and the output end of the power supply can also be connected to the power supply circuit to provide normal power supply for the connected subsequent loads. When the power supply circuit is powered off , the energy storage circuit 10 provides temporary power supply, so that the subsequent load processor can store the data in time to prevent data loss due to power failure. Energy storage circuit 10 can be realized by selecting energy storage devices such as energy storage capacitors and rechargeable batteries. When the load supplies power normally, a part of the electric energy output by the power supply circuit is stored for temporary power supply. The electric energy in the energy storage circuit 10 may also come from other circuits. The power supply maintenance control circuit 20 can be implemented by selecting a switch tube to control the connection or disconnection of the path between the energy storage circuit 10 and the output terminal of the power supply. The power supply maintenance control circuit 20 is used to control the The energy storage circuit 10 is electrically connected to the output terminal of the power supply, so that the energy storage circuit 10 provides temporary power supply for the subsequent load processor. The energy storage voltage detection circuit 30 can be realized by selecting a voltage dividing resistor, a comparator and a switch tube, etc., the positive input terminal of the comparator is connected to the output voltage of the energy storage circuit 10, and a negative input terminal of the comparator is connected to a The reference voltage, in this way, can use the low level and high level output by the comparator to control the turn-on or turn-off of the switch tube, thereby controlling the connection or disconnection of the path between the energy storage circuit 10 and the output terminal of the power supply.

需注意的是,如果没有储能电压检测电路30,后级负载处理器数据保存后,负载处理器逐渐处于待机或停机状态,此时后级负载非常小,储能电路10所储存的电能放电到0V的时间会非常长,也即电源输出端降到0V的时间非常长。但是,后级负载处理器通常有明确要求,即重新上电前供电电压值必须要小于一定值,否则后级负载处理器上电后会出现异常,如系统无法启动等等问题,因此,本实施例中设有储能电压检测电路30,在储能电路10的输出电压达到后级负载处理器所需要的欠压阈值,也即第一预设电压值后,迅速控制储能电路10与电源输出端之间通路断开,使得储能电路10停止为后级负载处理器供电,以保证下次上电时系统可以正常启动。第一预设电压值可以设置为小于或等于后级负载处理器在掉电数据存储完成后储能电路10的输出电压,当储能电路10的输出电压降到第一预设电压值时,则表征着后级负载处理器完成了掉电数据存储的工作。例如,储能电路10给后级负载处理器供电时的初始电压为5V,后级负载处理器将数据储存完毕后储能电路10输出的电压值降为4V,此时可以对应将第一预设电压值设置为4V或小于4V,如此,则可以在后级负载处理器完成数据存储后断开供电,以保证下次上电时系统可以正常启动。It should be noted that if there is no energy storage voltage detection circuit 30, after the data of the subsequent load processor is saved, the load processor is gradually in a standby or shutdown state. At this time, the subsequent load is very small, and the electric energy stored in the energy storage circuit 10 is discharged The time to 0V will be very long, that is, the time for the output of the power supply to drop to 0V is very long. However, the post-load processor usually has clear requirements, that is, the power supply voltage value must be less than a certain value before re-powering on, otherwise there will be abnormalities after the post-load processor is powered on, such as the system cannot be started, etc. Therefore, this In the embodiment, an energy storage voltage detection circuit 30 is provided to quickly control the energy storage circuit 10 and The path between the output ends of the power supply is disconnected, so that the energy storage circuit 10 stops supplying power to the subsequent load processor, so as to ensure that the system can start normally when the power is turned on next time. The first preset voltage value can be set to be less than or equal to the output voltage of the energy storage circuit 10 after the power-down data storage is completed by the subsequent load processor. When the output voltage of the energy storage circuit 10 drops to the first preset voltage value, It means that the post-load processor has completed the work of power-down data storage. For example, when the energy storage circuit 10 supplies power to the subsequent load processor, the initial voltage is 5V, and the output voltage value of the energy storage circuit 10 is reduced to 4V after the subsequent load processor finishes storing the data. Set the voltage value to 4V or less than 4V. In this way, the power supply can be disconnected after the post-load processor completes data storage, so as to ensure that the system can start normally when the power is turned on next time.

参照图4,图4为掉电检测和供电保持功能电路一实施的电路结构示意图,图中的储能电路10由储能电容C2及第十八电阻R18组成,储能电容C2储存自电源输入端输入的电能,供电保持控制电路20由NMOS管Q4、PMOS管Q5及下拉电阻R17组成,当NMOS管Q4接收到高电平的供电保持信号时导通,拉低PMOS管Q5栅极端的电压,使得PMOS管Q5导通,从而使得储能电容C2与电源输出端电连接,以为后级负载处理器临时供电。储能电压检测电路30则由比较器U3、第十四电阻R14、第十五电阻R15、第十六电阻R16及NMOS管Q3组成,比较器U3为内部集成有电源参考源的比较器,内部集成参考源的电压值即第一预设电压值,当储能电路10的输出电压大于第一预设电压值时,比较器U3则输出低电平控制NMOS管Q3关断,此时NMOS管Q4的栅极端则接收到高电平的供电保持信号导通。而当储能电路10的输出电压小于第一预设电压值时,比较器U3则输出高电平控制NMOS管Q3导通,从而拉低NMOS管Q4的栅极端的电压,也即输出断电信号至NMOS管Q4,使得NMOS管Q4关断,从而使得PMOS管Q5关断,使得储能电路10断开与电源输出端的连接,停止为后级负载处理器供电,以保证下次上电时系统可以正常启动。Referring to Fig. 4, Fig. 4 is a schematic diagram of a circuit structure of an implementation of a power failure detection and power supply maintenance function circuit. The energy storage circuit 10 in the figure is composed of an energy storage capacitor C2 and an eighteenth resistor R18, and the energy storage capacitor C2 is stored from the power input The electric energy input by the terminal, the power supply maintenance control circuit 20 is composed of NMOS transistor Q4, PMOS transistor Q5 and pull-down resistor R17, when the NMOS transistor Q4 receives a high-level power supply maintenance signal, it is turned on, and the voltage at the gate terminal of the PMOS transistor Q5 is pulled down , so that the PMOS transistor Q5 is turned on, so that the energy storage capacitor C2 is electrically connected to the output end of the power supply, so as to temporarily supply power to the subsequent load processor. The energy storage voltage detection circuit 30 is composed of a comparator U3, a fourteenth resistor R14, a fifteenth resistor R15, a sixteenth resistor R16 and an NMOS transistor Q3. The comparator U3 is a comparator integrated with a power reference source inside. The voltage value of the integrated reference source is the first preset voltage value. When the output voltage of the energy storage circuit 10 is greater than the first preset voltage value, the comparator U3 outputs a low level to control the NMOS transistor Q3 to turn off. At this time, the NMOS transistor Q3 The gate terminal of Q4 receives a high-level power supply to keep the signal turned on. When the output voltage of the energy storage circuit 10 is lower than the first preset voltage value, the comparator U3 outputs a high level to control the conduction of the NMOS transistor Q3, thereby pulling down the voltage of the gate terminal of the NMOS transistor Q4, that is, the output power is cut off. The signal is sent to the NMOS transistor Q4, so that the NMOS transistor Q4 is turned off, so that the PMOS transistor Q5 is turned off, so that the energy storage circuit 10 is disconnected from the output terminal of the power supply, and the power supply for the subsequent load processor is stopped to ensure that the next power-on The system can start normally.

本发明通过设置储能电压检测电路30,使得储能电压检测电路30能够检测储能电路10的输出电压,并在储能电路10的输出电压小于第一预设电压时,也即在后级负载处理器完成掉电数据存储后,控制供电保持控制电路20断开储能电路10与电源输出端的连接,从而使得后级负载处理器在重新上电前的供电电压值能够小于要求的电压值,避免后级负载处理器重新上电时出现异常,提高了掉电检测和供电保持功能电路的安全性和稳定性。In the present invention, by setting the energy storage voltage detection circuit 30, the energy storage voltage detection circuit 30 can detect the output voltage of the energy storage circuit 10, and when the output voltage of the energy storage circuit 10 is less than the first preset voltage, that is, in the subsequent stage After the load processor completes the power-down data storage, control the power supply maintenance control circuit 20 to disconnect the energy storage circuit 10 from the output terminal of the power supply, so that the power supply voltage value of the subsequent load processor before power-on again can be less than the required voltage value , to avoid abnormality when the post-stage load processor is powered on again, and improve the safety and stability of the power failure detection and power supply maintenance function circuit.

参照图1至图4,在一实施例中,所述掉电检测和供电保持功能电路还包括:Referring to Figures 1 to 4, in one embodiment, the power-down detection and power supply maintenance function circuit also includes:

电源输入端,用于接入输入电源;The power input terminal is used to connect to the input power;

电源检测电路40,所述电源检测电路40的检测端与所述电源输入端连接,所述电源检测电路40的输出端与所述供电保持控制电路20的受控端连接,所述电源检测电路40用于检测所述电源输入端的输出电压,并在所述电源输入端的输出电压大于第二预设电压时,控制所述供电保持控制电路20断开所述储能电路10与所述电源输出端之间的电连接,以使所述储能电路10停止为用电负载供电。A power detection circuit 40, the detection end of the power detection circuit 40 is connected to the power input end, the output end of the power detection circuit 40 is connected to the controlled end of the power supply maintenance control circuit 20, and the power detection circuit 40 is used to detect the output voltage of the input terminal of the power supply, and when the output voltage of the input terminal of the power supply is greater than a second preset voltage, control the power supply maintenance control circuit 20 to disconnect the energy storage circuit 10 from the output of the power supply The electrical connection between the terminals, so that the energy storage circuit 10 stops supplying power to the electrical load.

在本实施例中,电源输入端可以与电源输出端连接,以使接入的输入电源为后级负载进行正常供电,当电源输入端掉电时,则由储能电路10为后级负载进行临时供电。第二预设电压为系统能够正常工作时的最小电压,例如,当电源输入端的电压大于5V时,后级负载处理器能够正常工作,而电源输入端的电压小于5V时,后级负载处理器无法正常工作,那么可以将5V设置为第二预设电压,如此,当电源输入端的输出电压大于第二预设电压时,表征为电源输入端上电,而当电源输入端的输出电压小于第二预设电压时,表征为电源输入端掉电。电源检测电路40可以选用分压电阻、比较器及开关管来实现,以在电源输入端的输出电压大于第二预设电压时,也即电源输入端上电时,输出断电信号至供电保持控制电路20,使得供电保持控制电路20控制储能电路10与电源输出端断开电连接,从而使得接入的输入电源重新为后级负载供电,保证了后级负载在重新上电后的正常工作。In this embodiment, the power supply input terminal can be connected with the power supply output terminal, so that the input power supply can provide normal power supply for the subsequent load. When the power supply input terminal is powered off, the energy storage circuit 10 will provide Temporary power supply. The second preset voltage is the minimum voltage when the system can work normally. For example, when the voltage at the input terminal of the power supply is greater than 5V, the post-stage load processor can work normally, but when the voltage at the input terminal of the power supply is less than 5V, the post-stage load processor cannot If it is working normally, then 5V can be set as the second preset voltage. In this way, when the output voltage of the power input terminal is greater than the second preset voltage, it is characterized as the power input terminal is powered on, and when the output voltage of the power input terminal is lower than the second preset voltage When the voltage is set, it is characterized by power failure at the input terminal of the power supply. The power supply detection circuit 40 can be realized by selecting a voltage dividing resistor, a comparator and a switch tube, so that when the output voltage of the power supply input terminal is greater than the second preset voltage, that is, when the power supply input terminal is powered on, the power-off signal is output to the power supply maintenance control Circuit 20, so that the power supply maintenance control circuit 20 controls the energy storage circuit 10 to disconnect the electrical connection with the output end of the power supply, so that the connected input power supply supplies power to the subsequent load again, ensuring the normal operation of the subsequent load after power-on again .

可选地,所述电源检测电路40还用于在所述电源输入端的输出电压小于第二预设电压时,输出供电保持信号至所述供电保持控制电路20,以使所述供电保持控制电路20控制所述储能电路10与所述电源输出端电连接,以使所述储能电路10为用电负载供电。Optionally, the power supply detection circuit 40 is further configured to output a power supply maintenance signal to the power supply maintenance control circuit 20 when the output voltage of the power input terminal is lower than a second preset voltage, so that the power supply maintenance control circuit 20 controls the electrical connection between the energy storage circuit 10 and the output end of the power supply, so that the energy storage circuit 10 supplies power to the electric load.

在本实施例中,电源检测电路40可以选用分压电阻、比较器及开关管来实现,以在电源输入端的输出电压小于第二预设电压时,也即电源输入端掉电时,输出供电保持信号至供电保持控制电路20,使得供电保持控制电路20控制储能电路10与电源输出端电连接,从而使得储能电路10为后级负载临时供电,以使后级负载处理器能够完成数据储存的工作。电源检测电路40可以利用比较器来实现供电保持信号和断电信号的输出,将第二预设电压作为基准电压接入比较器,从而使得电源检测电路40能够在电源输入端的输出电压小于第二预设电压时输出供电保持信号,以及在电源输入端的输出电压大于第二预设电压时输出断电信号,从而实现对供电保持控制电路20的控制。In this embodiment, the power supply detection circuit 40 can be implemented by selecting a voltage dividing resistor, a comparator and a switch tube, so that when the output voltage of the power supply input terminal is lower than the second preset voltage, that is, when the power supply input terminal is powered off, the output power supply Keep the signal to the power supply maintenance control circuit 20, so that the power supply maintenance control circuit 20 controls the energy storage circuit 10 to be electrically connected to the output end of the power supply, so that the energy storage circuit 10 temporarily supplies power to the subsequent load, so that the subsequent load processor can complete the data Stored work. The power detection circuit 40 can use the comparator to realize the output of the power supply maintenance signal and the power-off signal, and connect the second preset voltage to the comparator as a reference voltage, so that the output voltage of the power detection circuit 40 at the power input terminal can be lower than the second The power supply maintenance signal is output when the voltage is preset, and the power-off signal is output when the output voltage of the power input terminal is greater than the second preset voltage, so as to realize the control of the power supply maintenance control circuit 20 .

可选地,所述电源检测电路40的供电端与所述电源输出端连接,所述电源检测电路40还用于在所述供电端掉电时,输出断电信号至所述供电保持控制电路20,以使所述供电保持控制电路20控制所述储能电路10与所述电源输出端断开电连接,以使所述储能电路10停止为用电负载供电。Optionally, the power supply terminal of the power supply detection circuit 40 is connected to the power supply output terminal, and the power supply detection circuit 40 is also used to output a power-off signal to the power supply maintenance control circuit when the power supply terminal is powered off 20, so that the power supply maintenance control circuit 20 controls the energy storage circuit 10 to disconnect the electrical connection with the output end of the power supply, so that the energy storage circuit 10 stops supplying power to the electric load.

在本实施例中,电源检测电路40的供电端与电源输出端连接,当供电端掉电时,电源检测电路40无法正常工作,此时电源检测电路40可以视为输出了低电平的断电信号至供电保持控制电路20,从而控制储能电路10停止为用电负载供电。本实施例中将电源输出端与电源检测电路40的供电端连接,利用接入的输入电源作为供电电源,无需额外设置电源为电源检测电路40供电。同时,还能够在供电端掉电时,例如当供电保持控制电路20控制储能电路10与电源输出端电连接,而储能电路10电能为0时,此时电源检测电路40无法正常工作,电源检测电路40可以视为输出了低电平的断电信号至供电保持控制电路20,从而控制储能电路10断开与电源输出端的电连接,避免在系统重新上电时出现异常,提高了掉电检测和供电保持功能电路的安全性。In this embodiment, the power supply end of the power detection circuit 40 is connected to the power output end. When the power supply end is powered off, the power detection circuit 40 cannot work normally. At this time, the power detection circuit 40 can be regarded as outputting a low-level interrupt The electric signal is sent to the power supply maintenance control circuit 20, thereby controlling the energy storage circuit 10 to stop supplying power to the electric load. In this embodiment, the output end of the power supply is connected to the power supply end of the power detection circuit 40 , and the input power is used as the power supply, and no additional power supply is required to supply power to the power detection circuit 40 . At the same time, when the power supply terminal is powered off, for example, when the power supply maintenance control circuit 20 controls the energy storage circuit 10 to be electrically connected to the output terminal of the power supply, and the energy storage circuit 10 has 0 electric energy, the power supply detection circuit 40 cannot work normally at this moment. The power detection circuit 40 can be regarded as outputting a low-level power-off signal to the power supply maintenance control circuit 20, so as to control the energy storage circuit 10 to disconnect the electrical connection with the output terminal of the power supply, avoid abnormalities when the system is powered on again, and improve the Brownout detection and power retention functions for circuit safety.

参照图1至图4,在一实施例中,所述掉电检测和供电保持功能电路还包括:Referring to Figures 1 to 4, in one embodiment, the power-down detection and power supply maintenance function circuit also includes:

电源转换电路50,所述电源转换电路50的输入端与电源输入端连接,所述电源转换电路50的输出端分别与所述电源输出端及储能电路10的输入端连接,所述电源转换电路50用于将接入的输入电源转换为供电电压后输出;Power conversion circuit 50, the input end of described power conversion circuit 50 is connected with power input end, the output end of described power conversion circuit 50 is connected with described power output end and the input end of energy storage circuit 10 respectively, and described power conversion circuit The circuit 50 is used to convert the connected input power into a power supply voltage and then output it;

所述电源检测电路40具有第一检测端及第二检测端,所述电源检测电路40的第一检测端与所述电源输入端连接,所述电源检测电路40的第二检测端与所述电源转换电路50的输出端连接;The power detection circuit 40 has a first detection terminal and a second detection terminal, the first detection terminal of the power detection circuit 40 is connected to the power input terminal, and the second detection terminal of the power detection circuit 40 is connected to the power input terminal. The output terminal of the power conversion circuit 50 is connected;

所述电源检测电路40用于检测所述电源输入端的输出电压与所述电源转换电路50的输出电压,并在所述电源输入端的输出电压小于第二预设电压,和/或所述电源转换电路50的输出电压小于第三预设电压时,输出供电保持信号至所述供电保持控制电路20,以使所述供电保持控制电路20控制所述储能电路10与所述电源输出端电连接,以使所述储能电路10为用电负载供电。The power detection circuit 40 is used to detect the output voltage of the power input terminal and the output voltage of the power conversion circuit 50, and the output voltage at the power input terminal is less than a second preset voltage, and/or the power conversion When the output voltage of the circuit 50 is lower than the third preset voltage, output a power supply maintenance signal to the power supply maintenance control circuit 20, so that the power supply maintenance control circuit 20 controls the electrical connection between the energy storage circuit 10 and the output terminal of the power supply , so that the energy storage circuit 10 supplies power to the electric load.

在本实施例中,电源转换电路50可以选用DC-DC电压变换电路、AC-DC电压变换电路等电路来实现,电源转换电路50根据实际的使用需求选用对应的电源转换电路50,例如应用于工业通讯时,电源输入端接入的输入电源通常为24V,应用于通信类设备时,电源输入端接入的输入电源通常为48V,而掉电时需要进行数据保存等操作的处理器基本都小于5V,因此,电源转换电路50可以根据实际的使用需求,选用对应的电源转换电路50以将输入电源转化为处理器所需的供电电源。电源检测电路40可以由两个电压检测电路组成,每个电压检测电路可以选用分压电阻、比较器及开关管来实现,电源检测电路40的两个检测端分别检测电源输入端的输出电压和电源转换电路50的输出电压。如此,当电源输入端出现异常掉电,或电源转换电路50故障导致输出电压异常时,也即电源输入端的输出电压小于第二预设电压,或电源转换电路50的输出电压小于第三预设电压时,电源检测电路40则输出供电保持信号至供电保持控制电路20,使得供电保持控制电路20控制储能电路10与电源输出端电连接,从而使得储能电路10为后级负载临时供电,以使后级负载处理器能够在异常掉电时完成数据储存的工作。In this embodiment, the power conversion circuit 50 can be implemented by selecting a DC-DC voltage conversion circuit, an AC-DC voltage conversion circuit, etc., and the power conversion circuit 50 selects a corresponding power conversion circuit 50 according to actual usage requirements, for example, it is used in In industrial communication, the input power connected to the power input terminal is usually 24V. When it is applied to communication equipment, the input power connected to the power input terminal is usually 48V, and the processors that need to save data when the power is off are basically Therefore, the power conversion circuit 50 can select the corresponding power conversion circuit 50 to convert the input power into the power supply required by the processor according to the actual use requirements. The power detection circuit 40 can be made up of two voltage detection circuits, and each voltage detection circuit can be realized by selecting a voltage dividing resistor, a comparator and a switching tube. The two detection terminals of the power detection circuit 40 respectively detect the output voltage of the power input terminal and the The output voltage of the conversion circuit 50. In this way, when an abnormal power-down occurs at the input terminal of the power supply, or the failure of the power conversion circuit 50 causes an abnormal output voltage, that is, the output voltage at the input terminal of the power supply is lower than the second preset voltage, or the output voltage of the power conversion circuit 50 is lower than the third preset voltage. voltage, the power supply detection circuit 40 outputs a power supply maintenance signal to the power supply maintenance control circuit 20, so that the power supply maintenance control circuit 20 controls the electrical connection of the energy storage circuit 10 to the output terminal of the power supply, so that the energy storage circuit 10 temporarily supplies power to the subsequent load. In order to enable the post-load processor to complete the work of data storage during abnormal power failure.

可选地,所述电源检测电路40还用于在所述电源输入端的输出电压大于第二预设电压且所述电源转换电路50的输出电压大于第三预设电压时,输出断电信号至所述供电保持控制电路20,以使所述供电保持控制电路20控制所述储能电路10与所述电源输出端断开电连接,以使所述储能电路10停止为用电负载供电。Optionally, the power detection circuit 40 is further configured to output a power-off signal to The power supply maintenance control circuit 20 enables the power supply maintenance control circuit 20 to control the energy storage circuit 10 to disconnect the electrical connection with the output end of the power supply, so that the energy storage circuit 10 stops supplying power to the load.

可以理解的是,当电源输入端掉电后重新上电时,由于重新上电经过电源转换电路50的转换输出需要一定的时间,为了避免在建立稳定的供电电压之前,就控制储能电路10停止给后级负载处理器供电而造成数据保存失败等等问题,在本实施例中电源检测电路40还设有第二检测端与电源转换电路50的输出端连接。电源检测电路40在检测到电源输入端的输出电压大于第二预设电压且电源转换电路50的输出电压大于第三预设电压时,也即电源输入端与电源转换电路50都正常工作时,才输出断电信号至供电保持控制电路20,使得供电保持控制电路20控制储能电路10与所述电源输出端断开电连接,恢复为由接入的输入电源进行供电。如此,使得储能电路10在电源转换电路50建立了稳定的供电电压后才停止为后级负载处理器供电,能够避免因未正常建立供电就将储能电路10断开而造成的数据保存失败等问题,提高了掉电检测和供电保持功能电路的稳定性。It can be understood that when the power supply input terminal is powered off and then powered on again, since it takes a certain amount of time to convert the output of the power conversion circuit 50 after power on again, in order to avoid the need to control the energy storage circuit 10 before a stable power supply voltage is established, Stopping the power supply to the subsequent load processor will cause problems such as data storage failure. In this embodiment, the power detection circuit 40 also has a second detection terminal connected to the output terminal of the power conversion circuit 50 . When the power detection circuit 40 detects that the output voltage of the power input terminal is greater than the second preset voltage and the output voltage of the power conversion circuit 50 is greater than the third preset voltage, that is, when the power input terminal and the power conversion circuit 50 are both working normally, the Outputting a power-off signal to the power supply maintenance control circuit 20, so that the power supply maintenance control circuit 20 controls the energy storage circuit 10 to disconnect the electrical connection with the output terminal of the power supply, and resumes power supply by the input power supply connected. In this way, the energy storage circuit 10 stops supplying power to the subsequent load processor after the power conversion circuit 50 has established a stable power supply voltage, which can avoid data storage failures caused by disconnecting the energy storage circuit 10 when the power supply is not normally established. And other problems, improve the stability of power failure detection and power supply maintenance function circuit.

参照图1至图4,在一实施例中,所述第二预设电压大于所述电源转换电路50的欠压阈值;1 to 4, in one embodiment, the second preset voltage is greater than the undervoltage threshold of the power conversion circuit 50;

所述电源转换电路50的欠压阈值为所述电源转换电路50正常工作时的最小输入电压。The undervoltage threshold of the power conversion circuit 50 is the minimum input voltage when the power conversion circuit 50 works normally.

可以理解的是,为保证储能电路10给负载供电前,后级负载还可以维持在正常工作状态,需要设置电源输入端的输出电压掉到第二预设电压时,此时电源输入端的输出电压应大于电源转换电路50的欠压阈值,也即大于电源转换电路50正常工作时所需要的最低输入电压。如此设置,在电源输入端的输出电压掉到第二预设电压之前,电源转换电路50还依旧能够将电源输入端的输出电压转换为后级负载处理器所需要的供电电压,以保证储能电路10给后级负载处理器供电前的供电。而当电源输入端的输出电压小于第二预设电压后,电源转换电路50无法将电源输入端的输出电压转换为后级负载处理器所需要的供电电压,也即电源转换电路50无法正常工作。换而言之,电源检测电路40能够在电源转换电路50无法正常工作前,提前输出供电保持信号至供电保持控制电路20,以控制储能电路10和电源输出端连通,使得电源转换电路50的输出端能够在储能电路10供电后才掉电,保障了后级负载处理器的供电状态,使得后级负载处理器能够及时正常地进行掉电储存,提高了掉电检测和供电保持功能电路的稳定性。It can be understood that, in order to ensure that the subsequent load can still be maintained in a normal working state before the energy storage circuit 10 supplies power to the load, it is necessary to set the output voltage at the input terminal of the power supply when the output voltage at the input terminal of the power supply drops to the second preset voltage. It should be greater than the undervoltage threshold of the power conversion circuit 50 , that is, greater than the minimum input voltage required by the power conversion circuit 50 for normal operation. In this way, before the output voltage at the input terminal of the power supply drops to the second preset voltage, the power conversion circuit 50 can still convert the output voltage at the input terminal of the power supply to the power supply voltage required by the post-stage load processor, so as to ensure that the energy storage circuit 10 Power supply before powering the post-load processor. And when the output voltage of the power input terminal is lower than the second preset voltage, the power conversion circuit 50 cannot convert the output voltage of the power input terminal to the power supply voltage required by the subsequent load processor, that is, the power conversion circuit 50 cannot work normally. In other words, the power detection circuit 40 can output the power supply maintenance signal to the power supply maintenance control circuit 20 in advance before the power conversion circuit 50 fails to work normally, so as to control the connection between the energy storage circuit 10 and the output terminal of the power supply, so that the power conversion circuit 50 The output end can be powered off after the energy storage circuit 10 supplies power, which ensures the power supply state of the subsequent load processor, enables the subsequent load processor to perform power-down storage in time and normally, and improves the power-down detection and power supply maintenance function circuit. stability.

参照图1至图4,在一实施例中,所述电源检测电路40包括:1 to 4, in one embodiment, the power detection circuit 40 includes:

信号输出电路,所述信号输出电路的输出端与所述供电保持控制电路20的受控端连接;A signal output circuit, the output end of the signal output circuit is connected to the controlled end of the power supply maintenance control circuit 20;

第一检测电路,所述第一检测电路的检测端与所述电源输入端连接,所述第一检测电路的输出端与所述信号输出电路的第一受控端连接,所述第一检测电路用于检测所述电源输入端的输出电压,并在所述电源输入端的输出电压小于第二预设电压时,输出第一掉电信号至所述信号输出电路,以及在所述电源输入端的输出电压大于第二预设电压时,输出第一上电信号至所述信号输出电路;A first detection circuit, the detection terminal of the first detection circuit is connected to the input terminal of the power supply, the output terminal of the first detection circuit is connected to the first controlled terminal of the signal output circuit, and the first detection circuit The circuit is used to detect the output voltage of the input terminal of the power supply, and when the output voltage of the input terminal of the power supply is less than the second preset voltage, output the first power-down signal to the signal output circuit, and output at the input terminal of the power supply outputting a first power-on signal to the signal output circuit when the voltage is greater than the second preset voltage;

第二检测电路,所述第二检测电路的检测端与所述电源转换电路50的输出端连接,所述第二检测电路的输出端与所述信号输出电路的第二受控端连接,所述第二检测电路用于检测所述电源转换电路50的输出电压,并在所述电源转换电路50的输出电压小于第三预设电压时,输出第二掉电信号至所述信号输出电路,以及在所述电源转换电路50的输出电压大于第三预设电压时,输出第二上电信号至所述信号输出电路;A second detection circuit, the detection end of the second detection circuit is connected to the output end of the power conversion circuit 50, the output end of the second detection circuit is connected to the second controlled end of the signal output circuit, the The second detection circuit is used to detect the output voltage of the power conversion circuit 50, and output a second power-down signal to the signal output circuit when the output voltage of the power conversion circuit 50 is less than a third preset voltage, and outputting a second power-on signal to the signal output circuit when the output voltage of the power conversion circuit 50 is greater than a third preset voltage;

所述信号输出电路用于在接收到第一掉电信号和/或第二掉电信号时,输出供电保持信号至所述供电保持控制电路20,以使所述供电保持控制电路20控制所述储能电路10与所述电源输出端电连接,以使所述储能电路10为用电负载供电;以及,The signal output circuit is configured to output a power supply maintenance signal to the power supply maintenance control circuit 20 when receiving the first power down signal and/or the second power down signal, so that the power supply maintenance control circuit 20 controls the The energy storage circuit 10 is electrically connected to the output terminal of the power supply, so that the energy storage circuit 10 supplies power to an electric load; and,

所述信号输出电路还用于在接收到第一上电信号和第二上电信号时,输出断电信号至所述供电保持控制电路20,以使所述供电保持控制电路20控制所述储能电路10与所述电源输出端断开电连接,以使所述储能电路10停止为用电负载供电。The signal output circuit is also configured to output a power-off signal to the power supply maintenance control circuit 20 when receiving the first power-on signal and the second power-on signal, so that the power supply maintenance control circuit 20 controls the storage The energy storage circuit 10 is electrically disconnected from the output terminal of the power supply, so that the energy storage circuit 10 stops supplying power to the electric load.

参照图4,图4为掉电检测和供电保持功能电路一实施例的电路结构示意图,在本实施例中,电源检测电路40由信号输出电路、第一检测电路及第二检测电路组成,其中,信号输出电路由开关管Q1、Q2及第七电阻R7组成,第七电阻的一端与电源输出端连接,另一端与供电保持控制电路20的受控端连接,当开关管Q1及Q2都导通时,供电保持控制电路20的受控端被拉低为低电平,也即输出断电信号至供电保持控制电路20。当开关管Q1或Q2中的一个关断时,供电保持控制电路20的受控端为高电平,也即输出供电保持信号至供电保持控制电路20。Referring to Fig. 4, Fig. 4 is a schematic circuit structure diagram of an embodiment of a power-down detection and power supply maintenance function circuit. In this embodiment, the power detection circuit 40 is composed of a signal output circuit, a first detection circuit and a second detection circuit, wherein , the signal output circuit is composed of switch tubes Q1, Q2 and the seventh resistor R7, one end of the seventh resistor is connected to the output terminal of the power supply, and the other end is connected to the controlled terminal of the power supply maintenance control circuit 20, when the switch tubes Q1 and Q2 are both conducting When on, the controlled terminal of the power supply maintenance control circuit 20 is pulled down to a low level, that is, a power-off signal is output to the power supply maintenance control circuit 20 . When one of the switch tubes Q1 or Q2 is turned off, the controlled terminal of the power supply maintenance control circuit 20 is at a high level, that is, outputs a power supply maintenance signal to the power supply maintenance control circuit 20 .

可选地,所述第一检测电路包括第一电阻R1、第二电阻R2、第三电阻R3、第四电阻R4、第五电阻R5、第六电阻R6及第一比较器U1,所述第一电阻R1的第一端与所述电源输入端连接,所述第一电阻R1的第二端与所述第二电阻R2的第一端连接,所述第二电阻R2的第二端接地,所述第一电阻R1的第二端还与所述第一比较器U1的正向输入端连接,所述第三电阻R3的第一端接地,所述第三电阻R3的第二端与所述第四电阻R4第一端连接,所述第四电阻R4第二端与电源输出端连接,所述第三电阻R3与所述第四电阻R4的公共端与所述第一比较器U1的反向输入端连接,所述第一比较器U1的供电端与所述第四电阻R4的第二端连接,所述第一比较器U1的输出端与所述信号输出电路的第一受控端连接,所述第五电阻R5并联设置于所述第一比较器U1的输出端与正向输入端之间,所述第六电阻R6并联设置于所述第一比较器U1的供电端与输出端之间。Optionally, the first detection circuit includes a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6 and a first comparator U1. The first end of a resistor R1 is connected to the power input end, the second end of the first resistor R1 is connected to the first end of the second resistor R2, and the second end of the second resistor R2 is grounded, The second terminal of the first resistor R1 is also connected to the positive input terminal of the first comparator U1, the first terminal of the third resistor R3 is grounded, and the second terminal of the third resistor R3 is connected to the positive input terminal of the first comparator U1. The first end of the fourth resistor R4 is connected, the second end of the fourth resistor R4 is connected to the output end of the power supply, the common end of the third resistor R3 and the fourth resistor R4 is connected to the first comparator U1 The reverse input end is connected, the power supply end of the first comparator U1 is connected to the second end of the fourth resistor R4, and the output end of the first comparator U1 is connected to the first controlled signal output circuit of the signal output circuit. The fifth resistor R5 is connected in parallel between the output terminal and the positive input terminal of the first comparator U1, and the sixth resistor R6 is connected in parallel between the power supply terminal and the positive input terminal of the first comparator U1. between the output terminals.

参照图4,第一检测电路由第一比较器U1、电阻R1~R6及电容C1组成,第一电容C1和第一电阻R1形成RC滤波电路,滤除输入电源VIN上的杂散异常波形,避免误触发掉电欠压报警。第一比较器U1的正向输入端与第一电阻R1和第二电阻R2的公共端连接,也即为电源输入的检测端,比较器U1的反向输入端与第三电阻R3和第四电阻R4的公共端连接,也即第二预设电压参考端,电源输入端的输出电压VIN经过R1和R2分压后的值为Vref1=VIN*R2/(R1+R2),电源输出端的电压经第三电阻R3及第四电阻R4分压后的电压即为第二预设电压Vref2=VCC2*R3/(R3+R4),可以通过调节第三电阻R3及第四电阻R4的阻值来调节第二预设电压,当Vref1小于Vref2时,第一比较器U1输出低电平的第一掉电信号,使第一开关管Q1关断。当Vref1大于Vref2时,第一比较器U1输出高电平的第一上电信号,使第一开关管Q1导通。Referring to Fig. 4, the first detection circuit is composed of a first comparator U1, resistors R1-R6, and a capacitor C1. The first capacitor C1 and the first resistor R1 form an RC filter circuit to filter out spurious abnormal waveforms on the input power supply VIN, Avoid false triggering of power-down and under-voltage alarms. The positive input terminal of the first comparator U1 is connected to the common terminal of the first resistor R1 and the second resistor R2, that is, the detection terminal of the power input, and the negative input terminal of the comparator U1 is connected to the third resistor R3 and the fourth resistor R3. The common terminal of the resistor R4 is connected, that is, the second preset voltage reference terminal. The output voltage VIN of the power supply input terminal is divided by R1 and R2, and the value is Vref1=VIN*R2/(R1+R2), and the voltage of the power supply output terminal is obtained by The voltage divided by the third resistor R3 and the fourth resistor R4 is the second preset voltage Vref2=VCC2*R3/(R3+R4), which can be adjusted by adjusting the resistance values of the third resistor R3 and the fourth resistor R4 The second preset voltage, when Vref1 is less than Vref2 , the first comparator U1 outputs a low-level first power-down signal to turn off the first switch tube Q1 . When Vref1 is greater than Vref2, the first comparator U1 outputs a high-level first power-on signal to turn on the first switch transistor Q1.

可选地,所述第二检测电路包括第八电阻R8、第九电阻R9、第十电阻R10、第十一电阻R11、第十二电阻R12、第十三电阻R13及第二比较器U2,所述第八电阻R8的第一端与所述电源转换电路50的输出端连接,所述第八电阻R8的第二端与所述第九电阻R9的第一端连接,所述第九电阻R9的第二端接地,所述第八电阻R8的第二端还与所述第二比较器U2的正向输入端连接,所述第十电阻R10的第一端接地,所述第十电阻R10的第二端与所述第十一电阻R11第一端连接,所述第十一电阻R11第二端与电源输出端连接,所述第十电阻R10与所述第十一电阻R11的公共端与所述第二比较器U2的反向输入端连接,所述第二比较器U2的输出端与所述信号输出电路的第二受控端连接,所述第十二电阻R12的第一端与所述电源输出端连接,所述第十二电阻R12的第二端与所述第二比较器U2的输出端连接,所述第十三电阻R13并联设置于所述第二比较器U2的输出端与正向输入端之间。Optionally, the second detection circuit includes an eighth resistor R8, a ninth resistor R9, a tenth resistor R10, an eleventh resistor R11, a twelfth resistor R12, a thirteenth resistor R13, and a second comparator U2, The first end of the eighth resistor R8 is connected to the output end of the power conversion circuit 50, the second end of the eighth resistor R8 is connected to the first end of the ninth resistor R9, and the ninth resistor The second end of R9 is grounded, the second end of the eighth resistor R8 is also connected to the positive input end of the second comparator U2, the first end of the tenth resistor R10 is grounded, and the tenth resistor R10 is grounded. The second end of R10 is connected to the first end of the eleventh resistor R11, the second end of the eleventh resistor R11 is connected to the output end of the power supply, and the common connection between the tenth resistor R10 and the eleventh resistor R11 is terminal is connected with the inverting input terminal of the second comparator U2, the output terminal of the second comparator U2 is connected with the second controlled terminal of the signal output circuit, and the first of the twelfth resistor R12 end is connected to the output end of the power supply, the second end of the twelfth resistor R12 is connected to the output end of the second comparator U2, and the thirteenth resistor R13 is connected in parallel to the second comparator U2 Between the output terminal and the positive input terminal.

第二检测电路由第二比较器U2及电阻R8~R13组成,第二比较器U2和第一比较器U1可以是独立的两个比较器芯片,也可以是直接使用集成双比较器的单个芯片来实现。第十三电阻R13用于设置比较器的磁滞阈值以消除抖动和干扰,第二比较器U2的正向输入端与第八电阻R8和第九电阻R9的公共端连接,也即为电源转换电路50的输出电源检测端,电源转换电路50的输出电压VCC1经过第八电阻R8和第九电阻R9分压后的值为Vref3=VCC1*R9/(R8+R9),第二比较器U2的反向输入端与第十电阻R10和第十一电阻R11的公共端连接,也即第三预设电压参考端,电源输出端的电压经第十电阻R10及第十一电阻R11分压后的电压即为第三预设电压Vref4=VCC2*R10/(R10+R11),可以通过调节第十电阻R10及第十一电阻R11的阻值来调节第三预设电压。与第一检测电路同理,当Vref3小于Vref4时,第二比较器U2输出低电平的第二掉电信号,使第二开关管Q2关断。当Vref3大于Vref4时,第二比较器U2输出高电平的第二上电信号,使第二开关管Q2导通。如此设置,当电源输入端与电源转换电路50的输出电压均正常时,信号输出电路才输出断电信号,使得储能电路10在电源转换电路50建立了稳定的供电电压后才停止为后级负载处理器供电,能够避免因未正常建立供电就将储能电路10断开而造成的数据保存失败等问题。同时,当电源输入端与电源转换电路50任意一个的输出电压异常时,信号输出电路就会输出供电保持信号,使得储能电路10为后级负载处理器供电,能够在多种异常情况下切换至储能电路10供电,提高了掉电检测和供电保持功能电路的稳定性。此外,可以理解的是,现有的掉电存储方案中,有的采用两个电阻分压去控制Mos管的开关以触发掉电信号,但由于Mos的Vgs(th)_min和Vgs(th)_max通常有2V误差范围,再经两个分压电阻倍数折算到电路后,掉电欠压触发点误差较大,容易导致电路状态不稳定问题。因此,在本实施例中,第一检测电路及第二检测电路均选用了比较器及电阻组成,器件成本较低,且能够根据需求更高精度地设置掉电欠压触发点,提高了电路状态的稳定性。The second detection circuit is composed of the second comparator U2 and resistors R8~R13. The second comparator U2 and the first comparator U1 can be two independent comparator chips, or a single chip that directly uses integrated dual comparators. to realise. The thirteenth resistor R13 is used to set the hysteresis threshold of the comparator to eliminate jitter and interference. The positive input terminal of the second comparator U2 is connected to the common terminal of the eighth resistor R8 and the ninth resistor R9, that is, power conversion At the output power detection terminal of the circuit 50, the value of the output voltage VCC1 of the power conversion circuit 50 after being divided by the eighth resistor R8 and the ninth resistor R9 is Vref3=VCC1*R9/(R8+R9), and the value of the second comparator U2 The reverse input terminal is connected to the common terminal of the tenth resistor R10 and the eleventh resistor R11, that is, the third preset voltage reference terminal, and the voltage at the output terminal of the power supply is divided by the tenth resistor R10 and the eleventh resistor R11. That is, the third preset voltage Vref4=VCC2*R10/(R10+R11), the third preset voltage can be adjusted by adjusting the resistance values of the tenth resistor R10 and the eleventh resistor R11. Similar to the first detection circuit, when Vref3 is smaller than Vref4, the second comparator U2 outputs a low-level second power-down signal to turn off the second switching tube Q2. When Vref3 is greater than Vref4, the second comparator U2 outputs a high-level second power-on signal to turn on the second switch transistor Q2. In this way, when the output voltages of the power input terminal and the power conversion circuit 50 are both normal, the signal output circuit outputs a power-off signal, so that the energy storage circuit 10 stops working as a subsequent stage after the power conversion circuit 50 has established a stable power supply voltage. The power supply of the load processor can avoid problems such as data storage failure caused by disconnecting the energy storage circuit 10 before the power supply is normally established. At the same time, when the output voltage of any one of the power input terminal and the power conversion circuit 50 is abnormal, the signal output circuit will output a power supply holding signal, so that the energy storage circuit 10 can supply power for the subsequent load processor, and can switch under various abnormal conditions. Supplying power to the energy storage circuit 10 improves the stability of the power failure detection and power supply maintenance functional circuit. In addition, it can be understood that some of the existing power-down storage schemes use two resistors to divide the voltage to control the switch of the Mos tube to trigger the power-down signal, but due to the Vgs(th)_min and Vgs(th) of the Mos _max usually has a 2V error range, and after the multiples of the two voltage divider resistors are converted to the circuit, the error of the trigger point of power failure and undervoltage is relatively large, which may easily lead to unstable circuit status. Therefore, in this embodiment, the first detection circuit and the second detection circuit are composed of comparators and resistors, the device cost is low, and the power-down and undervoltage trigger points can be set with higher precision according to the requirements, which improves the circuit State stability.

参照图4,在一实施例中,所述储能电压检测电路30包括第十四电阻R14、第十五电阻R15、第十六电阻R16、第三比较器U3及第三开关管Q3,所述第十四电阻R14的第一端与所述储能电路10的输出端连接,所述第十四电阻R14的第二端与所述第十五电阻R15的第一端连接,所述第十五电阻R15的第二端接地,所述第三比较器U3的反向输入端与所述第十四电阻R14的第二端连接,所述第三比较器U3的输出端与所述第三开关管Q3的受控端连接,所述第十六电阻R16的第一端与所述储能电路10的输出端连接,所述第十六电阻R16的第二端与所述第三比较器U3的输出端连接,所述第三开关管Q3的第一端与所述供电保持控制电路20的受控端连接,所述第三开关管Q3的第二端接地。Referring to FIG. 4, in one embodiment, the energy storage voltage detection circuit 30 includes a fourteenth resistor R14, a fifteenth resistor R15, a sixteenth resistor R16, a third comparator U3 and a third switch tube Q3, so The first end of the fourteenth resistor R14 is connected to the output end of the energy storage circuit 10, the second end of the fourteenth resistor R14 is connected to the first end of the fifteenth resistor R15, and the first end of the fifteenth resistor R15 is connected. The second end of the fifteenth resistor R15 is grounded, the inverting input end of the third comparator U3 is connected to the second end of the fourteenth resistor R14, and the output end of the third comparator U3 is connected to the second end of the fourth comparator U3. The controlled end of the three switching tubes Q3 is connected, the first end of the sixteenth resistor R16 is connected to the output end of the energy storage circuit 10, and the second end of the sixteenth resistor R16 is compared with the third The output terminal of the switch U3 is connected, the first terminal of the third switching tube Q3 is connected to the controlled terminal of the power supply maintenance control circuit 20, and the second terminal of the third switching tube Q3 is grounded.

参照图4,图4为掉电检测和供电保持功能电路一实施的电路结构示意图,图中的储能电路10由储能电容C2及第十八电阻R18组成,储能电容C2储存自电源输入端输入的电能,供电保持控制电路20由NMOS管Q4、PMOS管Q5及下拉电阻R17组成,当NMOS管Q4接收到高电平的供电保持信号时导通,拉低PMOS管Q5栅极端的电压,使得PMOS管Q5导通,从而使得储能电容C2与电源输出端电连接,以为后级负载处理器临时供电。储能电压检测电路30则由第三比较器U3、第十四电阻R14、第十五电阻R15、第十六电阻R16及NMOS管Q3组成,第三比较器U3为内部集成有电源参考源的比较器,内部集成参考源的电压值即第一预设电压值,当储能电路10的输出电压大于第一预设电压值时,第三比较器比较器U3则输出低电平控制NMOS管Q3关断,此时NMOS管Q4的栅极端则接收到高电平的供电保持信号导通。而当储能电路10的输出电压小于第一预设电压值时,第三比较器比较器U3则输出高电平控制NMOS管Q3导通,从而拉低NMOS管Q4的栅极端的电压,也即输出断电信号至NMOS管Q4,使得NMOS管Q4关断,从而使得PMOS管Q5关断,使得储能电路10断开与电源输出端的连接,停止为后级负载处理器供电,以保证下次上电时系统可以正常启动。Referring to Fig. 4, Fig. 4 is a schematic diagram of a circuit structure of an implementation of a power failure detection and power supply maintenance function circuit. The energy storage circuit 10 in the figure is composed of an energy storage capacitor C2 and an eighteenth resistor R18, and the energy storage capacitor C2 is stored from the power input The electric energy input by the terminal, the power supply maintenance control circuit 20 is composed of NMOS transistor Q4, PMOS transistor Q5 and pull-down resistor R17, when the NMOS transistor Q4 receives a high-level power supply maintenance signal, it is turned on, and the voltage at the gate terminal of the PMOS transistor Q5 is pulled down , so that the PMOS transistor Q5 is turned on, so that the energy storage capacitor C2 is electrically connected to the output end of the power supply, so as to temporarily supply power to the subsequent load processor. The energy storage voltage detection circuit 30 is composed of a third comparator U3, a fourteenth resistor R14, a fifteenth resistor R15, a sixteenth resistor R16, and an NMOS transistor Q3. The third comparator U3 is integrated with a power reference source Comparator, the voltage value of the internal integrated reference source is the first preset voltage value, when the output voltage of the energy storage circuit 10 is greater than the first preset voltage value, the third comparator The comparator U3 outputs a low level to control the NMOS transistor Q3 is turned off, and at this time, the gate terminal of the NMOS transistor Q4 receives a high-level power supply to keep the signal turned on. And when the output voltage of the energy storage circuit 10 is less than the first preset voltage value, the third comparator U3 outputs a high level to control the NMOS transistor Q3 to turn on, thereby pulling down the voltage of the gate terminal of the NMOS transistor Q4, and also That is, the power-off signal is output to the NMOS transistor Q4, so that the NMOS transistor Q4 is turned off, so that the PMOS transistor Q5 is turned off, so that the energy storage circuit 10 is disconnected from the output terminal of the power supply, and the power supply for the subsequent load processor is stopped, so as to ensure The system can start normally when the power is turned on for the first time.

本发明还提出一种电子设备,包括处理器及如上述的掉电检测和供电保持功能电路;其中,The present invention also proposes an electronic device, including a processor and the above-mentioned power-down detection and power supply maintenance function circuit; wherein,

所述处理器的供电端与所述掉电检测和供电保持功能电路的电源输出端连接。The power supply end of the processor is connected with the power output end of the power failure detection and power supply maintenance function circuit.

可选地,所述处理器的信号接收端还与所述电源检测电路40的输出端连接,所述处理器用于在接收到所述电源检测电路40输出的供电保持信号时进行数据存储。Optionally, the signal receiving end of the processor is also connected to the output end of the power detection circuit 40 , and the processor is configured to store data when receiving the power supply hold signal output by the power detection circuit 40 .

在本实施例中,掉电检测和供电保持功能电路的电源输出端用于接入处理器,且处理器的信号接收端与掉电检测和供电保持功能电路中电源检测电路40的输出端连接,如此,当电源输入端掉电时,电源检测电路40输出供电保持信号,此时切换为储能电路10供电,同时处理器接收到供电保持信号时开始进行数据储存,使得处理器能够及时得知系统掉电并及时进行数据储存,避免了数据的丢失,提高了电子设备的稳定性和安全性。此外,该电子设备包括上述的掉电检测和供电保持功能电路,该掉电检测和供电保持功能电路的具体结构参照上述实施例,由于本电子设备采用了上述所有实施例的全部技术方案,因此至少具有上述实施例的技术方案所带来的所有有益效果,在此不再一一赘述。In this embodiment, the power supply output terminal of the power failure detection and power supply maintenance function circuit is used to connect to the processor, and the signal receiving terminal of the processor is connected to the output terminal of the power supply detection circuit 40 in the power failure detection and power supply maintenance function circuit In this way, when the power supply input end is powered off, the power supply detection circuit 40 outputs a power supply hold signal, and at this time switches to supply power to the energy storage circuit 10, and at the same time, the processor starts to store data when receiving the power supply hold signal, so that the processor can obtain the power supply in time. Notify the system of power failure and store data in time, avoiding data loss and improving the stability and safety of electronic equipment. In addition, the electronic device includes the above-mentioned power-down detection and power supply maintenance function circuit. The specific structure of the power-down detection and power supply maintenance function circuit refers to the above-mentioned embodiments. Since this electronic device adopts all the technical solutions of all the above-mentioned embodiments, it It has at least all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be described here one by one.

以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是在本发明的发明构思下,利用本发明说明书及附图内容所作的等效结构变换,或直接/间接运用在其他相关的技术领域均包括在本发明的专利保护范围内。The above is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Under the inventive concept of the present invention, the equivalent structural transformation made by using the description of the present invention and the contents of the accompanying drawings, or direct/indirect use All other relevant technical fields are included in the patent protection scope of the present invention.

Claims (13)

1. A power down detection and power supply retention function circuit, comprising:
the power supply output end is used for connecting an electric load;
a tank circuit;
the input end of the power supply holding control circuit is connected with the output end of the energy storage circuit, the output end of the power supply holding control circuit is connected with the power supply output end, and the power supply holding control circuit is used for controlling the energy storage circuit to be electrically connected with the power supply output end when the power supply holding control circuit is conducted;
energy storage voltage detection circuitry, energy storage voltage detection circuitry's sense terminal with energy storage circuitry's output is connected, energy storage voltage detection circuitry's output with power supply keeps control circuit's controlled end to be connected, energy storage voltage detection circuitry is used for detecting energy storage circuitry's output voltage, and when energy storage circuitry's output voltage is less than first predetermined voltage, control power supply keeps control circuit disconnection energy storage circuitry with electricity between the power output end is connected, so that energy storage circuitry stops to supply power for the power consumption load.
2. The power down detection and power supply retention functional circuit of claim 1, further comprising:
the power input end is connected with the power output end and used for being connected with an input power supply;
the power supply detection circuit, the sense terminal of power supply detection circuit with the power input end is connected, power supply detection circuit's output with power supply keeps control circuit's controlled end to be connected, power supply detection circuit is used for detecting the output voltage of power input end, and when power input end's output voltage is greater than the second and predetermines voltage, control power supply keeps control circuit disconnection energy storage circuit with electricity between the power output end is connected, so that energy storage circuit stops to supply power for the power consumption load.
3. The power-down detection and power-supply maintaining functional circuit of claim 2, wherein the power supply detection circuit is further configured to output a power-supply maintaining signal to the power-supply maintaining control circuit when the output voltage at the power supply input terminal is less than a second preset voltage, so that the power-supply maintaining control circuit controls the energy storage circuit to be electrically connected with the power supply output terminal, so that the energy storage circuit supplies power to an electrical load.
4. The power down detection and power supply maintaining function circuit as claimed in claim 2, wherein a power supply terminal of the power supply detection circuit is connected to the power supply output terminal, and the power supply detection circuit is further configured to output a power down signal to the power supply maintaining control circuit when the power supply terminal is powered down, so that the power supply maintaining control circuit controls the energy storage circuit to be electrically disconnected from the power supply output terminal, so that the energy storage circuit stops supplying power to an electrical load.
5. The power down detection and power supply retention functional circuit of claim 2, further comprising:
the input end of the power supply conversion circuit is connected with the power supply input end, the output end of the power supply conversion circuit is respectively connected with the power supply output end and the input end of the energy storage circuit, and the power supply conversion circuit is used for converting an input power supply which is accessed into a power supply voltage and then outputting the power supply voltage;
the power supply detection circuit is provided with a first detection end and a second detection end, the first detection end of the power supply detection circuit is connected with the power supply input end, and the second detection end of the power supply detection circuit is connected with the output end of the power supply conversion circuit;
the power supply detection circuit is used for detecting the output voltage of the power supply input end and the output voltage of the power supply conversion circuit, outputting a power supply holding signal to the power supply holding control circuit when the output voltage of the power supply input end is smaller than a second preset voltage and/or the output voltage of the power supply conversion circuit is smaller than a third preset voltage, so that the power supply holding control circuit controls the energy storage circuit to be electrically connected with the power supply output end, and the energy storage circuit supplies power for an electric load.
6. The power down detection and power supply maintenance functional circuit of claim 5, wherein the power supply detection circuit is further configured to output a power down signal to the power supply maintenance control circuit when the output voltage of the power supply input terminal is greater than a second preset voltage and the output voltage of the power conversion circuit is greater than a third preset voltage, so that the power supply maintenance control circuit controls the energy storage circuit to be electrically disconnected from the power supply output terminal, so that the energy storage circuit stops supplying power to an electrical load.
7. The power down detection and power supply retention function circuit of claim 5, wherein the second predetermined voltage is greater than an under-voltage threshold of the power conversion circuit;
the undervoltage threshold value of the power conversion circuit is the minimum input voltage of the power conversion circuit during normal operation.
8. The power down detection and power supply retention function circuit of claim 5, wherein the power supply detection circuit comprises:
the output end of the signal output circuit is connected with the controlled end of the power supply maintaining control circuit;
the detection end of the first detection circuit is connected with the power supply input end, the output end of the first detection circuit is connected with the first controlled end of the signal output circuit, the first detection circuit is used for detecting the output voltage of the power supply input end, outputting a first power-down signal to the signal output circuit when the output voltage of the power supply input end is smaller than a second preset voltage, and outputting a first power-up signal to the signal output circuit when the output voltage of the power supply input end is larger than the second preset voltage;
the detection end of the second detection circuit is connected with the output end of the power supply conversion circuit, the output end of the second detection circuit is connected with the second controlled end of the signal output circuit, the second detection circuit is used for detecting the output voltage of the power supply conversion circuit, outputting a second power-down signal to the signal output circuit when the output voltage of the power supply conversion circuit is smaller than a third preset voltage, and outputting a second power-up signal to the signal output circuit when the output voltage of the power supply conversion circuit is larger than the third preset voltage;
the signal output circuit is used for outputting a power supply maintaining signal to the power supply maintaining control circuit when receiving a first power down signal and/or a second power down signal, so that the power supply maintaining control circuit controls the energy storage circuit to be electrically connected with the power supply output end, and the energy storage circuit supplies power to an electric load; and the number of the first and second groups,
the signal output circuit is further used for outputting a power-off signal to the power supply maintaining control circuit when receiving the first power-on signal and the second power-on signal, so that the power supply maintaining control circuit controls the energy storage circuit to be electrically disconnected from the power output end, and the energy storage circuit stops supplying power to an electric load.
9. The power failure detection and power supply maintaining function circuit as claimed in claim 8, wherein the first detection circuit comprises a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor and a first comparator, a first end of the first resistor is connected to the power supply input terminal, a second end of the first resistor is connected to the first end of the second resistor, a second end of the second resistor is grounded, a second end of the first resistor is further connected to a forward input terminal of the first comparator, a first end of the third resistor is grounded, a second end of the third resistor is connected to a first end of the fourth resistor, a second end of the fourth resistor is connected to a power supply output terminal, a common end of the third resistor and the fourth resistor is connected to an inverting input terminal of the first comparator, a power supply terminal of the first comparator is connected to a second end of the fourth resistor, an output terminal of the first comparator is connected to a first controlled terminal of the signal output circuit, a common end of the fifth resistor is connected in parallel between the first controlled terminal of the first comparator and the sixth terminal, and the forward output terminal of the first comparator is connected in parallel to the power supply output terminal of the signal output circuit.
10. The power down detection and power supply maintenance functional circuit according to claim 8, wherein the second detection circuit includes an eighth resistor, a ninth resistor, a tenth resistor, an eleventh resistor, a twelfth resistor, a thirteenth resistor and a second comparator, a first end of the eighth resistor is connected to the output terminal of the power conversion circuit, a second end of the eighth resistor is connected to the first end of the ninth resistor, a second end of the ninth resistor is grounded, a second end of the eighth resistor is further connected to a positive input terminal of the second comparator, a first end of the tenth resistor is grounded, a second end of the tenth resistor is connected to the first end of the eleventh resistor, a second end of the eleventh resistor is connected to a power output terminal, a common end of the tenth resistor and the eleventh resistor is connected to a negative input terminal of the second comparator, an output terminal of the second comparator is connected to the second controlled terminal of the signal output circuit, a first end of the twelfth resistor is connected to the power output terminal, a second end of the twelfth resistor is connected to the thirteenth output terminal of the second comparator, and the positive output terminal of the second comparator is connected in parallel with the positive input terminal of the second comparator.
11. The power failure detection and power supply maintaining function circuit as claimed in claim 1, wherein the energy storage voltage detection circuit includes a fourteenth resistor, a fifteenth resistor, a sixteenth resistor, a third comparator and a third switching tube, a first end of the fourteenth resistor is connected to the output terminal of the energy storage circuit, a second end of the fourteenth resistor is connected to the first end of the fifteenth resistor, a second end of the fifteenth resistor is grounded, an inverting input terminal of the third comparator is connected to the second end of the fourteenth resistor, an output terminal of the third comparator is connected to the controlled terminal of the third switching tube, a first end of the sixteenth resistor is connected to the output terminal of the energy storage circuit, a second end of the sixteenth resistor is connected to the output terminal of the third comparator, a first end of the third switching tube is connected to the controlled terminal of the power supply maintaining control circuit, and a second end of the third switching tube is grounded.
12. An electronic device comprising a processor and a power down detection and power supply retention function circuit as claimed in any one of claims 1 to 11; wherein,
and the power supply end of the processor is connected with the power supply output end of the power failure detection and power supply maintaining functional circuit.
13. The electronic device of claim 12, wherein the signal receiving end of the processor is further connected to the output end of the power detection circuit, and the processor is configured to perform data storage when receiving the power supply holding signal output by the power detection circuit.
CN202211330884.8A 2022-10-26 2022-10-26 Power-down detection and power supply maintenance function circuit and electronic equipment Pending CN115576406A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211330884.8A CN115576406A (en) 2022-10-26 2022-10-26 Power-down detection and power supply maintenance function circuit and electronic equipment
PCT/CN2023/106993 WO2024087737A1 (en) 2022-10-26 2023-07-12 Circuit having power failure detection and power supply holding functions, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211330884.8A CN115576406A (en) 2022-10-26 2022-10-26 Power-down detection and power supply maintenance function circuit and electronic equipment

Publications (1)

Publication Number Publication Date
CN115576406A true CN115576406A (en) 2023-01-06

Family

ID=84586671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211330884.8A Pending CN115576406A (en) 2022-10-26 2022-10-26 Power-down detection and power supply maintenance function circuit and electronic equipment

Country Status (2)

Country Link
CN (1) CN115576406A (en)
WO (1) WO2024087737A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117111534A (en) * 2023-10-16 2023-11-24 长沙先度科技有限公司 An automatic power-on control circuit and its control method
WO2024087737A1 (en) * 2022-10-26 2024-05-02 深圳市汇川技术股份有限公司 Circuit having power failure detection and power supply holding functions, and electronic device
CN119010121A (en) * 2024-10-24 2024-11-22 杭州微慕科技有限公司 Control method and control device of energy storage system and energy storage system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007259564A (en) * 2006-03-22 2007-10-04 Fuji Electric Systems Co Ltd Distributed power system
CN107681885B (en) * 2017-09-12 2019-09-17 深圳市瑞康宏业科技开发有限公司 A kind of power-down retaining circuit and method
CN112003464A (en) * 2020-06-30 2020-11-27 中国航发南方工业有限公司 Power-down holding circuit for switching power supply of airborne electronic equipment
CN216599117U (en) * 2021-12-09 2022-05-24 深圳市汇川技术股份有限公司 Power-down storage circuit, power-down storage device and PLC equipment
CN115576406A (en) * 2022-10-26 2023-01-06 深圳市汇川技术股份有限公司 Power-down detection and power supply maintenance function circuit and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024087737A1 (en) * 2022-10-26 2024-05-02 深圳市汇川技术股份有限公司 Circuit having power failure detection and power supply holding functions, and electronic device
CN117111534A (en) * 2023-10-16 2023-11-24 长沙先度科技有限公司 An automatic power-on control circuit and its control method
CN117111534B (en) * 2023-10-16 2024-01-16 长沙先度科技有限公司 Automatic power-on control circuit and control method thereof
CN119010121A (en) * 2024-10-24 2024-11-22 杭州微慕科技有限公司 Control method and control device of energy storage system and energy storage system

Also Published As

Publication number Publication date
WO2024087737A1 (en) 2024-05-02

Similar Documents

Publication Publication Date Title
CN115576406A (en) Power-down detection and power supply maintenance function circuit and electronic equipment
AU2021294050B2 (en) Battery device control circuit
CN116707118A (en) Power-down detection and power-down holding function circuit and electronic equipment
CN104135691B (en) MCU reset control circuits and television set
CN107196406A (en) A Switching Control Method of Dual Auxiliary Power Supply
CN107171401A (en) A kind of pair of accessory power supply and the energy-storage system based on double accessory power supplys
CN104393629B (en) Intelligent power supply management circuit of digital oscillograph
CN214337577U (en) Power supply circuit of mobile terminal and mobile terminal
CN220874418U (en) Power supply circuit and electronic device
CN112701752A (en) UPS battery protection circuit and UPS
CN103107577B (en) Battery management circuit and terminal
CN217467616U (en) Power supply control circuit and electronic device
CN214069562U (en) A power failure protection circuit and integrated chip
CN218549571U (en) Power supply redundancy protection circuit
CN217824233U (en) Voltage protection circuit and electric equipment
CN217406238U (en) Power-down holding circuit, power supply circuit and electric equipment
CN109164746A (en) A kind of lower electric sequential control circuit and power circuit
CN222482697U (en) Power supply circuit and NAS equipment
CN222774652U (en) Interface insertion detection circuit and electronic device
CN218243494U (en) Shutdown circuit and shooting equipment thereof
CN223680767U (en) An electronic system power-off protection circuit
CN222750417U (en) BMS key activation circuit and portable electronic device
CN219164248U (en) Vehicle-mounted charger capable of automatically adjusting output power
CN220896526U (en) Drive delay opening protection circuit
CN222355999U (en) Time-delay shutdown circuit and battery management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination