Power supply device and power supply control method

By introducing charging and discharging circuits into the power supply device and using the processor to detect abnormal voltage and send commands, the problem of data loss caused by power supply failure is solved, ensuring the stability of chip power supply and data security.

CN119543401APending Publication Date: 2025-02-28CHINA TELECOM NETWORK SECURITY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411648707.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the current technology, during the chip power supply process, voltage instability and power failure caused by power input failure lead to data loss, and passive power-off protection cannot identify normal power-on and power-off, affecting the normal operation of the chip.

Method used

A power supply device is designed, comprising a first conversion circuit, a backup power supply, a charging circuit, and a discharging circuit. When the processor detects an abnormal voltage, it sends a charging or discharging command and uses the backup power supply to power the load, thus preventing data loss.

Benefits of technology

It enables timely power supply to the load in the event of a power failure, avoids data loss, ensures normal equipment operation, and improves power quality and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119543401A_ABST
    Figure CN119543401A_ABST
Patent Text Reader

Abstract

A power supply device and a power supply control method are used for improving the power-off protection effect of equipment. The power supply device comprises a first conversion circuit, a standby power supply, a charging circuit and a discharging circuit. The input end of the first conversion circuit is connected with a power supply, and the output end is connected with a load; the input end of the charging circuit is connected with the output end of the first conversion circuit, the output end is connected with the standby power supply, and the charging circuit is used for charging the standby power supply by using electric energy output by the first conversion circuit when receiving a charging instruction; the input end of the discharging circuit is connected with the standby power supply, and the output end is connected with a load and is used for supplying power to the load by using electric energy of the standby power supply when detecting that the input voltage of the first conversion circuit is lower than a preset threshold value or receiving a discharging instruction sent by the processor; the charging instruction and the discharging instruction are generated by the processor according to the input voltage and the output voltage of the first conversion circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power electronics, and in particular to a power supply device and a power supply control method. Background Art

[0002] In the field of chip power supply, during normal use of the equipment, due to power input failure or equipment power input conversion circuit failure, the power supply of the rear chip of the circuit suddenly fails, which is often manifested as voltage instability, power failure, etc. When a sudden power failure occurs in the chip, the data being processed or stored will be lost as the chip stops running abnormally, affecting data security, so this part of the data needs to be urgently rescued and saved. At present, the industry adopts passive power-off protection, but the above protection method cannot identify the normal power-on and power-off of the chip, resulting in false startup affecting the normal operation of the chip, and the protection effect in sudden situations is not ideal. Summary of the invention

[0003] The purpose of this application is to provide a power supply device and a power supply control method for improving the power-off protection effect of the equipment.

[0004] In a first aspect, the present application provides a power supply device, which can be applied to multiple power supply scenarios including chips. The power supply device may include: a first conversion circuit, a backup power supply, a charging circuit, and a discharging circuit.

[0005] Among them, the input end of the first conversion circuit is used to connect to the power supply, and the output end of the first conversion circuit is used to connect to the load; the input end of the charging circuit is connected to the output end of the first conversion circuit, and the output end of the charging circuit is connected to the backup power supply, and is used to charge the backup power supply with the electric energy output by the first conversion circuit when a charging instruction is received, and the charging instruction is generated by the processor in the load according to the input voltage and output voltage of the first conversion circuit; the input end of the discharge circuit is connected to the backup power supply, and the output end of the discharge circuit is used to connect to the load, and is used to power the load with the electric energy of the backup power supply when it is detected that the input voltage of the first conversion circuit is lower than a preset threshold or a discharge instruction sent by the processor is received. The discharge instruction is generated by the processor according to the input voltage and output voltage of the first conversion circuit.

[0006] In the above manner, when the voltage of the power supply connected to the first conversion circuit drops below the preset threshold value during the normal power supply process of the power supply device, the discharge circuit starts to use the electric energy stored in the backup power supply to power the load, and prompts the load to perform emergency data backup by sending a power-off alarm to the load to avoid data loss. In addition, the charging control of the backup power supply is executed by the processor. Only after the power supply device is powered on normally and supplies power to the processor inside the load, the processor can send a charging instruction, thereby avoiding the impact of the backup power supply activation on the power supply voltage during the normal power-on process, thereby ensuring the normal operation of the device.

[0007] In a possible design, the charging circuit includes: a driving module and a first switch module.

[0008] Among them, the driving module is used to connect with the processor, and when receiving the charging instruction sent by the processor, controls the first switch module to turn on; the first switch module is connected between the output end of the first conversion circuit and the backup power supply, and is used to control the connection between the first conversion circuit and the backup power supply.

[0009] In a possible design, the driving module includes: a first switching tube and a first resistor.

[0010] Among them, the first end of the first switch tube is connected to the first switch module, the second end of the first switch tube is grounded, and the control end of the first switch tube is used to receive the charging instruction; the first end of the first resistor is connected to the control end of the first switch tube, and the second end of the first resistor is connected to the second end of the first switch tube.

[0011] In a possible design, the first switch module includes: a second switch tube, a second resistor and a first diode.

[0012] Among them, the first end of the second switch tube is connected to the output end of the first conversion circuit, the second end of the second switch tube is connected to the anode of the first diode, and the control end of the second switch tube is connected to the driving module; the first end of the second resistor is connected to the first end of the second switch tube, and the second end of the second resistor is connected to the control end of the second switch tube; the cathode of the first diode is connected to the backup power supply.

[0013] In a possible design, the charging circuit also includes a soft start module connected between the first switch module and the backup power supply.

[0014] In a possible design, the soft start module includes: a third switch tube, an inductor, a third resistor, a fourth resistor and a first capacitor.

[0015] Specifically, the first end of the third switch tube is connected to the first switch module, the second end of the third switch tube is connected to the backup power supply through the inductor, and the control end of the third switch tube is grounded through the third resistor; the first end of the fourth resistor is connected to the first end of the third switch tube, and the second end of the fourth resistor is connected to the control end of the third switch tube; the first end of the first capacitor is connected to the first end of the third switch tube, and the second end of the first capacitor is connected to the control end of the third switch tube. The third resistor and the fourth resistor are used to control the charging speed of the third capacitor, thereby controlling the conduction moment of the third switch tube and slowing down the conduction speed of the third switch tube to reduce the current amplitude generated on the line when the backup power supply is charged. At the same time, the inductor can also avoid the rapid rise of the circuit, realize the influence of the backup power charging process on the load power supply voltage, and improve the power supply quality of the power supply device.

[0016] In a possible design, the discharge circuit includes: a second switch module and a maintenance module.

[0017] Specifically, the second switch module is connected between the backup power supply and the load, and is used to use the electric energy of the backup power supply to power the load when it is detected that the input voltage of the first conversion circuit is lower than the preset threshold; the maintenance circuit is connected to the second switch module, and is used to control the second switch module to be in an on state when the discharge instruction is received.

[0018] In a possible design, the second switch module includes: a fifth resistor, a sixth resistor and a fourth switch tube.

[0019] Specifically, the first end of the fifth resistor is used to be connected to the input end of the first conversion circuit, and the second end of the fifth resistor is connected to the first end of the sixth resistor; the second end of the sixth resistor is grounded; the first end of the fourth switch tube is connected to the backup power supply, the second end of the fourth switch tube is used to be connected to the load, and the control end of the fourth switch tube is connected to the second end of the fifth resistor.

[0020] In a possible design, the maintenance module includes: a seventh resistor, an eighth resistor, a second capacitor, a fifth switch tube, a ninth resistor, a tenth resistor, a third capacitor, an eleventh resistor and a sixth switch tube.

[0021] Specifically, the first end of the seventh resistor is used to receive the discharge instruction, and the second end of the seventh resistor is connected to the first end of the eighth resistor and the first end of the second capacitor; the second end of the eighth resistor is connected to the second end of the second capacitor and is grounded; the first end of the fifth switch tube is used to be connected to the input end of the first conversion circuit through the ninth resistor, the second end of the fifth switch tube is grounded through the tenth resistor, and the control end of the fifth switch tube is connected to the second end of the seventh resistor; the first end of the third capacitor is connected to the first end of the eleventh resistor and the control end of the sixth switch tube, and the second end of the third capacitor is connected to the second end of the eleventh resistor and is grounded; the first end of the sixth switch tube is connected to the second switch module, the second end of the sixth switch tube is grounded, and the control end of the sixth switch tube is connected to the first end of the fifth switch tube.

[0022] In one possible design, when the load includes multiple power supply devices and the power supply voltages of the multiple power supply devices are different, the power supply device also includes a second conversion circuit connected between the output end of the first conversion circuit and the load, and the second conversion circuit is used to convert the voltage output by the first conversion circuit into the power supply voltage of the load. Since the first conversion circuit and the second conversion circuit output different voltage amplitudes, the power supply requirements of multiple electrical devices in the load are met.

[0023] In a second aspect, an embodiment of the present application provides a power supply control method, which can be applied to the power supply device provided in the first aspect of the embodiment of the present application and any possible design thereof. The power supply control method can be executed by a controller in a load, and specifically includes the following steps:

[0024] Detect the first voltage at the input end of the first conversion circuit and the second voltage at the output end of the first conversion circuit; when the first voltage is in the first preset interval and the second voltage is in the second preset interval, send the charging instruction to the charging circuit; when the first voltage exceeds the first preset interval or the second voltage exceeds the second preset interval, send the discharging instruction to the discharging circuit and store data. With the above design, the input voltage and output voltage of the first conversion circuit can be detected and the charging instruction can be triggered only after the load is powered on, thereby avoiding the power supply voltage fluctuation caused by starting the backup power supply to charge during the load power-on process and improving the power supply quality of the power supply device. When the input voltage or output voltage of the first conversion circuit is detected to be abnormal, it indicates that the power supply or the first conversion circuit is faulty. In order to ensure the normal power consumption of the load, a discharging instruction is sent to the discharging circuit to control the backup power supply to temporarily supply power to the load. Since the backup power supply has limited ability to store electrical energy, it can only provide short-term power supply. In order to avoid data loss, data storage backup is performed when voltage abnormality is detected.

[0025] In a third aspect, an embodiment of the present application provides a power supply control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method provided in the second aspect of the present application and any possible design thereof.

[0026] In addition, the technical effects brought about by the third aspect and any possible design thereof can refer to the technical effects brought about by the different designs in the first to second aspects of the embodiments of the present application, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings introduced below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 A structural schematic diagram of a power supply device provided for related technology;

[0029] Figure 2 A schematic diagram of the structure of a first conversion circuit provided in an embodiment of the present application;

[0030] Figure 3 A schematic diagram of a charging circuit provided in an embodiment of the present application Figure 1 ;

[0031] Figure 4 A schematic diagram of a charging circuit provided in an embodiment of the present application Figure 2 ;

[0032] Figure 5 A schematic diagram of a discharge circuit provided in an embodiment of the present application;

[0033] Figure 6 A schematic diagram of a second conversion circuit provided in an embodiment of the present application Figure 1 ;

[0034] Figure 7 A schematic diagram of a second conversion circuit provided in an embodiment of the present application Figure 2 ;

[0035] Figure 8 A schematic diagram of a flow chart of a power supply control method provided in an embodiment of the present application;

[0036] Fig. 9A schematic diagram of the structure of a power supply control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0038] The terms used in the implementation methods of this application are only used to explain the specific embodiments of this application, and are not intended to limit this application. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0039] Below, some terms in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.

[0040] (1) The terms "first", "second", etc. in the embodiments of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.

[0041] (2) The term "plurality" in the embodiments of the present application refers to two or more than two, and other quantifiers are similar.

[0042] (3) The term “and / or” in the embodiments of the present application describes the association relationship between associated objects, indicating that three types of relationships may exist. For example, A and / or B may represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B may be singular or plural.

[0043] (4) The “connection” in the embodiments of the present application can be understood as an electrical connection or a communication connection. The electrical connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, A and B are connected, which can be either a direct connection between A and B or an indirect connection between A and B through one or more other electrical components. For example, A and B are connected, or A and C are directly connected, C and B are directly connected, and A and B are connected through C. The communication connection between two electrical components is a wireless connection between the two electrical components, that is, the two electrical components are electromagnetically connected.

[0044] (5) The switch device in the embodiment of the present application may be one or more of a variety of switch tubes such as a metal oxide semiconductor field effect transistor (MOSFET), a bipolar junction transistor (BJT), an insulated gate bipolar transistor (IGBT), a silicon carbide (SiC) transistor, a silicon controlled rectifier (SCR), etc., which are not listed one by one in the embodiment of the present application. The packaging form of each switch tube may be a single tube package or a multi-tube package, which is not limited in the embodiment of the present application. Each switch tube may include a first end, a second end and a control end, wherein the control end may control the on or off of the switch tube according to the received PWM signal. When the switch tube is turned on, current can be transmitted between the first end and the second end of the switch tube, and when the switch tube is turned off, current cannot be transmitted between the first end and the second end of the switch tube. Taking MOSFET as an example, the control end of the switch tube is the gate, the first end of the switch tube may be the source, the second end may be the drain, or the first end may be the drain, and the second end may be the source.

[0045] The application scenarios of the power supply device in the embodiment of the present application are described in detail below in conjunction with the accompanying drawings. The power supply device provided in the embodiment of the present application can be applied to multiple power supply scenarios including power supply of functional chips, and while supplying power to the load, power-off protection is performed to ensure the power supply safety of the load.

[0046] See also Figure 1 As shown in FIG. 1 , it is a schematic diagram of the structure of the power supply device provided in the embodiment of the present application. Figure 1 As shown, the power supply device at least includes a first conversion circuit, a backup power supply, a charging circuit and a discharging circuit.

[0047] It should be understood that Figure 1 The power supply shown is only an example and the power supply may have a Figure 1 More components shown in , for example, an overcurrent protection circuit and a short circuit protection circuit may also be configured in the power supply device. Figure 1 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0048] Specifically, the input end of the first conversion circuit is connected to an external power supply, and the output end of the first conversion circuit is connected to a load to be powered. The first conversion circuit can convert the voltage of the external power supply into the power voltage of the load. The input end of the charging circuit is connected to the output end of the first conversion circuit, and the output end of the charging circuit is connected to the backup power supply, and is used to charge the backup power supply with the electric energy output by the first conversion circuit when a charging instruction is received. The input end of the discharge circuit is connected to the backup power supply, and the output end of the discharge circuit is connected to the load to be powered, and is used to power the load with the electric energy of the backup power supply when it is detected that the input voltage of the first conversion circuit is lower than a preset threshold or a discharge instruction sent by the processor is received. The discharge instruction is generated by the processor based on the input voltage and output voltage of the first conversion circuit.

[0049] In actual application, a processor is configured in the load connected to the back end of the power supply device, and the charging instructions and discharging instructions sent by the processor are generated according to the input voltage and output voltage of the first conversion circuit. The processor in the load can detect the input voltage and output voltage of the first conversion circuit after the load is powered on, and trigger the discharge instruction to control the backup power supply to temporarily supply power when the detected voltage is abnormal, and trigger the charging instruction to control the charging circuit to charge the backup power supply when the detected voltage is normal. Because the processor in the load can detect the input voltage and output voltage of the first conversion circuit when the power supply device is powered normally and the load connected to the back end is powered on, and then trigger the charging instruction for controlling the backup power supply to charge, it avoids the voltage fluctuation caused by charging the backup power supply during the load power-on process, and ensures the safe startup of the load.

[0050] In actual application, multiple devices in the power supply device can be placed on the same printed circuit board (PCB), and a connector for connecting to a power supply can be provided on the PCB. The power supply device can obtain the electric energy output by the power supply through the connector, and convert the voltage output by the power supply into a mainboard voltage through a first conversion circuit. It should be noted that when the load connected to the power supply device includes multiple electrical devices, and the multiple electrical devices have different requirements for the power supply voltage, the power supply device can also include a second conversion circuit connected between the output end of the first conversion circuit and the load, and the second conversion circuit can regulate the voltage output by the first conversion circuit, so as to meet the requirements of different electrical devices for the power supply voltage.

[0051] Continue to see Figure 1As shown, in the power supply device provided in the embodiment of the present application, the discharge circuit can directly detect the voltage of the power supply through the input voltage of the first conversion circuit. When the voltage of the power supply is detected to be below the preset threshold or the discharge instruction sent by the processor is received, the power supply abnormality can be determined. In order not to affect the normal power consumption of the load, the discharge circuit is started and the load is powered by the electric energy of the backup power supply. Among them, the preset threshold can be less than or equal to the minimum value of the normal voltage interval of the power supply, so that when the voltage of the power supply deviates from the normal amplitude interval, power-off protection is performed. The discharge instruction is generated by the processor according to the input voltage and output voltage of the first conversion circuit. The processor diagnoses whether the power supply is faulty by detecting the input voltage of the first conversion circuit, and diagnoses whether the first conversion circuit is faulty by detecting the output voltage of the first conversion circuit, so as to control the backup power supply to temporarily supply power when any device fails, so as to ensure the safe operation of the load. Since the backup power supply has a limited ability to store electric energy, the backup power supply can only provide short-term power supply to the load. When the processor detects any device failure during operation, it will also perform data backup to avoid data loss.

[0052] Next, the working process of the power supply device is described in combination with the structures of various components in the power supply device.

[0053] 1. First conversion circuit

[0054] The input end of the first conversion circuit is connected to an external power supply, and the output end of the first conversion circuit is connected to the charging circuit and the load. The first conversion circuit can convert the voltage output by the power supply into the power supply voltage of the load, thereby supplying power to the load.

[0055] In actual application, the first conversion circuit can be a DC converter or an AC converter. If the power supply connected to the first conversion circuit is a DC power supply, the first conversion circuit includes a DC converter, which can convert the voltage output by the DC power supply into the power supply voltage of the load and supply power to the load. If the power supply connected to the first conversion circuit is an AC power supply, the first conversion circuit includes an AC converter, which can rectify and regulate the AC voltage output by the AC power supply, thereby outputting a power supply voltage that meets the load requirements and supplies power to the load.

[0056] It should be noted that the first conversion circuit can adopt a discrete circuit or integrated chip with the above functions commonly used in the industry, for example, see Figure 2As shown, it is a schematic diagram of the structure when the first conversion circuit includes an integrated chip and a peripheral circuit of the integrated chip. The first conversion circuit receives the voltage VCC_IN of the power supply, converts the received voltage into VCC_A and outputs it to the load for power supply, and outputs a feedback signal 1 after the output voltage VCC_A is divided by a resistor, and sends the feedback signal 1 representing the output voltage of the first conversion circuit to the controller in the load for voltage monitoring. Of course, the first conversion circuit can also adopt other structures, which are not listed here in this application.

[0057] 2. Charging Circuit

[0058] The input end of the charging circuit is connected to the output end of the first conversion circuit, and the output end of the charging circuit is connected to the backup power supply. The charging circuit can also be connected to a processor in the load, and when receiving a charging instruction sent by the processor, an electrical connection is established between the first conversion circuit and the backup power supply, and the backup power supply is charged with the electric energy output by the first conversion circuit, thereby ensuring that the backup power supply has sufficient electric energy to power the load when the power supply or the first conversion circuit fails.

[0059] Specifically, the charging circuit may include a driving module and a first switch module. The driving module is used to connect to the processor, and the driving module can control the first switch module to turn on when receiving a charging instruction sent by the processor; the first switch module is connected between the output end of the first conversion circuit and the backup power supply, and is used to control the first conversion circuit to be connected to the backup power supply.

[0060] It should be noted that the above description is based on the example that the output voltage of the first conversion circuit is the same as the charging voltage amplitude of the backup power supply. If the output voltage of the first conversion circuit is different from the charging voltage of the backup power supply, then the charging circuit needs to be configured with a circuit or integrated chip for regulating the output voltage of the first conversion circuit. The specific structure of the voltage regulating circuit or the voltage regulating chip can refer to the circuit structure or chip model approved in the industry, and this application will not introduce it in detail here.

[0061] Next, a specific example of the charging circuit is given.

[0062] See also Figure 3As shown, the driving module includes a first switch tube Q1 and a first resistor R1, and the first switch module includes a second switch tube Q2, a second resistor R2 and a first diode D1. Among them, the first end of the first switch tube Q1 is connected to the control end of the second switch tube Q2 in the first switch module, the second end of the first switch tube Q1 is grounded, and the control end of the first switch tube Q1 is used to receive a charging instruction. The first end of the first resistor R1 is connected to the control end of the first switch tube Q1, and the second end of the first resistor R1 is connected to the second end of the first switch tube Q1. The first end of the second switch tube Q2 is connected to the output end of the first conversion circuit, and the second end of the second switch tube Q2 is connected to the anode of the first diode D1. The first end of the second resistor R2 is connected to the first end of the second switch tube Q2, and the second end of the second resistor R2 is connected to the control end of the second switch tube Q2. The cathode of the first diode D1 is connected to the backup power supply.

[0063] use Figure 3 When the charging circuit shown is charging the backup power supply, if a high-level charging instruction sent by the load-side processor is received, the first switch tube Q1 is turned on to pull down the control terminal voltage of the second switch tube Q2, and the second switch tube Q2 is turned on to realize the electrical connection between the first conversion circuit and the backup power supply, and charge the backup power supply. Among them, the backup power supply may include one or more energy storage batteries. When the backup power supply includes multiple energy storage batteries, the multiple energy storage batteries can be connected in series or in parallel.

[0064] In actual use, if the second switch tube Q2 is turned on to directly control the first conversion circuit to be electrically connected to the backup power supply, a large current will be generated on the line at the moment of connection, which may cause fluctuations in the output voltage of the first conversion circuit. In order to improve the power supply quality, the charging circuit may also include a soft start module. The soft start module can reduce the current amplitude during the initial connection between the first conversion circuit and the backup power supply, thereby reducing the impact of the first conversion circuit on the load power supply voltage when charging the backup power supply, thereby achieving stable power supply to the load.

[0065] Specifically, see Figure 4 As shown, the soft start module includes a third switch tube Q3, an inductor L, a third resistor R3, a fourth resistor R4 and a first capacitor C1. The first end of the third switch tube Q3 is connected to the cathode of the first diode D1 in the first switch module, the second end of the third switch tube Q3 is connected to the backup power supply through the inductor L, and the control end of the third switch tube Q3 is grounded through the third resistor R3; the first end of the fourth resistor R4 is connected to the first end of the third switch tube Q1, and the second end of the fourth resistor R4 is connected to the control end of the third switch tube Q3; the first end of the first capacitor C1 is connected to the first end of the third switch tube Q3, and the second end of the first capacitor C1 is connected to the control end of the third switch tube Q3.

[0066] Specifically, based on the characteristic that the voltage across the capacitor cannot change suddenly, when the second switch tube Q2 is turned on, the third resistor R3 and the fourth resistor R4 work to charge the first capacitor C1. As the charging time is normal, the voltage at the control end of the third switch tube Q3 gradually decreases. When the voltage at the control end of the third switch tube Q3 drops to the conduction threshold of the switch tube, the third switch tube Q3 is turned on and charges the backup power supply through the inductor L. Among them, the inductor L can avoid the current surge of the line during the charging process, and the first capacitor C1 can realize the slow conduction of the third switch tube Q3, which is also conducive to avoiding the current surge of the line during the charging process, slowing down the impact of the backup power charging process on the load power supply voltage, and improving the power supply quality of the power supply device.

[0067] It should be noted that the above introduction to the charging circuit is only an example. In actual applications, the charging circuit may also have other structures. For example, the soft start module in the charging circuit may only include the inductor L. Of course, each module in the charging circuit may also adopt other discrete circuits or integrated chips in the industry with the above functions.

[0068] 3. Discharge circuit

[0069] The input end of the discharge circuit is connected to the backup power supply, and the output end of the discharge circuit is connected to the load. The discharge circuit can detect the input voltage of the first conversion circuit. When the external power supply fails and causes the input voltage of the first conversion circuit to drop below a preset threshold, the discharge circuit is turned on to realize the electrical connection between the backup power supply and the load, and use the electric energy stored in the backup power supply to power the load. The discharge circuit can also be connected to the processor in the load. When the processor detects that the input voltage or output voltage of the first conversion circuit drops, it will store data and send a discharge instruction to the discharge circuit. After receiving the above-mentioned discharge instruction, the discharge circuit will also control the backup power supply to power the load, thereby ensuring the normal power consumption of the load when the power supply or the first conversion circuit fails, and improving the power supply stability of the power supply device.

[0070] In a possible implementation, the discharge circuit may include a second switch module and a sustain module.

[0071] Specifically, the second switch module is connected between the backup power supply and the load, and is used to use the electric energy of the backup power supply to power the load when it is detected that the input voltage of the first conversion circuit is lower than a preset threshold value; the maintenance circuit is connected to the second switch module, and is used to control the second switch module to be in an on state when a discharge instruction is received, thereby controlling the backup power supply to power the load until the backup power supply is discharged or the fault of the power supply is eliminated.

[0072] A specific example of the discharge circuit is given below.

[0073] See also Figure 5As shown, the second switch module includes a fifth resistor R5, a sixth resistor R6 and a fourth switch tube Q4. The maintenance module includes a seventh resistor R7, an eighth resistor R8, a second capacitor C2, a fifth switch tube Q5, a ninth resistor R9, a tenth resistor R10, a third capacitor C3, an eleventh resistor R11 and a sixth switch tube Q6.

[0074] use Figure 5 In the second switch module shown, the first end of the fifth resistor R5 is used to be connected to the input end of the first conversion circuit, the second end of the fifth resistor R5 is connected to the first end of the sixth resistor R6; the second end of the sixth resistor R6 is grounded; the first end of the fourth switch tube Q4 is connected to the backup power supply, the second end of the fourth switch tube Q4 is connected to the load, and the control end of the fourth switch tube Q4 is connected to the second end of the fifth resistor R5.

[0075] In actual application, since the fifth resistor R5 and the sixth resistor R6 are connected in series to divide the input voltage VCC_IN of the first conversion circuit, the feedback signal 2 outputted from the second end of the fifth resistor R5 can be used as a voltage signal representing the input voltage of the first conversion circuit and sent to the processor for voltage monitoring. Of course, the processor can also be configured with a separate device to detect the input voltage of the first conversion circuit, which is not specifically limited in this application.

[0076] use Figure 5 In the maintenance module shown, the first end of the seventh resistor R7 is used to receive a discharge instruction, the second end of the seventh resistor R7 is connected to the first end of the eighth resistor R8 and the first end of the second capacitor C2; the second end of the eighth resistor R8 is connected to the second end of the second capacitor C2 and is grounded; the first end of the fifth switch tube Q5 is connected to the input end of the first conversion circuit through the ninth resistor R9 and receives the input voltage VCC_IN of the first conversion circuit, the second end of the fifth switch tube Q5 is grounded through the tenth resistor R10, and the control end of the fifth switch tube Q5 is connected to the second end of the seventh resistor R7; the first end of the third capacitor C3 is connected to the first end of the eleventh resistor R11 and the control end of the sixth switch tube Q6, the second end of the third capacitor C3 is connected to the second end of the eleventh resistor R11 and is grounded; the first end of the sixth switch tube Q6 is connected to the second switch module, the second end of the sixth switch tube Q6 is grounded, and the control end of the sixth switch tube Q6 is connected to the first end of the fifth switch tube Q5.

[0077] In actual use, when the power supply voltage received by the input terminal VCC_IN of the first conversion circuit drops, the voltage amplitude provided to the fourth switch tube Q4 after the fifth resistor R5 and the sixth resistor R5 are connected in series and divided drops, and the fourth switch tube Q4 meets the conduction condition and turns on to form an energy transmission path between the backup power supply and the load, and uses the energy stored in the backup power supply to power the load, so that when the power supply fails, the load can still be powered for a short period of time. Since the backup power supply has limited ability to store energy and cannot provide power for a long time, the feedback signal 2 output after the fifth resistor R5 and the sixth resistor R5 are connected in series and divided will also be fed back to the processor in the load for voltage monitoring, so that the processor can perform data backup after receiving the above abnormal voltage to avoid data loss.

[0078] Continue to see Figure 5 In the maintenance module shown, the processor in the load can detect the feedback signal 2 representing the input voltage of the first conversion circuit and the feedback signal 1 representing the output voltage of the first conversion circuit. When the processor detects that the input voltage or the output voltage of the first conversion circuit is abnormal, it will send a high-level discharge instruction to the maintenance module to keep the fifth switch tube Q5 and the sixth switch tube Q6 in the on state, thereby always providing the low-level signal required for conduction to the fourth switch tube Q4, so that the backup power supply is always in a discharging state until the backup power supply is discharged or the fault is eliminated.

[0079] 4. Second conversion circuit

[0080] In actual application, the load may include multiple electrical devices with different power supply voltage requirements. The voltage output by the first conversion circuit can only meet the power requirements of some electrical devices. Therefore, a second conversion circuit is configured to further regulate the output voltage of the first conversion circuit. The second conversion circuit is connected between the first conversion circuit and the load, and between the discharge circuit and the load.

[0081] Specifically, since the voltage output by the first conversion circuit is a DC voltage, the second conversion circuit may be a DC converter, which may convert the voltage output by the first conversion circuit into a power supply voltage for other electrical devices and supply power to the other electrical devices. The other electrical devices are electrical devices in the load other than the electrical devices that use the output voltage of the first conversion circuit as the power supply voltage.

[0082] It should be noted that the second conversion circuit can adopt a discrete circuit or chip with the above functions commonly used in the industry, for example, see Figure 6 and Figure 7 As shown, Figure 6The present invention is a structural diagram of a second conversion circuit using an integrated chip U1 and a peripheral circuit when only a central processing unit (CPU) is provided in the load. The second conversion circuit can receive the output voltage VCC_A of the first conversion circuit and the output voltage VCC_B of the discharge circuit, convert any of the above voltages into the power supply voltage VCC_CPU of the processor, and charge the processor CPU in the load. Figure 7 When the load includes a double data rate (DDR) dynamic random access memory and a FLASH chip in addition to the CPU processor, the structural diagram of the second conversion circuit is shown in FIG. Figure 7 As shown, in addition to the integrated chip U1 for powering the CPU, it also includes an integrated chip U2 for powering the FLASH and an integrated chip U3 required for powering the DDR, as well as peripheral circuits corresponding to the above integrated chips. Among them, the integrated chip U2 powers the DDR connected to the 7-pin of the CPU chip, and the integrated chip U3 powers the FLASH chip connected to the 8-pin of the CPU chip. Of course, the first conversion circuit can also adopt other structures, which are not listed here in this application.

[0083] In actual application, if the load includes more than two electrical devices with different supply voltages, the power supply device may include multiple second conversion circuits, each of which can output DC voltages of different amplitudes to meet the power supply requirements of multiple electrical devices. Among them, multiple second conversion circuits can be connected in parallel or in parallel at the input end. This application does not make specific restrictions on this.

[0084] It should be noted that the above introduction to the power supply device is only an example. In actual applications, the power supply device may also adopt other structures. For example, when the power supply device is applied to a high-power power supply scenario, the power supply device may use multiple first conversion circuits in parallel to increase the power level of the power supply device to meet the power demand of the load. Of course, the devices in the power supply device may also use other devices with the above functions, which is not limited in this application.

[0085] Based on the introduction of the power supply device structure described above, the power supply control process of the power supply device is described in detail below in combination with the aforementioned power supply device structure, wherein the power supply control process of the power supply device can be executed by a controller in the load, see Figure 8 As shown, it mainly includes the following steps:

[0086] Step S801: Detect a first voltage at an input end of a first conversion circuit and a second voltage at an output end of the first conversion circuit.

[0087] In some embodiments, see Figure 2and Figure 5 As shown, the feedback signal 1 obtained by dividing the output side of the first conversion circuit can be used as the second voltage, and the feedback signal 2 obtained by dividing the fifth resistor R5 and the sixth resistor R6 in the discharge circuit can be used as the first voltage.

[0088] In some implementations, a dedicated detection circuit or detection chip may be configured in the power supply device to detect the first voltage at the input end and the second voltage at the output end of the first conversion circuit.

[0089] In actual application, the input voltage and output voltage of the first conversion circuit are both analog voltage signals. Since the processor cannot directly process the above analog voltage signals, an ADC converter is connected between the processor and the input port and output port of the first conversion circuit. The ADC converter can convert the received analog voltage signal into a digital voltage signal and send it to the CPU for voltage monitoring.

[0090] Step S802: When the first voltage is within the first preset interval and the second voltage is within the second preset interval, sending a charging instruction to the charging circuit.

[0091] In actual application, when the power supply device uses the power supply to supply power to the load, and the load is powered on normally, the processor starts to detect the amplitudes of the first voltage and the second voltage, and when it is determined that the first voltage representing the state of the power supply and the second voltage representing the state of the first conversion circuit are both in the corresponding voltage range, a charging instruction is sent to control the backup power supply to charge, thereby ensuring that when the power supply or the first conversion circuit is abnormal, the backup power supply has sufficient power to supply power to the load. Among them, the first preset interval and the second preset interval can be set according to the normal fluctuation interval of the power supply and the rated voltage interval of the first conversion circuit, and this application does not make too many restrictions here.

[0092] It should be noted that the process of charging the backup power supply after the charging circuit receives the charging instruction can be found in the above introduction, and this application will not repeat it here.

[0093] Step S803: When the first voltage exceeds the first preset interval or the second voltage exceeds the second preset interval, a discharge instruction is sent to the discharge circuit and data is stored.

[0094] Specifically, when the first voltage exceeds the corresponding first preset interval, it indicates that the power supply connected to the power supply device is faulty. When the second voltage exceeds the corresponding second preset interval, it indicates that the power supply connected to the power supply device is faulty or the first conversion circuit is faulty. In order to ensure the normal operation of the load, a discharge instruction is sent to the discharge circuit to control the backup power supply to perform temporary charging. Since the backup power supply has limited ability to store electrical energy, the current data is temporarily stored and backed up to avoid data loss.

[0095] It should be noted that the process of the discharge circuit using the electrical energy stored in the backup power supply to power the load after receiving the discharge instruction can be found in the above introduction in detail, and this application will not repeat it here.

[0096] Based on the same inventive concept, a power supply control device is also provided in the embodiment of the present application. The power supply control device can execute the above-mentioned power supply control method, see Fig. 9 As shown, the power supply control device includes:

[0097] At least one processor 901, and a memory 902 connected to the at least one processor 901. The specific connection medium between the processor 901 and the memory 902 is not limited in the embodiment of the present application. Fig. 9 In the example, the processor 901 and the memory 902 are connected via a bus 900. The bus 900 is Fig. 9 The connection between other components is shown by bold lines, and is not intended to be limiting. The bus 900 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 901 can also be called a controller, and there is no limitation on the name.

[0098] In the embodiment of the present application, the memory 902 stores instructions that can be executed by at least one processor 901. The at least one processor 901 can execute the power supply control method discussed above by executing the instructions stored in the memory 902.

[0099] Among them, processor 901 is the control center of the device, and can use various interfaces and lines to connect various parts of the entire control device. By running or executing instructions stored in memory 902 and calling data stored in memory 902, various functions of the device and processing data, the device can be monitored as a whole.

[0100] The processor 901 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate circuit or a transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the control method of the braking device disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0101] The memory 902 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 902 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 902 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 902 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0102] By designing and programming the processor 901, the code corresponding to the power supply control method described in the above embodiment can be fixed into the chip, so that the chip can execute the steps of the control method of the braking device in the above embodiment when running. How to design and program the processor 901 is a technology well known to those skilled in the art and will not be described in detail here.

[0103] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0104] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0105] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0107] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A power supply device, characterized in that: include: A first conversion circuit, a backup power supply, a charging circuit, and a discharging circuit; The input end of the first conversion circuit is used to be connected to a power supply, and the output end of the first conversion circuit is used to be connected to a load; The input end of the charging circuit is connected to the output end of the first conversion circuit, and the output end of the charging circuit is connected to the backup power supply, and is used to charge the backup power supply with the electric energy output by the first conversion circuit when receiving a charging instruction, wherein the charging instruction is generated by the processor in the load according to the input voltage and output voltage of the first conversion circuit; The input end of the discharge circuit is connected to the backup power supply, and the output end of the discharge circuit is used to be connected to the load, and is used to use the electric energy of the backup power supply to power the load when it is detected that the input voltage of the first conversion circuit is lower than a preset threshold or a discharge instruction sent by the processor is received, and the discharge instruction is generated by the processor based on the input voltage and output voltage of the first conversion circuit.

2. The device according to claim 1, characterized in that The charging circuit comprises: a driving module and a first switch module; The driving module is used to connect to the processor and control the first switch module to turn on when receiving the charging instruction sent by the processor; The first switch module is connected between the output end of the first conversion circuit and the backup power supply, and is used to control the connection between the first conversion circuit and the backup power supply.

3. The device according to claim 2, characterized in that The driving module includes: a first switch tube and a first resistor; The first end of the first switch tube is connected to the first switch module, the second end of the first switch tube is grounded, and the control end of the first switch tube is used to receive the charging instruction; The first end of the first resistor is connected to the control end of the first switch tube, and the second end of the first resistor is connected to the second end of the first switch tube.

4. The device according to claim 2 or 3, characterized in that The first switch module includes: a second switch tube, a second resistor and a first diode; The first end of the second switch tube is connected to the output end of the first conversion circuit, the second end of the second switch tube is connected to the anode of the first diode, and the control end of the second switch tube is connected to the driving module; The first end of the second resistor is connected to the first end of the second switch tube, and the second end of the second resistor is connected to the control end of the second switch tube; A cathode of the first diode is connected to the backup power supply.

5. The device according to claim 2, characterized in that The charging circuit also includes a soft start module connected between the first switch module and the backup power supply.

6. The device according to claim 5, characterized in that The soft start module includes: a third switch tube, an inductor, a third resistor, a fourth resistor and a first capacitor; The first end of the third switch tube is connected to the first switch module, the second end of the third switch tube is connected to the backup power supply through the inductor, and the control end of the third switch tube is grounded through the third resistor; The first end of the fourth resistor is connected to the first end of the third switch tube, and the second end of the fourth resistor is connected to the control end of the third switch tube; The first end of the first capacitor is connected to the first end of the third switch tube, and the second end of the first capacitor is connected to the control end of the third switch tube.

7. The device according to any one of claims 1 to 3, characterized in that: The discharge circuit includes: a second switch module and a maintenance module; The second switch module is connected between the backup power supply and the load, and is used to use the power of the backup power supply to power the load when it is detected that the input voltage of the first conversion circuit is lower than the preset threshold; The maintaining circuit is connected to the second switch module, and is used to control the second switch module to be in an on state when receiving the discharge instruction.

8. The device according to claim 7, characterized in that The second switch module includes: a fifth resistor, a sixth resistor and a fourth switch tube; The first end of the fifth resistor is used to be connected to the input end of the first conversion circuit, and the second end of the fifth resistor is connected to the first end of the sixth resistor; The second end of the sixth resistor is grounded; The first end of the fourth switch tube is connected to the backup power supply, the second end of the fourth switch tube is used to be connected to the load, and the control end of the fourth switch tube is connected to the second end of the fifth resistor.

9. The device according to claim 7, characterized in that The maintenance module includes: a seventh resistor, an eighth resistor, a second capacitor, a fifth switch tube, a ninth resistor, a tenth resistor, a third capacitor, an eleventh resistor and a sixth switch tube; The first end of the seventh resistor is used to receive the discharge instruction, and the second end of the seventh resistor is connected to the first end of the eighth resistor and the first end of the second capacitor; The second end of the eighth resistor is connected to the second end of the second capacitor and is grounded; The first end of the fifth switch tube is used to be connected to the input end of the first conversion circuit through the ninth resistor, the second end of the fifth switch tube is grounded through the tenth resistor, and the control end of the fifth switch tube is connected to the second end of the seventh resistor; The first end of the third capacitor is connected to the first end of the eleventh resistor and the control end of the sixth switch tube, and the second end of the third capacitor is connected to the second end of the eleventh resistor and is grounded; A first end of the sixth switch tube is connected to the second switch module, a second end of the sixth switch tube is grounded, and a control end of the sixth switch tube is connected to a first end of the fifth switch tube.

10. The device according to any one of claims 1 to 3, characterized in that: The power supply device also includes a second conversion circuit connected between the output end of the first conversion circuit and the load, and the second conversion circuit is used to convert the voltage output by the first conversion circuit into a power supply voltage of the load and supply power to the load.

11. A power supply control method, characterized in that: Applied to the power supply device according to any one of claims 1 to 10, the method comprises: detecting a first voltage at an input end of the first conversion circuit and a second voltage at an output end of the first conversion circuit; When the first voltage is within a first preset interval and the second voltage is within a second preset interval, sending the charging instruction to the charging circuit; When the first voltage exceeds the first preset interval or the second voltage exceeds the second preset interval, the discharge instruction is sent to the discharge circuit, and data is stored.