CN113161989B - Digital power supply, fault detection circuit and method thereof, and computer readable storage medium - Google Patents

Digital power supply, fault detection circuit and method thereof, and computer readable storage medium Download PDF

Info

Publication number
CN113161989B
CN113161989B CN202110458813.5A CN202110458813A CN113161989B CN 113161989 B CN113161989 B CN 113161989B CN 202110458813 A CN202110458813 A CN 202110458813A CN 113161989 B CN113161989 B CN 113161989B
Authority
CN
China
Prior art keywords
voltage
circuit
controller
sampling
voltage converter
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.)
Active
Application number
CN202110458813.5A
Other languages
Chinese (zh)
Other versions
CN113161989A (en
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.)
Great Wall Power Technology Co ltd
Original Assignee
Great Wall Power 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 Great Wall Power Technology Co ltd filed Critical Great Wall Power Technology Co ltd
Priority to CN202110458813.5A priority Critical patent/CN113161989B/en
Publication of CN113161989A publication Critical patent/CN113161989A/en
Application granted granted Critical
Publication of CN113161989B publication Critical patent/CN113161989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H3/00Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection
    • H02H3/20Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to excess voltage
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies

Abstract

A digital power supply and a fault detection circuit, a method and a computer readable storage medium thereof are provided, wherein the fault detection circuit realizes the detection of a reference conversion reference value generated by the conversion of a reference voltage of a control circuit in the normal work of the digital power supply by adopting a voltage stabilizing circuit, an analog-digital conversion circuit, a calculation circuit and a judgment circuit, and controls a controller to stop driving the voltage converter when the difference value between the reference conversion reference value and a preset standard conversion reference value is larger than a first preset threshold value, thereby avoiding the situation that the controller drives the voltage converter by mistake due to the failure of a working power supply, avoiding the problem of overvoltage damage of electric equipment, and solving the problem that the electric equipment is damaged by self fault in the traditional digital power supply.

Description

Digital power supply, fault detection circuit and method thereof, and computer readable storage medium
Technical Field
The present application relates to digital power supplies, and more particularly, to a digital power supply, a fault detection circuit and method thereof, and a computer-readable storage medium.
Background
At present, with higher and higher requirements of the mainstream market on high density, small volume, high energy efficiency, intellectualization, customization and the like of the power supply, the trend of the digital power supply is developed. Compared with the traditional analog power supply, the digital power supply has great advantages in the application of complex high-performance systems which have more controllable factors, faster real-time response speed and need the power supply management of a plurality of analog systems. In a digital power supply, functions of control, monitoring, communication and the like are all concentrated in a Micro Control Unit (MCU), so that the number and complexity of devices of a peripheral circuit are greatly reduced, and the design difficulty of the whole power supply is simplified; meanwhile, the over-centralized function also means that when the MCU and its core circuit are out of order, the electric equipment may be damaged directly.
Therefore, the conventional digital power supply has the problem that the electric equipment is damaged due to the self-fault.
Disclosure of Invention
The application aims to provide a digital power supply, a fault detection circuit and method thereof, and a computer readable storage medium, and aims to solve the problem that electric equipment is damaged due to self faults in the traditional digital power supply.
A first aspect of an embodiment of the present application provides a fault detection circuit for a digital power supply, where the digital power supply includes a controller and a voltage converter, the voltage converter supplies power to a power consumption device under the driving of the controller, and the fault detection circuit includes:
the voltage stabilizing circuit is connected with the working power supply and the controller and is used for carrying out voltage stabilizing treatment on the voltage of the working power supply to generate reference voltage;
the analog-to-digital conversion circuit is connected with an analog-to-digital conversion reference end of the controller and is used for generating a reference conversion reference value according to the reference voltage; the controller is used for driving the voltage converter to work according to the reference conversion reference value;
the calculation circuit is connected with the analog-to-digital conversion circuit and is used for calculating a difference value between the reference conversion reference value and a preset standard conversion reference value and outputting the difference value as a first difference value; and
and the judging circuit is connected with the calculating circuit and is used for judging the size of the first difference value and a first preset threshold value and controlling the controller to stop driving the voltage converter when the first difference value is greater than the first preset threshold value.
A second aspect of an embodiment of the present application provides a digital power supply, including:
a controller;
a voltage converter which supplies power to a power consumer under the drive of the controller; and
a fault detection circuit as described in the first aspect of the embodiments of the present application.
A third aspect of an embodiment of the present application provides a fault detection method for a digital power supply, where the digital power supply includes a controller and a voltage converter, and the voltage converter supplies power to a power consumption device under the driving of the controller, and the fault detection method includes:
acquiring a reference voltage output by the actual power supply voltage of the controller after voltage stabilization conversion;
generating a reference conversion reference value according to the reference voltage, wherein the controller is used for driving the voltage converter to work according to the reference conversion reference value;
acquiring a preset standard conversion reference value of the controller;
calculating a first difference value between the reference conversion reference value and a standard conversion reference value;
judging the size of the first difference value and a first preset threshold value;
and when the first difference is larger than the first preset threshold, controlling the controller to close the driving of the voltage converter so as to stop supplying power to the electric equipment.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program, which, when executed by a processor, implements the steps of the method as described above.
According to the fault detection circuit of the digital power supply, the voltage stabilizing circuit, the analog-to-digital conversion circuit, the calculation circuit and the judgment circuit are adopted, the reference conversion reference value generated by converting the reference voltage of the control circuit is detected in the normal work of the digital power supply, and when the difference value between the reference conversion reference value and the preset standard conversion reference value is larger than the first preset threshold value, the control controller stops driving the voltage converter, the condition that the voltage converter is mistakenly driven by the controller due to the failure of the working power supply is avoided, the problem that the electric equipment is damaged due to overvoltage is avoided, and the problem that the electric equipment is damaged due to self faults in the traditional digital power supply is solved.
Drawings
Fig. 1 is a circuit schematic diagram of a fault detection circuit according to an embodiment of the present application;
FIG. 2 is an exemplary circuit schematic of a voltage regulator circuit of the fault detection circuit shown in FIG. 1;
FIG. 3 is another circuit schematic of the fault detection circuit shown in FIG. 1;
FIG. 4 is an exemplary circuit schematic of a first sampling circuit and a second sampling circuit in the fault detection circuit shown in FIG. 3;
fig. 5 is a detailed flowchart of a fault detection method according to an embodiment of the present application;
FIG. 6 is another detailed flow chart of the fault detection method shown in FIG. 5;
FIG. 7 is another detailed flow chart of the fault detection method shown in FIG. 6;
fig. 8 is a schematic diagram of a fault detection apparatus provided in an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that when an element is referred to as being "secured to" or "disposed on" another element, it can be directly on the other element or be indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or be indirectly connected to the other element.
It will be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like are used in an orientation or positional relationship indicated in the drawings to facilitate the description of the application and to simplify the description, and are not intended to indicate or imply that the device or element so referred to must have a particular orientation, be constructed in a particular orientation, and be constructed in operation as a limitation of the application.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
Fig. 1 shows a circuit schematic diagram of a fault detection circuit 300 of a digital power supply 10 provided in a first embodiment of the present application, and for convenience of explanation, only the parts related to the present embodiment are shown, and detailed description is as follows:
the fault detection circuit 300 of the digital power supply 10, the digital power supply 10 includes a controller 100 and a voltage converter 200, and the voltage converter 200 supplies power to the electric device 30 under the driving of the controller 100.
It is understood that the voltage converter 200 converts the voltage of the external power supply 20 into the target output voltage and outputs the target output voltage to the electric device 30 under the driving of the controller 100.
The fault detection circuit 300 includes: the controller comprises a voltage stabilizing circuit 310, an analog-to-digital conversion circuit 320, a calculating circuit 330 and a judging circuit 340, wherein the voltage stabilizing circuit 310 is connected with the working power supply 40 and the controller 100, the analog-to-digital conversion circuit 320 is connected with the voltage stabilizing circuit 310, the calculating circuit 330 is connected with the analog-to-digital conversion circuit 320, and the judging circuit 340 is connected with the calculating circuit 330. The voltage regulator circuit 310 is used for regulating the voltage of the operating power supply 40 to generate a reference voltage. The analog-to-digital conversion circuit 320 is used for generating a reference conversion reference value according to the reference voltage; wherein, the controller 100 is configured to drive the voltage converter 200 to operate according to the reference conversion reference value. The calculating circuit 330 is configured to calculate a difference between the reference conversion reference value and a preset standard conversion reference value, and output the difference as a first difference. The determining circuit 340 is configured to determine the first difference value and a first preset threshold, and control the controller 100 to stop driving the voltage converter 200 when the first difference value is greater than the first preset threshold.
It is understood that the operating power supply 40 is a power supply for supplying an operating voltage to the controller 100. The controller 100 may be a microprocessor or the like. The voltage converter 200 may be formed of a rectifying chip and/or a DC-DC voltage converting chip. The powered device 30 is any electronic device that requires power.
It is understood that the regulator circuit 310 may be formed of a voltage regulator tube. The analog-to-digital conversion circuit 320, the calculation circuit 330, and the judgment circuit 340 may be integrated with the controller 100 into one micro-processing unit. That is, the functions of the analog-to-digital conversion circuit 320, the calculation circuit 330, the judgment circuit 340 and the controller 100 are completed by one microprocessor, which may be an MCU with internal fault hardware interrupt, and enables all fault interrupts during program initialization, and adds a code for turning off the driver in the fault interrupt processing function, so that when the MCU body has a fault, the MCU body jumps to the interrupt processing function, and turns off the driver, thereby ensuring output shutdown and ensuring safety of the electric device 30.
Alternatively, the analog-to-digital conversion circuit 320 may convert the reference voltage into a reference conversion reference value according to a preset conversion accuracy. The controller 100 may further include an analog-to-digital conversion module, and the reference voltage output by the voltage regulator circuit is directly applied to the reference pin of the analog-to-digital conversion module.
It is understood that the reference voltage is a reference voltage used by the controller 100 to control the voltage converter 200. For example, the reference digital value of the reference voltage conversion is a reference conversion reference value of a comparator and an analog-to-digital converter inside the controller 100, and the feedback voltage collected by the controller 100 is analog-to-digital converted based on the reference conversion reference value. In a normal case, the reference conversion reference value and the preset standard conversion reference value should be the same. When the operating power source 40 fails, the reference voltage fails, so that the reference conversion reference value changes from the preset standard conversion reference value, at this time, if the input voltage or the output voltage of the voltage converter 200 acquired by the controller 100 is converted based on the changed reference conversion reference value, the input voltage or the output voltage recognized by the controller 100 may not conform to the actual input voltage or the actual output voltage, so that the driving control of the voltage converter 200 is controlled by mistake, that is, the actual voltage output by the voltage converter 200 is not the expected voltage, so that the electric device 30 is damaged, and other problems may occur.
It will be appreciated that, in the field of digital power supplies 10 in general, a 10% offset may result in damage to powered device 30, and thus the first predetermined threshold may be controlled to be within 10% of the standard transfer reference value. In other embodiments, the first preset threshold may be set according to the maximum offset value that the actual electric device 30 can bear.
The fault detection circuit 300 of the digital power supply 10 in this embodiment, by using the voltage stabilizing circuit 310, the analog-to-digital conversion circuit 320, the calculation circuit 330 and the determination circuit 340, realizes that the reference conversion reference value generated by converting the reference voltage of the control circuit is detected during the normal operation of the digital power supply 10, and controls the controller 100 to stop driving the voltage converter 200 when the difference between the reference conversion reference value and the preset standard conversion reference value is greater than the first preset threshold. That is, when the working power supply 40 fails suddenly, the fault can be quickly responded to shut down, so as to quickly protect the electric equipment 30, thereby avoiding the problem that the electric equipment 30 is damaged by overvoltage due to the fact that the controller 100 still drives the voltage converter 200 by mistake under the fault condition, and solving the problem that the electric equipment 30 is damaged by self fault in the conventional digital power supply 10.
Referring to FIG. 2, in one embodiment, a voltage regulator circuit 310 includes: the voltage stabilizing circuit comprises a first resistor R1, a first voltage stabilizing tube D1 and a first capacitor C1, wherein the first end of the first resistor R1 is connected with the working power supply 40, the second end of the first resistor R1, the first end of the first voltage stabilizing tube D1 and the third end of the first voltage stabilizing tube D1 are connected in common to form the output end of the voltage stabilizing circuit 310, the output end of the voltage stabilizing circuit 310 is connected with the analog-to-digital conversion circuit 320, and the second end of the first voltage stabilizing tube D1 and the second end of the first capacitor C1 are connected in common to the ground.
It can be understood that the first voltage regulator tube D1 may be a three-terminal regulator, wherein the first terminal of the first voltage regulator tube D1 is a negative electrode of the three-terminal regulator, the second terminal of the first voltage regulator tube D1 is a positive electrode of the three-terminal regulator, and the third terminal of the first voltage regulator tube D1 is a middle electrode of the three-terminal regulator.
Referring to fig. 3, in one embodiment, the fault detection circuit 300 further includes: the first sampling circuit 350, the first sampling circuit 350 is connected to the output end of the voltage converter 200 and the controller 100, and the first sampling circuit 350 is configured to collect the output voltage of the voltage converter 200 and output the collected output voltage as a first sampling voltage; the controller 100 is configured to adjust the driving of the voltage converter 200 according to the first sampling voltage, so that the output voltage of the voltage converter 200 is the target output voltage.
It is understood that the controller 100 may adjust the driving of the voltage converter 200 by outputting a control signal of the voltage converter 200, which may be a pulse width modulation signal, for example: when the voltage converter 200 is a voltage step-down circuit, if the voltage value of the first sampling voltage is greater than the target output voltage, the controller 100 decreases the duty ratio of the pwm signal, so that the output voltage of the voltage converter 200 is decreased to the target output voltage; if the voltage value of the first sampling voltage is smaller than the target output voltage, the controller 100 increases the duty ratio of the pwm signal, so that the output voltage of the voltage converter 200 is increased to the target output voltage.
Referring to fig. 3, in one embodiment, the fault detection circuit 300 further includes: the second sampling circuit 360 and the resistance drift detection circuit 370, the second sampling circuit 360 is connected with the output end of the voltage converter 200 and the controller 100, and the resistance drift detection circuit 370 is connected with the first sampling circuit 350 and the second sampling circuit 360. The second sampling circuit 360 is used for collecting the output voltage of the voltage converter 200 and outputting the output voltage as a second sampling voltage. The resistance drift detection circuit 370 is configured to detect a second difference between the first sampling voltage and the second sampling voltage, and determine whether the resistance drift occurs in the first sampling circuit 350 or the second sampling circuit 360 according to the second difference; the controller 100 is further configured to turn off the driving of the voltage converter 200 when the resistance value of the first sampling circuit 350 or the second sampling circuit 360 drifts.
It will be appreciated that the first sampling circuit 350 and the second sampling circuit 360 are connected in parallel. The first sampling circuit 350 and the second sampling circuit 360 may be formed of resistance devices of the same parameter. Whether resistance drift occurs in the first sampling circuit 350 or the second sampling circuit 360 can be determined by calculating a difference value of the sampling voltages respectively output from the first sampling circuit 350 and the second sampling circuit 360. When the resistance value of the sampling circuit drifts, the voltage output by the sampling circuit cannot accurately represent the actual collected voltage, that is, the sampled voltage obtained by the controller 100 from the sampling circuit is not matched with the actual output voltage of the voltage converter 200, so that the controller 100 drives the voltage converter 200 by mistake according to the sampled voltage.
Referring to fig. 4, in one embodiment, the first sampling circuit 350 includes: the first end of the second resistor R2 is connected to the output end of the voltage converter 200, the second end of the second resistor R2 and the first end of the third resistor R3 are connected to the controller 100, and the second end of the third resistor R3 is grounded.
Referring to fig. 4, in one embodiment, the second sampling circuit 360 includes: a fourth resistor R4 and a fifth resistor R5, wherein a first end of the fourth resistor R4 is connected to the output end of the voltage converter 200, a second end of the fourth resistor R4 and a first end of the fifth resistor R5 are commonly connected to the controller 100, and a second end of the fifth resistor R5 is grounded.
It is understood that the second resistor R2 and the fourth resistor R4 have equal resistance values. The third resistor R3 and the fifth resistor R5 are equal in resistance.
The second embodiment of the present application provides a digital power supply 10 comprising a controller 100, a voltage converter 200 and a fault detection circuit 300 as provided in the first embodiment of the present application.
It is understood that the controller 100, the voltage converter 200, and the fault detection circuit 300 are as in the first embodiment of the present application.
Referring to fig. 5, a third embodiment of the present application provides a method for detecting a fault of a digital power supply 10, where the digital power supply 10 includes a controller 100 and a voltage converter 200, the voltage converter 200 supplies power to an electric device 30 under the driving of the controller 100, and the method for detecting a fault operates based on the fault detection circuit 300, and the method for detecting a fault includes:
s110: acquiring the actual power supply voltage of the controller 100, calculating the voltage of the actual power supply voltage after voltage stabilization and conversion, and outputting the voltage as a reference voltage;
it is understood that the voltage stabilization conversion of the supply voltage to the reference voltage may be accomplished by providing a voltage stabilization circuit 310 and connecting the supply voltage of the controller 100 to the voltage stabilization circuit 310.
S120: generating a reference conversion reference value according to the reference voltage, wherein the controller 100 is configured to drive the voltage converter 200 to operate according to the reference conversion reference value;
it is understood that the predetermined conversion accuracy is the conversion accuracy of the analog-to-digital converter or the virtual analog-to-digital conversion unit used for the analog-to-digital conversion.
S130: acquiring a preset standard conversion reference value of the controller 100;
it is understood that the standard conversion reference value is a standard conversion reference value converted by the standard supply voltage of the controller 100 without any malfunction. When the power supply voltage of the controller 100 is invalid, that is, when the actual power supply voltage of the controller 100 is not equal to the standard power supply voltage of the controller 100, the reference conversion reference value is not equal to the standard conversion reference value; when the voltage stabilizing circuit 310 that realizes the voltage stabilizing conversion fails, the output actual reference voltage is not the standard reference voltage, so that the reference conversion reference value is not equal to the standard conversion reference value; the reference conversion reference value is not equal to the standard conversion reference value, which may cause the voltage data obtained by the controller 100 after the subsequent conversion of the sampling voltage and the like to be inconsistent with the actual voltage data, thereby causing the voltage converter 200 to be erroneously driven.
S140: calculating a first difference between the reference conversion reference value and the standard conversion reference value;
it is understood that the first difference is an absolute difference. The difference between the reference conversion reference value and the standard conversion reference value may be calculated by subtracting the reference conversion reference value from the standard conversion reference value and output as the first difference.
S150: judging the size of the first difference value and a first preset threshold value;
it is understood that the first preset threshold may be a maximum allowable error value between the reference conversion reference value and the standard conversion reference value.
For example, assuming that the predetermined conversion precision is 12 bits, the digital quantity of the VCC =3.3v and 3.3v conversion of the supply voltage of the controller 100 is 4095, the reference voltage of the supply voltage after the voltage stabilization conversion is 2.5v and the digital quantity of the 2.5v conversion is 2.5/3.3 × 4095 =3102without any failure, and if the reference conversion reference value and the standard conversion reference value should be within ± 10%, the first predetermined threshold =3102 × 10% =310.2.
S160: when the first difference is greater than the first preset threshold, the control controller 100 turns off the driving of the voltage converter 200 to stop the power supply to the electric device 30.
It will be appreciated that the comparison of the first difference value with the first preset threshold value may be implemented by a comparator or the like.
Referring to fig. 6, a fourth embodiment of the present application provides a method for detecting a fault of a digital power supply 10, where the digital power supply 10 includes a controller 100 and a voltage converter 200, the voltage converter 200 is driven by the controller 100 to supply power to an electric device 30, the method for detecting a fault operates based on the fault detection circuit 300, and the method for detecting a fault in the present embodiment and the method for detecting a fault in the third embodiment of the present application operate together, and the method for detecting a fault in the present embodiment includes:
s210: collecting the output voltage output by the voltage converter 200 to the electric equipment 30, and generating a first sampling voltage;
it will be appreciated that the output voltage may be collected by a sampling circuit formed by a sampling resistor.
S220: comparing the first sampling voltage with the target output voltage;
it is understood that the target output voltage is a rated supply voltage of the digital power source 10 to the electric device 30, and the rated supply voltage is an operating voltage of the electric device 30. The magnitude of the first sampling voltage and the target output voltage may be compared by a comparator or the like.
S230: the driving of the voltage converter 200 is adjusted according to the difference between the first sampling voltage and the target output voltage so that the voltage output by the voltage converter 200 to the electric device 30 becomes the target output voltage.
It is understood that the controller 100 may adjust the driving of the voltage converter 200 by outputting a control signal of the voltage converter 200, which may be a pulse width modulation signal, for example: when the voltage converter 200 is a voltage step-down circuit, if the voltage value of the first sampling voltage is greater than the target output voltage, the controller 100 decreases the duty ratio of the pwm signal, so that the output voltage of the voltage converter 200 is decreased to the target output voltage; if the voltage value of the first sampling voltage is smaller than the target output voltage, the controller 100 increases the duty ratio of the pwm signal, so that the output voltage of the voltage converter 200 is increased to the target output voltage.
Referring to fig. 7, a fifth embodiment of the present application provides a method for detecting a fault of a digital power supply 10, where the digital power supply 10 includes a controller 100 and a voltage converter 200, the voltage converter 200 supplies power to an electric device 30 under the driving of the controller 100, and the method for detecting a fault operates based on the above-mentioned fault detection circuit 300, and the method for detecting a fault in this embodiment is an extended embodiment of the method for detecting a fault in the fourth embodiment of the present application, and the method for detecting a fault in this embodiment includes:
s310: collecting the output voltage output by the voltage converter 200 to the electric equipment 30, and generating a first sampling voltage;
it is understood that step S310 is identical to step S210 of the second embodiment of the present application, and is not described herein again.
S320: collecting the voltage output by the voltage converter 200 to the electric equipment 30, and generating a second sampling voltage;
it can be understood that the first sampling voltage and the second sampling voltage are two voltages collected and output at the same end point by different sampling circuits.
S330: detecting a second difference value of the first sampling voltage and the second sampling voltage;
it will be appreciated that in the event of a failure of the digital power supply 10, the first and second sampled voltages should be equal. When the first sampling voltage and the second sampling voltage have errors, the situation that faults such as resistance value drift and the like possibly exist is shown. If the sampling loop of the sampling voltage has the resistance drift, the sampling voltage cannot be prepared to represent the actual voltage, and when the controller 100 controls the voltage converter 200 based on the sampling voltage, the voltage converter 200 may output the output voltage of the electric device 30 far away from the target output voltage, so as to cause the overvoltage damage or undervoltage misoperation of the electric device 30.
S340: judging the size of the second difference value and a second preset threshold value;
it is understood that the second preset threshold may be a maximum error boundary value allowed by the first and second sampling voltages.
S350: when the second difference is greater than the second preset threshold, the control controller 100 turns off the driving of the voltage converter 200.
It can be understood that when the second difference is greater than the second preset threshold, the circuit has a resistance drift, and the controller 100 turns off the driving of the voltage converter 200 at this time, so as to avoid the damage to the electric device 30.
S360: when the second difference value is smaller than or equal to a second preset threshold value, comparing the first sampling voltage with the target output voltage;
it is understood that step S360 is identical to step S220 of the second embodiment of the present application, and is not described herein again.
S360: the driving of the voltage converter 200 is adjusted according to the difference between the first sampling voltage and the target output voltage so that the voltage output by the voltage converter 200 to the electric device 30 becomes the target output voltage.
It is understood that step S370 is identical to step S230 of the second embodiment of the present application, and is not described herein again.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 8 is a schematic diagram of a fault detection apparatus according to an embodiment of the present application. As shown in fig. 8, the failure detection device 6 of this embodiment includes: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60. The processor 60, when executing the computer program 62, implements the steps in the various fault detection method embodiments described above, such as steps S110 to S150 shown in fig. 1. Alternatively, the processor 60, when executing the computer program 62, implements the functions of the various modules/units in the above-described apparatus embodiments, such as the functions of the modules 320 to 340 shown in fig. 1.
Illustratively, the computer program 62 may be divided into one or more modules/units, which are stored in the memory 61 and executed by the processor 60 to accomplish the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program 62 in the fault detection device 6. For example, the computer program 62 may be partitioned into a synchronization module, a summarization module, an acquisition module, a return module (a module in a virtual device).
The fault detection device 6 may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The failure detection means may include, but is not limited to, a processor 60, a memory 61. It will be appreciated by those skilled in the art that fig. 8 is merely an example of the failure detection apparatus 6, and does not constitute a limitation of the failure detection apparatus 6, and may include more or less components than those shown, or combine some components, or different components, for example, the failure detection apparatus may further include an input-output device, a network access device, a bus, etc.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the failure detection apparatus 6, such as a hard disk or a memory of the failure detection apparatus 6. The memory 61 may also be an external storage device of the failure detection apparatus 6, such as a plug-in hard disk provided on the failure detection apparatus 6, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 61 may also include both an internal storage unit of the failure detection apparatus 6 and an external storage device. The memory 61 is used for storing computer programs and other programs and data required by the fault detection means. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments described above may be implemented by a computer program, which is stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A fault detection circuit for a digital power supply, the digital power supply including a controller and a voltage converter, the voltage converter being driven by the controller to supply power to a powered device, the fault detection circuit comprising:
the voltage stabilizing circuit is connected with the working power supply and the controller and is used for carrying out voltage stabilizing treatment on the voltage of the working power supply to generate reference voltage;
the analog-to-digital conversion circuit is connected with an analog-to-digital conversion reference end of the controller and is used for generating a reference conversion reference value according to the reference voltage; the controller is used for driving the voltage converter to work according to the reference conversion reference value;
the calculation circuit is connected with the analog-to-digital conversion circuit and is used for calculating a difference value between the reference conversion reference value and a preset standard conversion reference value and outputting the difference value as a first difference value; and
the judging circuit is connected with the calculating circuit and is used for judging the magnitude of the first difference value and a first preset threshold value and controlling the controller to stop driving the voltage converter when the first difference value is larger than the first preset threshold value;
wherein the first preset threshold is controlled to be within 10% of the standard conversion reference value.
2. The fault detection circuit of claim 1, wherein the voltage regulation circuit comprises:
the first end of the first resistor is connected with the working power supply, the second end of the first resistor, the first end of the first voltage-regulator tube and the third end of the first voltage-regulator tube are connected in common to form the output end of the voltage stabilizing circuit, the output end of the voltage stabilizing circuit is connected with the analog-to-digital conversion circuit, and the second end of the first voltage-regulator tube and the second end of the first capacitor are connected in common to the ground.
3. The fault detection circuit of claim 1, further comprising:
the first sampling circuit is connected with the output end of the voltage converter and the controller, and is used for collecting the output voltage of the voltage converter and outputting the output voltage as a first sampling voltage;
the controller is used for adjusting the driving of the voltage converter according to the first sampling voltage so as to enable the output voltage of the voltage converter to be a target output voltage.
4. The fault detection circuit of claim 3, further comprising:
the second sampling circuit is connected with the output end of the voltage converter and the controller, and is used for collecting the output voltage of the voltage converter and outputting the output voltage as a second sampling voltage; and
the resistance drift detection circuit is connected with the first sampling circuit and the second sampling circuit and is used for detecting a second difference value of the first sampling voltage and the second sampling voltage and determining whether the first sampling circuit or the second sampling circuit has resistance drift or not according to the second difference value;
the controller is further used for turning off the driving of the voltage converter when the resistance value of the first sampling circuit or the second sampling circuit drifts.
5. The fault detection circuit of claim 4, wherein the first sampling circuit comprises: the first end of the second resistor is connected with the output end of the voltage converter, the second end of the second resistor and the first end of the third resistor are connected to the controller in a shared mode, and the second end of the third resistor is grounded.
6. A digital power supply, comprising:
a controller;
a voltage converter that supplies power to a power consumer under the drive of the controller; and
a fault detection circuit according to any one of claims 1 to 4.
7. A fault detection method for a digital power supply, the digital power supply including a controller and a voltage converter, the voltage converter being driven by the controller to supply power to a powered device, the fault detection method comprising:
acquiring a reference voltage output by the actual power supply voltage of the controller after voltage stabilization conversion;
generating a reference conversion reference value according to the reference voltage, wherein the controller is used for driving the voltage converter to work according to the reference conversion reference value;
acquiring a preset standard conversion reference value of the controller;
calculating a first difference between the reference conversion reference value and a standard conversion reference value;
judging the size of the first difference value and a first preset threshold value;
when the first difference is larger than the first preset threshold, controlling the controller to close the driving of the voltage converter so as to stop supplying power to the electric equipment;
wherein the first preset threshold is controlled to be within 10% of the standard conversion reference value.
8. The fault detection method of claim 7, comprising:
collecting output voltage output to the electric equipment by the voltage converter, and generating first sampling voltage;
comparing the first sampling voltage with a target output voltage;
and adjusting the driving of the voltage converter according to the difference value between the first sampling voltage and the target output voltage, so that the voltage output to the electric equipment by the voltage converter is the target output voltage.
9. The fault detection method of claim 8, further comprising:
collecting the voltage output to the electric equipment by the voltage converter and generating a second sampling voltage;
detecting a second difference value of the first sampling voltage and the second sampling voltage;
judging the size of the second difference value and a second preset threshold value;
and when the second difference is larger than the second preset threshold, controlling the controller to close the driving of the voltage converter.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 7 to 9.
CN202110458813.5A 2021-04-27 2021-04-27 Digital power supply, fault detection circuit and method thereof, and computer readable storage medium Active CN113161989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110458813.5A CN113161989B (en) 2021-04-27 2021-04-27 Digital power supply, fault detection circuit and method thereof, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110458813.5A CN113161989B (en) 2021-04-27 2021-04-27 Digital power supply, fault detection circuit and method thereof, and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113161989A CN113161989A (en) 2021-07-23
CN113161989B true CN113161989B (en) 2022-11-04

Family

ID=76871326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110458813.5A Active CN113161989B (en) 2021-04-27 2021-04-27 Digital power supply, fault detection circuit and method thereof, and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113161989B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114768745B (en) * 2022-06-08 2023-05-26 广东众大智能科技有限公司 High-stability driving control method and system for continuous granulating reaction kettle
CN115469242B (en) * 2022-09-13 2024-01-12 江苏万邦微电子有限公司 Negative power supply monitoring system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003094334A2 (en) * 2002-04-30 2003-11-13 Honeywell International Inc. Synchronous and bi-directional variable frequency power conversion systems
JP2011147084A (en) * 2010-01-18 2011-07-28 Hitachi Automotive Systems Ltd Onboard control device
CN109256744A (en) * 2018-11-01 2019-01-22 北京四方继保自动化股份有限公司 A kind of protective relaying device high reliability analogue quantity acquiring method
CN109490628A (en) * 2018-12-28 2019-03-19 钟祥博谦信息科技有限公司 A kind of Measurement of Harmonics in Power System system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100561821C (en) * 2004-12-23 2009-11-18 鸿富锦精密工业(深圳)有限公司 Automatically discern the system and method for alternating voltage input
CN100585974C (en) * 2007-09-14 2010-01-27 田忠孝 Distribution circuit electric voltage over-deviation protectors
US8405948B2 (en) * 2010-02-11 2013-03-26 Ta-I LIU EMI noise shielding device
CN103606895B (en) * 2013-12-06 2016-01-20 万科思自控信息(中国)有限公司 A kind of overvoltage turn-off protection circuit
CN105391320B (en) * 2014-09-09 2018-10-23 鸿富锦精密工业(深圳)有限公司 Polyphase source circuit
CN207021974U (en) * 2017-03-17 2018-02-16 宁波齐心科技股份有限公司 A kind of public electric bicycle hardware protection circuit
CN107994645A (en) * 2017-12-21 2018-05-04 杭州普创电子有限公司 A kind of charge protection method, device, equipment and computer-readable recording medium
CN110333457B (en) * 2018-03-28 2021-04-16 上海汽车集团股份有限公司 Power battery pack voltage sampling circuit, power system and new energy automobile
CN208738824U (en) * 2018-07-18 2019-04-12 上海乔治费歇尔亚大塑料管件制品有限公司 The overvoltage crowbar of welding machine and its power input

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003094334A2 (en) * 2002-04-30 2003-11-13 Honeywell International Inc. Synchronous and bi-directional variable frequency power conversion systems
JP2011147084A (en) * 2010-01-18 2011-07-28 Hitachi Automotive Systems Ltd Onboard control device
CN109256744A (en) * 2018-11-01 2019-01-22 北京四方继保自动化股份有限公司 A kind of protective relaying device high reliability analogue quantity acquiring method
CN109490628A (en) * 2018-12-28 2019-03-19 钟祥博谦信息科技有限公司 A kind of Measurement of Harmonics in Power System system

Also Published As

Publication number Publication date
CN113161989A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN113161989B (en) Digital power supply, fault detection circuit and method thereof, and computer readable storage medium
DE112020003117T5 (en) PRIMARY CONTROLLER CALIBRATION AND TRIMMING USING A SECONDARY CONTROLLER IN SECONDARY CONTROLLED Flyback Converters
US8607036B2 (en) Power management apparatus and methods
CN106687941B (en) Method and apparatus to control a mode of a device
CN103503296B (en) PFC signal generating circuit, the PFC Controlling System using PFC signal generating circuit and PFC control method
EP3800763A1 (en) Multi-mode uninterruptible power supply control method, control apparatus and control terminal
US20130132746A1 (en) Bridging device and power saving method thereof
US9454197B2 (en) Controller and semiconductor system
CN111857315B (en) PSU output voltage control method, system and related components
US20170220089A1 (en) Systems and methods for management controller enhanced power supply unit current sharing
WO2019062787A1 (en) Control method, related device and computer storage medium for charging
CN212343310U (en) Protective device for vehicle-mounted electronic equipment and vehicle-mounted electronic equipment
CN111025007B (en) Power supply voltage detection method and device and storage medium
US10279472B2 (en) Servo control system and robot
US10216253B2 (en) Universal serial bus hub and control method thereof
CN110442217A (en) A kind of peripheral circuit structure of dsp chip
CN114499213B (en) Synchronous rectification control method, circuit, device and medium
CN216209536U (en) Test system, intelligent module and smart machine
CN220290178U (en) Module power supply loop for CPU and electronic equipment
TWI613546B (en) Universal serial bus hub and control method thereof
CN114128069B (en) Voltage regulating device and overcurrent protection method
CN113131826B (en) Method and device for controlling motor operation, terminal equipment and storage medium
CN210578243U (en) Starting circuit and chip starting device
CN115118143A (en) DC converter control method, control terminal and storage medium
CN114689933A (en) Multichannel direct current voltage monitoring system and display panel

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
GR01 Patent grant
GR01 Patent grant