A power supply testing device, method, product and readable storage medium

The power supply testing device addresses the challenge of reliably testing VR power supply functions by using control, processing, and timing components to ensure proper execution times and voltage thresholds, thereby preventing damage and ensuring system stability.

CN118707389BActive Publication Date: 2024-12-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411206026.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-27
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

Existing VR power supplies lack a reliable method to test the normal implementation of soft start and soft shutdown functions during power on and off, which can cause damage to sensitive components due to instantaneous current shocks or affect system timing.

Method used

A power supply testing device that includes a control component to output soft operation signals, a processing component to detect state indication voltages, and a timing component to measure execution times, ensuring the soft start and soft shutdown functions are performed correctly by comparing output voltages to preset thresholds and determining test results based on execution times.

Benefits of technology

Ensures the normal operation of soft start and soft shutdown functions, preventing damage from instantaneous currents and maintaining system stability and safety by accurately testing these functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118707389B_ABST
    Figure CN118707389B_ABST
Patent Text Reader

Abstract

The present invention discloses a power supply test device, method, product and readable storage medium, which relates to the field of power supply testing. In order to solve the problem that there is no solution for testing the normal realization of the soft operation function of the power supply, the device includes a control component, which is used to output a soft operation signal to the power supply to be tested, obtain the timing time of the timing component as the soft operation execution time, and determine the soft operation function test result of the power supply to be tested according to the soft operation execution time; a processing component, which is used to generate a state indication voltage when the output voltage of the power supply to be tested when responding to the soft operation signal is within the preset threshold range corresponding to the soft operation signal; a timing component, which is used to start timing when the processing component outputs a soft operation signal to the power supply to be tested. The present invention can ensure the normal realization of the soft start function and the soft shutdown function of the power supply to be tested during actual use, avoid damage caused by instantaneous large current, and ensure system safety and stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power supply testing, and in particular to a power supply testing device, method, product and readable storage medium. Background Art

[0002] VR (Voltage Regulator) power supply has the advantages of reducing input current ripple, reducing output current ripple, improving transient overshoot and undershoot, and improving conversion efficiency. It is widely used in server systems to power CPU (Central Processing Unit) and graphics cards. The soft-start function and soft-off function of VR power supply during power on and off can make the output voltage of VR power supply rise or fall slowly at a set slope, thereby improving the stability of VR power supply. If the VR power supply implements the above two soft operation functions for too short a time, it will cause current or voltage shock, which may damage sensitive electronic components. If the VR power supply implements the above two soft operation functions for too long, it may affect the normal timing control of the system. However, there is currently no solution to test whether the soft start function and soft off function of VR power supply during power on and off are implemented normally.

[0003] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention

[0004] The purpose of the present invention is to provide a power supply testing device, method, product and readable storage medium, which can ensure the normal implementation of the soft start function and soft shutdown function of the power supply to be tested during actual use, avoid damage caused by instantaneous large current, and ensure system safety and stability.

[0005] In order to solve the above technical problems, the present invention provides a power supply testing device, comprising:

[0006] A control component, used to output a soft operation signal to the power supply under test, control the timing component to stop timing when the state indication voltage is detected, and obtain the timing time of the timing component as the soft operation execution time, and determine the soft operation function test result of the power supply under test according to the soft operation execution time; the soft operation signal includes a soft start signal or a soft shutdown signal;

[0007] a processing component, configured to output the state indication voltage when the output voltage of the power supply to be tested in response to the soft operation signal is within a preset threshold range corresponding to the soft operation signal;

[0008] The timing component is used to start timing when the processing component outputs the soft operation signal to the power supply to be tested.

[0009] Wherein, the state indication voltage includes a first state indication voltage or a second state indication voltage;

[0010] The processing component is specifically used for:

[0011] When the soft operation signal is the soft start signal, if the output voltage of the power supply under test in response to the soft operation signal is greater than or equal to a preset rising voltage threshold, outputting the first state indication voltage;

[0012] When the soft operation signal is the soft shutdown signal, if the output voltage of the power supply under test in response to the soft operation signal is less than or equal to a preset falling voltage threshold, outputting the second state indication voltage;

[0013] The level states of the first state indication voltage and the second state indication voltage are opposite, and the preset rising voltage threshold is greater than the preset falling voltage threshold.

[0014] Wherein, the processing component includes a first resistor, a second resistor, a third resistor and a comparator, wherein:

[0015] The first end of the first resistor is connected to the output end of the power supply to be tested, the second end of the first resistor is respectively connected to the first end of the second resistor and the non-inverting input end of the comparator, the common end after the second end of the second resistor is connected to the output end of the comparator outputs the state indication voltage, the first end of the third resistor is connected to the reference voltage source, and the second end of the third resistor is connected to the inverting input end of the comparator.

[0016] The preset rising voltage threshold is calculated based on a first relational expression, wherein the first relational expression is: ;

[0017] Wherein, Vrise is the preset rising voltage threshold, Vref is the reference voltage output by the reference voltage source, r1 is the resistance value of the first resistor, and r2 is the resistance value of the second resistor.

[0018] The preset falling voltage threshold is calculated based on a second relational expression, wherein the second relational expression is: ;

[0019] Wherein, Vfall is the preset falling voltage threshold, Vref is the reference voltage output by the reference voltage source, r1 is the resistance value of the first resistor, r2 is the resistance value of the second resistor, and Vcc is the supply voltage of the comparator.

[0020] The process of determining the soft operation function test result of the power supply to be tested according to the soft operation execution time includes:

[0021] Determine whether the time difference between the soft operation execution time and the current target time corresponding to the soft operation signal is less than a first preset time;

[0022] If yes, determine that the soft operation function test result of the power supply to be tested is a test pass;

[0023] If not, it is determined that the soft operation function test result of the power supply to be tested is a test failure.

[0024] Wherein, the timing component comprises:

[0025] A first timer, configured to start timing when a first trigger signal is received;

[0026] A second timer, configured to start timing when receiving a second trigger signal;

[0027] The control component is further configured to output the first trigger signal when outputting the soft start signal to the power supply to be tested, and output the second trigger signal when outputting the soft shutdown signal to the power supply to be tested.

[0028] Wherein, the current target time includes a first target time and a second target time, and the control component is specifically used for:

[0029] Outputting the soft start signal to the power supply to be tested, controlling the first timer to stop timing when the state indication voltage is detected, and obtaining the timing time of the first timer as the soft start execution time;

[0030] Determine whether a difference between the soft start execution time and the first target time corresponding to the soft start signal is less than the first preset time;

[0031] If the time is not less than the first preset time, determining that the soft operation function test result of the power supply to be tested is a test failure;

[0032] If it is less than the first preset time, a second preset time is passed, the soft shutdown signal is output to the power supply under test, the second timer is controlled to stop timing when the state indication voltage is detected, and the timing time of the second timer is obtained as the soft shutdown execution time;

[0033] Determine whether a difference between the soft shutdown execution time and the second target time corresponding to the soft shutdown signal is less than the first preset time;

[0034] If the time is less than the first preset time, determining that the soft operation function test result of the power supply to be tested is a test pass;

[0035] If it is not less than the first preset time, it is determined that the soft operation function test result of the power supply to be tested is a test failure.

[0036] The control component is further configured to determine that a test result of the soft operation function of the power supply to be tested is a test failure when the timing time of the timing component is greater than a third preset time and the state indication voltage is not detected.

[0037] Among them, it also includes:

[0038] A counter, used for adding 1 to the count value when the soft operation function test result of the power supply to be tested is that the test passes;

[0039] The control component is also used to obtain the count value of the counter, and when the count value is equal to the set value, determine that the power-on and power-off test is completed, and stop outputting the soft operation signal to the power supply under test;

[0040] The process of outputting a soft operation signal to the power supply under test includes:

[0041] When the count value is less than the set value, a soft operation signal is output to the power supply to be tested.

[0042] Wherein, the control component is also used to obtain a power normal signal output by a power controller of the power supply to be tested;

[0043] The process of determining the soft operation function test result of the power supply to be tested according to the soft operation execution time includes:

[0044] A soft operation function test result of the power supply to be tested is determined according to the soft operation execution time and the power normal signal.

[0045] The process of determining the soft operation function test result of the power supply to be tested according to the soft operation execution time and the power normal signal includes:

[0046] Determine whether the time difference between the soft operation execution time and the current target time corresponding to the soft operation signal is less than a first preset time;

[0047] If the time is not less than the first preset time, determining that the soft operation function test result of the power supply to be tested is a test failure;

[0048] If it is less than the first preset time, determining whether the power normal signal corresponding to the soft operation signal is received within the target time period after the control timing component stops timing;

[0049] If yes, determine that the soft operation function test result of the power supply to be tested is a test pass;

[0050] If not, it is determined that the soft operation function test result of the power supply to be tested is a test failure.

[0051] To solve the above technical problems, the present invention further provides a power supply testing method, which is applied to a control component in a power supply testing device as described in any one of the above, wherein the power supply testing device further includes a processing component and a timing component, and the power supply testing method includes:

[0052] Outputting a soft operation signal to the power supply to be tested, and controlling the timing component to start timing; the soft operation signal includes a soft start signal or a soft shut-off signal;

[0053] When the state indication voltage is detected, the timing component is controlled to stop timing, and the timing time of the timing component is obtained as the soft operation execution time; the state indication voltage is the voltage output by the processing component when the output voltage of the power supply under test responds to the soft operation signal is within the preset threshold range corresponding to the soft operation signal;

[0054] A soft operation function test result of the power supply to be tested is determined according to the soft operation execution time.

[0055] To solve the above technical problem, the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the power supply testing method described above when executed by a processor.

[0056] In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the power supply testing method described above are implemented.

[0057] The present invention provides a power supply testing device, wherein a control component controls a power supply to be tested to perform a soft start operation or a soft shut-off operation, and a processing component compares a relationship between an output voltage of the power supply to be tested when responding to a soft operation signal and a preset threshold range, thereby determining whether the power supply to be tested responds to the soft operation signal normally, and obtaining a test result of whether the power supply to be tested is powered on and off normally according to the soft operation execution time of the power supply to be tested executing the soft operation signal, thereby realizing a test of a soft start function and a soft shut-off function in the power-on and power-off process of the power supply to be tested, thereby ensuring the normal realization of the soft start function and the soft shut-off function of the power supply to be tested in actual use, avoiding damage caused by instantaneous large current, and ensuring system safety and stability.

[0058] The present invention also provides a power supply testing method, a computer program product and a computer readable storage medium, which have the same beneficial effects as the above power supply testing device. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0060] Figure 1 A schematic diagram of the structure of a first power supply testing device provided by the present invention;

[0061] Figure 2 A schematic diagram of the structure of a power supply to be tested provided by the present invention;

[0062] Figure 3 A power-on and power-off timing diagram of a power supply to be tested provided by the present invention;

[0063] Figure 4 A schematic diagram of the structure of a second power supply testing device provided by the present invention;

[0064] Figure 5 A schematic diagram of the structure of a third power supply testing device provided by the present invention;

[0065] Figure 6 A schematic diagram of the structure of a fourth power supply testing device provided by the present invention;

[0066] Figure 7 A flowchart of a soft operation function testing method provided by the present invention;

[0067] Figure 8 A flow chart of the steps of a power supply testing method provided by the present invention;

[0068] Fig. 9 This is a schematic diagram of the structure of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION

[0069] The core of the present invention is to provide a power supply testing device, method, product and readable storage medium, which can ensure the normal implementation of the soft start function and soft shutdown function of the power supply to be tested during actual use, avoid damage caused by instantaneous large current, and ensure system safety and stability.

[0070] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0071] First, please refer to Figure 1 , Figure 1 This is a schematic diagram of the structure of a power supply testing device provided by the present invention, the power supply testing device comprising:

[0072] The control component 11 is used to output a soft operation signal to the power supply under test, control the timing component 12 to stop timing when the state indication voltage is detected, and obtain the timing time of the timing component 12 as the soft operation execution time, and determine the soft operation function test result of the power supply under test according to the soft operation execution time; the soft operation signal includes a soft start signal or a soft shutdown signal;

[0073] A processing component 13, configured to output a state indicating voltage when the output voltage of the power supply under test in response to the soft operation signal is within a preset threshold range corresponding to the soft operation signal;

[0074] The timing component 12 is used to start timing when the processing component 13 outputs a soft operation signal to the power supply to be tested.

[0075] Please refer to Figure 2 , Figure 2 The structure diagram of a power supply to be tested provided in this embodiment, the power supply to be tested may be a VR power supply, including a power supply controller and a multi-phase voltage regulation circuit, each phase voltage regulation circuit includes two switch tubes, the on or off of the switch tubes is controlled by a PWM signal output by the power supply controller, Figure 2 The switch tube in the circuit is embodied in the form of a MOS tube. Figure 2 In the figure, P1 represents the PWM signal corresponding to the first phase voltage regulation circuit, P2 represents the PWM signal corresponding to the second phase voltage regulation circuit, and so on, PN represents the PWM signal corresponding to the Nth phase voltage regulation circuit, C out Represents the output capacitance of the power supply under test.

[0076] It can be understood that the power supply to be tested has a soft start function when powered on and a soft shut-off function when powered off, so that the power supply to be tested rises slowly at a fixed slope when powered on and falls slowly at a fixed slope when powered off. Figure 3 As shown, Figure 3 This is a power-on and power-off timing diagram of a power supply to be tested provided in this embodiment.

[0077] In order to facilitate testing of the soft start function and soft shutdown function of the power supply to be tested when it is powered on and off, the power supply testing device in this embodiment mainly includes a control component 11, a processing component 13 and a timing component 12, wherein the control component 11 is connected to the power controller of the power supply to be tested so as to control the power supply to be tested to perform a soft start operation or a soft shutdown operation, and the control component 11 is also connected to the timing component 12 so as to trigger the timing component 12 to start timing when a soft start signal or a soft shutdown signal is output to the power supply to be tested, wherein the soft start signal corresponds to the soft start function when the power supply to be tested is powered on, and the soft shutdown signal corresponds to the soft shutdown function when the power supply to be tested is powered off, the soft start operation is the operation performed by the power supply to be tested under the soft start signal, and the soft shutdown operation is the operation performed by the power supply to be tested under the soft shutdown signal.

[0078] The processing component 13 is connected to the output end of the power supply under test to detect whether the output voltage of the power supply under test reaches the set voltage corresponding to the soft start operation currently executed by the power supply under test, and triggers the control component 11 after reaching the set voltage. After detecting the status indication voltage sent by the processing component 13, the control component 11 controls the timing component 12 to stop timing and obtains the timing time of the timing component 12. The timing time is the complete time used by the power supply under test to complete the soft start operation, that is, the soft operation execution time. It can be understood that in this embodiment, a target execution time is set for each soft start operation. If the soft operation execution time and the target execution time are basically consistent, or the error between the two is within a preset range, it means that during this test process, the soft operation function corresponding to the soft operation signal currently executed by the power supply under test can be normally implemented. If the soft operation execution time is inconsistent with the target execution time, or the error between the two is large, it means that during this test process, the soft operation function corresponding to the soft operation signal currently executed by the power supply under test cannot be normally implemented. At this time, the control component 11 performs an error reporting operation.

[0079] Considering that the power supply to be tested has different application environments, such as being applicable to a unified storage array, a server, a notebook, etc., in different application environments, the execution time of the soft operation function of the power supply to be tested during the power on and off process and the set voltage to be achieved may be different. As another optional embodiment, the control component 11 can pre-store the target execution time corresponding to a variety of application environments, and select the currently used target execution time according to the current application environment of the power supply to be tested for comparison with the soft operation execution time during the actual test process. The selection of the target execution time by the control component 11 can be determined according to the user selection signal, or it can be determined by automatically detecting the current application environment. Correspondingly, the preset threshold range in the processing component 13 is also configured as the preset threshold range corresponding to the current application environment, thereby improving the reliability and comprehensiveness of the power supply test. The configuration of the processing component 13 can be implemented by the control component 11, or it can be implemented by other means, and this embodiment is not specifically limited here.

[0080] The soft shutdown signal may be a signal when the enable signal VR_En is at a low level, and the soft start signal may be a signal when the enable signal VR_En is at a high level.

[0081] In this embodiment, the control component 11 can be implemented in the form of a component, circuit, chip or a combination thereof having the above control function. As an optional embodiment, the control component 11 can be implemented using a CPLD (Complex Programmable Logic Device). The processing component 13 can be implemented in the form of a component, circuit, chip or a combination thereof having the above processing function. The timing component 12 can be implemented in the form of a component, circuit, chip or a combination thereof having the above timing function. As an optional embodiment, the timing component 12 can include at least one timer.

[0082] It can be seen that in this embodiment, the control component 11 controls the power supply under test to perform a soft start operation or a soft shutdown operation, and the processing component 13 compares the relationship between the output voltage of the power supply under test when responding to the soft operation signal and the preset threshold range, so as to determine whether the power supply under test responds to the soft operation signal normally, and obtains the test result of whether the power supply under test is powered on and off normally according to the soft operation execution time of the power supply under test executing the soft operation signal, thereby realizing the test of the soft start function and the soft shutdown function during the power on and off process of the power supply under test, thereby ensuring the normal realization of the soft start function and the soft shutdown function of the power supply under test during actual use, avoiding damage caused by instantaneous large current, and ensuring system safety and stability.

[0083] Based on the above embodiments:

[0084] In an exemplary implementation, the state indication voltage includes a first state indication voltage or a second state indication voltage;

[0085] The processing component 13 is specifically used for:

[0086] When the soft operation signal is a soft start signal, if the output voltage of the power supply under test in response to the soft operation signal is greater than or equal to a preset rising voltage threshold, a first state indication voltage is output;

[0087] When the soft operation signal is a soft shut-off signal, if the output voltage of the power supply to be tested in response to the soft operation signal is less than or equal to the preset falling voltage threshold, outputting a second state indication voltage;

[0088] The first state indication voltage and the second state indication voltage have opposite level states, and the preset rising voltage threshold is greater than the preset falling voltage threshold.

[0089] In order to avoid the influence of system fluctuation on the judgment of whether the output voltage reaches the set voltage, based on Figure 3 It can be seen from the power-on and power-off timing diagram of the power supply to be tested that the power supply to be tested implements a soft start function when it is powered on, and its output voltage rises slowly. The power supply to be tested implements a soft shutdown function when it is powered off, and its output voltage drops slowly. In this embodiment, a preset rising voltage threshold and a preset falling voltage threshold are set for the soft start function and the soft shutdown function, respectively. When the power supply to be tested is controlled to be powered on, if the output voltage of the power supply to be tested rises to the preset rising voltage threshold, it is determined that the output voltage of the power supply to be tested reaches the set voltage required to be reached by the soft start function, indicating that the soft start operation of the power supply to be tested is completed, and the first state indication voltage is output at this time. When the power supply to be tested is controlled to be powered off, if the output voltage of the power supply to be tested drops to the preset falling voltage threshold, it is determined that the output voltage of the power supply to be tested reaches the set voltage required to be reached by the soft shutdown function, indicating that the soft shutdown operation of the power supply to be tested is completed, and the second state indication voltage is output at this time. The level states corresponding to the first state indication voltage and the second state indication voltage are opposite, that is, when the first state indication voltage is high, the second state indication voltage is low, and when the first state indication voltage is low, the second state indication voltage is high. By adopting the solution of this embodiment, the processing component 13 will output a high level only when the output voltage of the power supply to be tested is higher than the preset rising voltage threshold, and the processing component 13 will output a low level only when the output voltage of the power supply to be tested is lower than the preset falling voltage threshold. Even if the output voltage fluctuates, the output state of the processing component 13 will not be changed as long as the fluctuation does not meet the above requirements, thereby further improving the test accuracy.

[0090] As an optional embodiment, the preset rising voltage threshold and the preset falling voltage threshold can be determined according to the actual application environment of the power supply to be tested, and the voltage range greater than or equal to the preset rising voltage threshold is determined as the preset threshold range corresponding to the soft start signal, and the voltage range less than or equal to the preset falling voltage threshold is determined as the preset threshold range corresponding to the soft shutdown signal.

[0091] In an exemplary implementation, please refer to Figure 4 , the processing component 13 includes a first resistor R1, a second resistor R2, a third resistor R3 and a comparator cmp, wherein:

[0092] The first end of the first resistor R1 is connected to the output end of the power supply to be tested, the second end of the first resistor R1 is respectively connected to the first end of the second resistor R2 and the non-inverting input end of the comparator cmp, the second end of the second resistor R2 is connected to the output end of the comparator cmp, and the common end outputs a state indication voltage, the first end of the third resistor R3 is connected to the reference voltage source, and the second end of the third resistor R3 is connected to the inverting input end of the comparator cmp. Figure 4 The reference voltage at the output of the reference voltage source is denoted by VREF.

[0093] The processing component 13 in this embodiment is a hysteresis comparison loop mainly composed of a first resistor R1, a second resistor R2, a third resistor R3 and a comparator cmp. The power supply voltage of the comparator cmp is Vcc, and the comparator cmp is in a push-pull output mode, that is, the state indication voltage output by the output terminal of the comparator cmp is 0V or Vcc. According to the circuit structure, the voltage V + , ; wherein r1 is the resistance of the first resistor R1, r2 is the resistance of the second resistor R2, VOUT_STATE is the state indication voltage, and VOUT is the output voltage of the power supply to be tested.

[0094] It can be understood that when the power supply to be tested is not working, VOUT is 0V, VOUT_STATE is also 0V, and the control component 11 sends a soft start signal to the power supply to be tested. After receiving the soft start signal, the power controller of the power supply to be tested turns on the PWM control to make the output voltage VOUT rise at a set slope. When the output voltage VOUT is greater than the preset rising voltage threshold Vrise, the voltage V+ at the in-phase input terminal of the comparator cmp is greater than VREF, so that the output of the comparator cmp becomes higher to Vcc. From the above formula, it can be seen that the output of the comparator cmp changes from low to high, which will further raise the voltage value of V+. At this time, even if the VOUT voltage fluctuates, the comparator cmp will not change its output state. Combined with the above formula, the value of Vrise can be calculated: .

[0095] Similarly, when the control component 11 sends a soft shutdown signal to the power supply under test to shut down the output of the power supply under test, the power controller of the power supply under test controls the PWM duty cycle to make the output voltage VOUT decrease at a set slope. When the output voltage VOUT is less than the preset falling voltage threshold Vfall, the voltage V+ at the in-phase input terminal of the comparator cmp is less than VREF, so that the output of the comparator cmp becomes low to 0V. + From the calculation relationship, it can be seen that the output of comparator cmp changes from high to low, which will further reduce V + At this time, even if the output voltage VOUT fluctuates, the comparator cmp will not change its output state. + The calculation relationship can be used to calculate the value of Vfall:

[0096] , Vcc is the input voltage of the power supply to be tested.

[0097] The function of the hysteresis comparator circuit is to output a high level Vcc when the output voltage VOUT is greater than Vrise, and to output a low level 0V when the output voltage VOUT is less than Vfall. The above two relationships can be used to select appropriate VREF and resistors R1 and R2 values, so that the hysteresis comparator circuit indicates whether the output VOUT of the power supply under test has reached the set voltage: that is, when VOUT reaches the set voltage after the power supply under test is powered on, the hysteresis comparator circuit outputs a high level Vcc, and when VOUT is close to 0V after the power supply under test is powered off, the hysteresis comparator circuit outputs a low level 0V.

[0098] In an exemplary implementation, the process of determining the soft operation function test result of the power supply to be tested according to the soft operation execution time includes:

[0099] Determine whether the time difference between the soft operation execution time and the current target time corresponding to the soft operation signal is less than a first preset time;

[0100] If yes, the soft operation function test result of the power supply under test is determined to be passed;

[0101] If not, it is determined that the soft operation function test result of the power supply under test is a test failure.

[0102] In this embodiment, the current target time and the first preset time can be determined according to the actual application environment of the power supply to be tested. If the time difference between the soft operation execution time and the current target time corresponding to the soft operation signal is less than the first preset time, it means that the test result of the soft operation function corresponding to the current soft operation signal is passed; otherwise, it is failed and an error is reported.

[0103] As an optional embodiment, considering that the test of the soft-off function is generally performed after the test of the soft-on function is completed, the timing component 12 in this embodiment may include a timer to successively time the execution time of the soft-on operation and the execution time of the soft-off operation. During one test, the value of the timer can be cleared twice.

[0104] In an exemplary implementation, referring to Figure 5 , the timing component 12 comprises:

[0105] A first timer 121, configured to start timing upon receiving a first trigger signal;

[0106] A second timer 122, configured to start timing when receiving a second trigger signal;

[0107] The control component 11 is also used to output a first trigger signal when outputting a soft start signal to the power supply to be tested, and to output a second trigger signal when outputting a soft shut-off signal to the power supply to be tested.

[0108] In this embodiment, the timing component 12 includes two timers, wherein the first timer 121 is used to calculate the execution time of the soft-on function, and the second timer 122 is used to calculate the execution time of the soft-off function. During a test, each timer only needs to be cleared once.

[0109] In an exemplary implementation, referring to Figure 6 , the power supply test device also includes:

[0110] The counter 14 is used to increase the count value by 1 when the soft operation function test result of the power supply to be tested is that the test is passed;

[0111] The control component 11 is also used to obtain the count value of the counter 14. When the count value is equal to the set value, it is determined that the power-on and power-off test is completed, and the soft operation signal is stopped from being output to the power supply under test.

[0112] The process of outputting a soft operation signal to the power supply under test includes:

[0113] When the count value is less than the set value, a soft operation signal is output to the power supply under test.

[0114] In this embodiment, in order to improve the reliability of the test, it is necessary to perform multiple power-on and power-off tests on the power supply to be tested, so as to verify whether the soft start function and soft shutdown function of the power supply to be tested can be implemented normally. Therefore, the power supply detection device provided in this embodiment also includes a counter 14, and the number of tests is counted by the counter 14. When the number of tests reaches the set number, it is determined that the test of the power supply to be tested is completed, and there is no need to output the corresponding soft operation signal to the power supply to be tested. If the number of tests does not reach the set number, it is necessary to continue to output the soft operation signal to the power supply to be tested.

[0115] In an exemplary implementation, the current target time includes a first target time and a second target time, and the control component 11 is specifically used to:

[0116] Output a soft start signal to the power supply to be tested, control the first timer 121 to stop timing when the state indication voltage is detected, and obtain the timing time of the first timer 121 as the soft start execution time;

[0117] Determine whether the difference between the soft start execution time and the first target time corresponding to the soft start signal is less than a first preset time;

[0118] If the time is not less than the first preset time, determining that the soft operation function test result of the power supply to be tested is a test failure;

[0119] If it is less than the first preset time, a second preset time is passed, a soft shutdown signal is output to the power supply under test, and when the state indication voltage is detected, the second timer 122 is controlled to stop timing, and the timing time of the second timer 122 is obtained as the soft shutdown execution time;

[0120] Determine whether the difference between the soft shutdown execution time and the second target time corresponding to the soft shutdown signal is less than the first preset time;

[0121] If the time is less than the first preset time, it is determined that the soft operation function test result of the power supply to be tested is passed;

[0122] If it is not less than the first preset time, it is determined that the soft operation function test result of the power supply to be tested is a test failure.

[0123] In this embodiment, the first timer 121 and the second timer 122 respectively count the soft-start time (soft start execution time) and soft-off time (soft shut-off execution time) of the power supply to be tested. The control component 11 pulls the enable signal VR_EN high and enables the first timer 121 to start timing. The power supply to be tested starts to work and makes VOUT rise at a set slope. When VOUT is greater than Vrise, the hysteresis comparison circuit output VOUT_STATE becomes high and notifies the control component 11 that the output voltage reaches the set voltage. Then the control component 11 controls the first timer 121 to stop timing. At this time, the value of the first timer 121 read is the soft-start time. The control component 11 compares the soft-start time with the first target time. If the error is within an acceptable range, the test passes. The control component 11 completes the soft-start time test and starts the soft-off time test after a delay.

[0124] When the soft-off test starts, the control component 11 first pulls down the enable signal VR_EN and enables the second timer 122 to start timing. The power supply to be tested starts to control the PWM duty cycle and makes VOUT decrease at the set slope. When VOUT is less than Vfall, the hysteresis comparison circuit output VOUT_STATE becomes low and notifies the control component 11 that the output voltage is close to 0V. Then the control component 11 controls the second timer 122 to stop timing. At this time, the value of the second timer 122 is the soft-off time. The control component 11 compares the soft-off time with the second target time. If the error is within an acceptable range, the test passes, and the control component 11 completes the soft-off time test. At this time, the control component 11 determines that a complete test is completed.

[0125] The counter 14 is responsible for counting the number of soft-start and soft-off tests. The initial value is 0. Each time a complete soft-start and soft-off test is completed, the count value of the counter 14 is increased by 1. The control component 11 reads the count value of the counter 14. When the set number of tests is reached, it is determined that the entire test of the power supply to be tested is completed.

[0126] In an exemplary implementation, the control component 11 is further configured to determine that the soft operation function test result of the power supply under test is a test failure when the timing time of the timing component 12 is greater than a third preset time and the state indication voltage is not detected.

[0127] Among them, the third preset time can be m times the current target time, where m is an integer greater than 2. For example, when testing the soft start function, the control component 11 waits until more than twice the first target time without detecting a high-level signal, then it will stop the test and output the test result corresponding to the test failure. The same applies to the test of the soft shutdown function.

[0128] In an exemplary implementation, the control component 11 is further used to obtain a power normal signal output by a power controller of the power supply to be tested;

[0129] The process of determining the soft operation function test result of the power supply under test according to the soft operation execution time includes:

[0130] The soft operation function test result of the power supply under test is determined according to the soft operation execution time and the power normal signal.

[0131] In this embodiment, when judging the soft operation function test result of the power supply to be tested, the working state of the power supply controller of the power supply to be tested is also considered. That is, when the level of the normal power signal fed back by the power supply controller and the soft operation execution time meet the requirements of the soft operation function, the soft operation function test result of the power supply to be tested is judged to be passed. If any one of them does not meet the requirements, the test is judged to have failed.

[0132] In an exemplary implementation, the process of determining the soft operation function test result of the power supply to be tested according to the soft operation execution time and the power normal signal includes:

[0133] Determine whether the time difference between the soft operation execution time and the current target time corresponding to the soft operation signal is less than a first preset time;

[0134] If the time is not less than the first preset time, determining that the soft operation function test result of the power supply to be tested is a test failure;

[0135] If it is less than the first preset time, determining whether a power normal signal corresponding to the soft operation signal is received within a target time period after the control timing component 12 stops timing;

[0136] If yes, the soft operation function test result of the power supply under test is determined to be passed;

[0137] If not, it is determined that the soft operation function test result of the power supply under test is a test failure.

[0138] Specific, combined Figure 7The complete soft operation function test process of the power supply under test is described. The control component 11 first clears the count value of the counter 14 and the first timer 121 and the second timer 122. The control component 11 pulls the enable signal EN high and enables the first timer 121 to start timing. The power supply under test starts to work and makes the output voltage VOUT rise at a set slope. When the output voltage VOUT is greater than Vrise, the output VOUT_STATE of the hysteresis comparison circuit becomes high and notifies the control component 11 that the output voltage reaches the set voltage. Then the control component 11 controls the first timer 121 to stop timing. At this time, the value of the first timer 121 is read as the soft-start time. The control component 11 compares the soft-start time with the first target time. If the error is within an acceptable range, the test passes. Otherwise, the test stops and the test failure result is output. Or if the control component 11 waits for more than twice the first target time and does not receive the output voltage VOUT_STATE high level signal, it will also stop the test and output the test failure result. Then, the control component 11 waits for the PWGD signal (power normal signal) of the power supply to be tested to become high. If the PWGD signal does not become high within a reasonable time, it means that the logic of the power supply to be tested is abnormal and the test fails. The control component 11 stops the test and outputs the test failure result. The control component 11 completes the soft-start time test and detects that the PWGD signal becomes high. After a delay, it starts the soft-off time test.

[0139] The control component 11 pulls down the enable signal EN and enables the second timer 122 to start timing. The power supply to be tested starts to control the PWM duty cycle and makes the output voltage VOUT decrease according to the set slope. At the same time, the power supply to be tested will also pull down the PWGD signal. When the output voltage VOUT is less than Vfall, the output VOUT_STATE of the hysteresis comparison circuit becomes low and notifies the control component 11 that the output voltage is close to 0V. Then the control component 11 controls the second timer 122 to stop timing. At this time, the value of the second timer 122 read is the soft-off time. The control component 11 compares the soft-off time with the second target time. If the error is within an acceptable range, the test passes. Or if the control component 11 waits for more than twice the second target time and does not receive a signal that the output voltage VOUT_STATE becomes low, it will also stop the test and output a test failure result. Then the control component 11 waits for the PWGD signal of the power supply to be tested to become low. If the PWGD signal does not become low within a reasonable time, it means that the logic of the power supply to be tested is abnormal and the test fails. The control component 11 stops the test and outputs a test failure result. The control component 11 completes the soft-off time test and detects that the power supply normal signal PWGD signal becomes low, completing a complete test. The control component 11 reads the value of the counter 14. When the set number of tests is reached, the entire test is completed and the test success result is output. If the count value of the counter 14 does not reach the set number of tests, the operation of clearing the timer is entered.

[0140] Second, please refer to Figure 8 The present invention also provides a power supply testing method, which is applied to a control component in a power supply testing device as described in any one of the above embodiments, wherein the power supply testing device further includes a processing component and a timing component, and the power supply testing method includes:

[0141] S101: outputting a soft operation signal to the power supply under test and controlling the timing component to start timing; the soft operation signal includes a soft start signal or a soft shutdown signal;

[0142] S102: when the state indication voltage is detected, the timing component is controlled to stop timing, and the timing time of the timing component is obtained as the soft operation execution time; the state indication voltage is the voltage output by the processing component when the output voltage of the power supply under test responds to the soft operation signal is within the preset threshold range corresponding to the soft operation signal;

[0143] S103: Determine a soft operation function test result of the power supply to be tested according to the soft operation execution time.

[0144] It can be seen that in this embodiment, the control component controls the power supply under test to perform a soft start operation or a soft shutdown operation, and the processing component compares the relationship between the output voltage of the power supply under test when responding to the soft operation signal and the preset threshold range, thereby determining whether the power supply under test responds to the soft operation signal normally, and obtaining the test result of whether the power supply under test is powered on and off normally according to the soft operation execution time of the power supply under test executing the soft operation signal, thereby realizing the test of the soft start function and the soft shutdown function during the power on and off process of the power supply under test, thereby ensuring the normal realization of the soft start function and the soft shutdown function of the power supply under test during actual use, avoiding damage caused by instantaneous large current, and ensuring system safety and stability.

[0145] In a third aspect, the present invention further provides a computer program product, comprising a computer program / instruction, which implements the steps of the power supply testing method as described above when executed by a processor.

[0146] For an introduction to a computer program product provided by the present invention, please refer to the above embodiments, and the present invention will not be described in detail here.

[0147] A computer program product provided by the present invention has the same beneficial effects as the above power supply testing method.

[0148] Fourth, please refer to Fig. 9 The present invention further provides a computer-readable storage medium 20, on which a computer program 21 is stored. When the computer program 21 is executed by a processor, the steps of the power supply testing method described above are implemented.

[0149] For an introduction to a computer-readable storage medium provided by the present invention, please refer to the above embodiments, and the present invention will not be described in detail here.

[0150] A computer-readable storage medium provided by the present invention has the same beneficial effects as the above power supply testing method.

[0151] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0152] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A power supply testing device, characterized in that: include: A control component, used to output a soft operation signal to the power supply under test, control the timing component to stop timing when the state indication voltage is detected, and obtain the timing time of the timing component as the soft operation execution time, and determine the soft operation function test result of the power supply under test according to the soft operation execution time; the soft operation signal includes a soft start signal or a soft shutdown signal; a processing component, configured to output the state indication voltage when the output voltage of the power supply under test in response to the soft operation signal is within a preset threshold range corresponding to the soft operation signal; The timing component is used to start timing when the processing component outputs the soft operation signal to the power supply to be tested; The state indication voltage includes a first state indication voltage or a second state indication voltage; The processing component is specifically used for: When the soft operation signal is the soft start signal, if the output voltage of the power supply under test in response to the soft operation signal is greater than or equal to a preset rising voltage threshold, outputting the first state indication voltage; When the soft operation signal is the soft shutdown signal, if the output voltage of the power supply under test in response to the soft operation signal is less than or equal to a preset falling voltage threshold, outputting the second state indication voltage; The level states of the first state indication voltage and the second state indication voltage are opposite, and the preset rising voltage threshold is greater than the preset falling voltage threshold; The processing component is a hysteresis comparison circuit.

2. The power supply testing device according to claim 1, characterized in that: The processing component includes a first resistor, a second resistor, a third resistor and a comparator, wherein: The first end of the first resistor is connected to the output end of the power supply to be tested, the second end of the first resistor is respectively connected to the first end of the second resistor and the non-inverting input end of the comparator, the common end after the second end of the second resistor is connected to the output end of the comparator outputs the state indication voltage, the first end of the third resistor is connected to the reference voltage source, and the second end of the third resistor is connected to the inverting input end of the comparator.

3. The power supply testing device according to claim 2, characterized in that: The preset rising voltage threshold is calculated based on a first relational expression, where: ; Wherein, Vrise is the preset rising voltage threshold, Vref is the reference voltage output by the reference voltage source, r1 is the resistance value of the first resistor, and r2 is the resistance value of the second resistor.

4. The power supply testing device according to claim 2, characterized in that: The preset falling voltage threshold is calculated based on a second relational expression, where: ; Wherein, Vfall is the preset falling voltage threshold, Vref is the reference voltage output by the reference voltage source, r1 is the resistance value of the first resistor, r2 is the resistance value of the second resistor, and Vcc is the supply voltage of the comparator.

5. The power supply testing device according to claim 1, characterized in that: The process of determining the soft operation function test result of the power supply to be tested according to the soft operation execution time includes: Determine whether the time difference between the soft operation execution time and the current target time corresponding to the soft operation signal is less than a first preset time; If yes, determine that the soft operation function test result of the power supply to be tested is a test pass; If not, it is determined that the soft operation function test result of the power supply to be tested is a test failure.

6. The power supply testing device according to claim 5, characterized in that: The timing component comprises: A first timer, configured to start timing when a first trigger signal is received; A second timer, configured to start timing when receiving a second trigger signal; The control component is further configured to output the first trigger signal when outputting the soft start signal to the power supply to be tested, and output the second trigger signal when outputting the soft shutdown signal to the power supply to be tested.

7. The power supply testing device according to claim 6, characterized in that: The current target time includes a first target time and a second target time, and the control component is specifically used for: Outputting the soft start signal to the power supply to be tested, controlling the first timer to stop timing when the state indication voltage is detected, and obtaining the timing time of the first timer as the soft start execution time; Determine whether a difference between the soft start execution time and the first target time corresponding to the soft start signal is less than the first preset time; If the time is not less than the first preset time, determining that the soft operation function test result of the power supply to be tested is a test failure; If it is less than the first preset time, a second preset time is passed, the soft shutdown signal is output to the power supply under test, the second timer is controlled to stop timing when the state indication voltage is detected, and the timing time of the second timer is obtained as the soft shutdown execution time; Determine whether a difference between the soft shutdown execution time and the second target time corresponding to the soft shutdown signal is less than the first preset time; If the time is less than the first preset time, determining that the soft operation function test result of the power supply to be tested is a test pass; If it is not less than the first preset time, it is determined that the soft operation function test result of the power supply to be tested is a test failure.

8. The power supply testing device according to claim 1, characterized in that: The control component is further configured to determine that a test result of the soft operation function of the power supply to be tested is a test failure when the timing time of the timing component is greater than a third preset time and the state indication voltage is not detected.

9. The power supply testing device according to claim 1, characterized in that: Also includes: A counter, used for adding 1 to the count value when the soft operation function test result of the power supply to be tested is that the test passes; The control component is also used to obtain the count value of the counter, and when the count value is equal to the set value, determine that the power-on and power-off test is completed, and stop outputting the soft operation signal to the power supply under test; The process of outputting a soft operation signal to the power supply under test includes: When the count value is less than the set value, a soft operation signal is output to the power supply to be tested.

10. The power supply testing device according to any one of claims 1 to 9, characterized in that: The control component is also used to obtain a power normal signal output by a power controller of the power supply to be tested; The process of determining the soft operation function test result of the power supply to be tested according to the soft operation execution time includes: A soft operation function test result of the power supply to be tested is determined according to the soft operation execution time and the power normal signal.

11. The power supply testing device according to claim 10, characterized in that: The process of determining the soft operation function test result of the power supply to be tested according to the soft operation execution time and the power normal signal includes: Determine whether the time difference between the soft operation execution time and the current target time corresponding to the soft operation signal is less than a first preset time; If the time is not less than the first preset time, determining that the soft operation function test result of the power supply to be tested is a test failure; If it is less than the first preset time, determining whether the power normal signal corresponding to the soft operation signal is received within the target time period after the control timing component stops timing; If yes, determine that the soft operation function test result of the power supply to be tested is a test pass; If not, it is determined that the soft operation function test result of the power supply to be tested is a test failure.

12. A power supply testing method, characterized in that: A control component applied to a power supply testing device according to any one of claims 1 to 11, wherein the power supply testing device further comprises a processing component and a timing component, and the power supply testing method comprises: Outputting a soft operation signal to the power supply to be tested, and controlling the timing component to start timing; the soft operation signal includes a soft start signal or a soft shut-off signal; When the state indication voltage is detected, the timing component is controlled to stop timing, and the timing time of the timing component is obtained as the soft operation execution time; the state indication voltage is the voltage output by the processing component when the output voltage of the power supply under test responds to the soft operation signal is within the preset threshold range corresponding to the soft operation signal; Determine a soft operation function test result of the power supply to be tested according to the soft operation execution time; The state indication voltage includes a first state indication voltage or a second state indication voltage; The processing component is specifically configured to output the first state indication voltage when the soft operation signal is the soft start signal and the output voltage of the power supply under test in response to the soft operation signal is greater than or equal to a preset rising voltage threshold, and output the second state indication voltage when the soft operation signal is the soft shutdown signal and the output voltage of the power supply under test in response to the soft operation signal is less than or equal to a preset falling voltage threshold; the level states of the first state indication voltage and the second state indication voltage are opposite, and the preset rising voltage threshold is greater than the preset falling voltage threshold; The processing component is a hysteresis comparison circuit.

13. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the power supply testing method as claimed in claim 12 are implemented.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the power supply testing method according to claim 12 are implemented.