Dead time test method of switching power supply, product, equipment and medium
By measuring the average voltage and switching period of the switching power supply driving signal, the dead time is calculated, which solves the problem of difficulty in measuring the dead time in the existing technology, ensures the reliability of the switching power supply and avoids the risk of short circuit.
Patent Information
- Application Number
- CN202411147083.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-08-20
AI Technical Summary
In the PWM control mode of the switching power supply, the PWM drive signals of the upper and lower tubes cannot be turned on at the same time to avoid short-circuit damage to the power supply. However, it is difficult to effectively measure and determine the dead time with existing technology, which affects the reliability of the circuit.
By determining the average voltage of the first and second driving signals in the driver, calculating the ratio of the current switching cycle and the driving voltage, the dead time is measured and calculated to ensure that the dead time accounts for the proportion of the switching cycle, thereby determining the dead time of the driver. .
It is possible to calculate the dead time by measuring the average voltage and switching cycle of the driving signal to ensure the reliability of the switching power supply circuit, avoid the risk of short circuit and optimize the circuit operation.
Smart Images

Figure CN118655490A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a dead time testing method, product, device and medium for a switching power supply. Background Art
[0002] In the PWM (Pulse Width Modulation) control mode of the switching power supply, it is required that the PWM drive signal of the upper tube and the PWM drive signal of the lower tube cannot be turned on at the same time, otherwise it will cause a short circuit in the power supply and burn out the power tube. Taking the switching power supply topology as an example, if the first switch controlled by the PWM drive signal of the upper tube and the second switch controlled by the PWM drive signal of the lower tube are turned on at the same time, the input voltage will be connected to the ground, causing a short circuit, causing damage to the device, or causing the input voltage to drop.
[0003] In order to avoid the first switch and the second switch being turned on at the same time, the project chooses to insert a dead time between the upper tube drive signal and the lower tube drive signal. During the dead time, the upper tube drive signal and the lower tube drive signal are both low, and the first switch and the second switch are controlled to be turned off at the same time to avoid the upper and lower tubes being short-circuited.
[0004] Given the importance of dead time, the dead time of the driving signal needs to be measured to determine the reliability of circuit operation. Summary of the invention
[0005] In view of the above problems, a dead time test method, product, device and medium for a switching power supply are proposed to overcome the above problems or at least partially solve the above problems, including: A dead time testing method for a switching power supply, wherein the switching power supply has a built-in driver, a first transistor, and a second transistor, wherein the driver is used to control the first transistor and the second transistor so that the switching power supply outputs a voltage, and the method comprises: Determine a first average voltage of a first drive signal and a second average voltage of a second drive signal in the driver, wherein the first drive signal is used to drive the first transistor to be turned on, and the second drive signal is used to drive the second transistor to be turned on; Determine the current switching cycle of the first drive signal according to the time interval between two consecutive rising edges corresponding to the first drive signal, and collect the drive voltage corresponding to the first drive signal at a target time, wherein the target time is the middle time between the rising edge and the falling edge of the first drive signal; Determine a first voltage ratio according to the first average voltage, the second average voltage and the driving voltage, wherein the first voltage ratio represents a ratio of the dead time to the current switching cycle; The dead time of the driver is determined according to the current switching cycle and the first voltage ratio.
[0006] In an optional embodiment of the present application, determining a first average voltage of the first drive signal and a second average voltage of the second drive signal in the driver includes: Processing the first drive signal through a first low-pass filter circuit to obtain a first DC component of the first drive signal; The second drive signal is processed by a second low-pass filter circuit to obtain a second DC component of the second drive signal.
[0007] In an optional embodiment of the present application, determining a first average voltage of the first drive signal and a second average voltage of the second drive signal in the driver includes: Sampling the first DC component multiple times by a first analog-to-digital conversion component to obtain multiple first voltages, and averaging the multiple first voltages to obtain a first average voltage of the first drive signal; The second DC component is sampled multiple times by a second analog-to-digital conversion component to obtain multiple second voltages, and the multiple second voltages are averaged to obtain a second average voltage of the second drive signal.
[0008] In an optional embodiment of the present application, a first cutoff frequency of the first low-pass filter circuit and a second cutoff frequency of the second low-pass filter circuit are less than a switching frequency of the first drive signal.
[0009] In an optional embodiment of the present application, the first low-pass filter circuit includes a first resistor and a first capacitor, and the second low-pass filter circuit includes a second resistor and a second capacitor, the resistance values of the first resistor and the second resistor are equal, and the capacitance values of the first capacitor and the second capacitor are equal.
[0010] In an optional embodiment of the present application, determining the current switching period of the first driving signal according to the time interval between two consecutive rising edges corresponding to the first driving signal includes: The first drive signal is captured multiple times by an input capture component to obtain multiple rising edges of the first drive signal.
[0011] In an optional embodiment of the present application, determining the current switching period of the first driving signal according to the time interval between two consecutive rising edges corresponding to the first driving signal includes: By formula Calculating a current switching period of the first driving signal; in, T1 is the time when the rising edge of the first driving signal is captured for the first time; T N For the N capturing the time of the rising edge of the first driving signal for the second time; T SW is the current switching period of the first driving signal.
[0012] In an optional embodiment of the present application, before collecting the driving voltage corresponding to the first driving signal at the target time, the method includes: By formula Calculating a high level duration corresponding to the first driving signal; in, V avg1 is a first average voltage of the first driving signal, V avg2 is a second average voltage of the second driving signal, T high is the high level duration of the first driving signal.
[0013] In an optional embodiment of the present application, the step of collecting the driving voltage corresponding to the first driving signal at the target time includes: The middle moment of the high level duration is determined as the target moment, and the driving voltage corresponding to the first driving signal is collected at the target moment.
[0014] In an optional embodiment of the present application, the step of collecting the driving voltage corresponding to the first driving signal at the target time includes: The third analog-to-digital conversion component is triggered by a timer so that the third analog-to-digital conversion component collects the driving voltage corresponding to the driving signal at a target time.
[0015] In an optional embodiment of the present application, the first voltage ratio is determined based on the first average voltage, the second average voltage and the driving voltage, and the first voltage ratio represents the proportion of the dead time to the current switching cycle, including: The first voltage ratio is calculated by the following formula First voltage ratio = ; in, Vcc is the driving voltage corresponding to the first driving signal.
[0016] In an optional embodiment of the present application, determining the dead time of the driver according to the current switching cycle and the first voltage ratio includes: The dead time of the driver is calculated by the following formula: Dead Time = ; in, V avg1 is a first average voltage of the first driving signal, V avg2 is a second average voltage of the second driving signal, T SW is the current switching period of the first driving signal.
[0017] The embodiment of the present application further discloses a dead time test device for a switching power supply, wherein the switching power supply has a built-in driver, a first transistor, and a second transistor, wherein the driver is used to control the first transistor and the second transistor so that the switching power supply outputs a voltage, and the device comprises: A first determination module, used to determine a first average voltage of a first drive signal and a second average voltage of a second drive signal in the driver, wherein the first drive signal is used to drive the first transistor to be turned on, and the second drive signal is used to drive the second transistor to be turned on; a second determining module, configured to determine a current switching period of the first driving signal according to a time interval between two consecutive rising edges corresponding to the first driving signal, and to collect a driving voltage corresponding to the first driving signal at a target time, wherein the target time is an intermediate time between a rising edge and a falling edge of the first driving signal; A first calculation module, configured to determine a first voltage ratio according to the first average voltage, the second average voltage and the driving voltage, wherein the first voltage ratio represents a ratio of the dead time to the current switching cycle; The second calculation module is used to determine the dead time of the driver according to the current switching cycle and the first voltage ratio.
[0018] The embodiments of the present application also disclose a computer program product, including a computer program / instruction, which, when executed by a processor, implements a dead time testing method for a switching power supply as described in one or more of the embodiments of the present application.
[0019] An embodiment of the present application also discloses an electronic device, including: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the dead time testing method of the switching power supply as described in one or more of the embodiments of the present application.
[0020] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the dead time testing method of the switching power supply as described in one or more of the embodiments of the present application.
[0021] The embodiments of the present invention have the following advantages: The dead time testing method of a switching power supply provided by an embodiment of the present invention determines a first average voltage of a first driving signal and a second average voltage of a second driving signal in a driver, wherein the first driving signal is used to drive the conduction of a first transistor, and the second driving signal is used to drive the conduction of a second transistor, and the current switching cycle of the first driving signal is determined according to the time interval between two consecutive rising edges corresponding to the first driving signal, and the driving voltage corresponding to the first driving signal is collected at a target time, wherein the target time is the middle time between the rising edge and the falling edge of the first driving signal, and a first voltage ratio is determined according to the first average voltage, the second average voltage and the driving voltage, wherein the first voltage ratio represents the proportion of the dead time to the current switching cycle, and the dead time of the driver is determined according to the current switching cycle and the first voltage ratio, so that the dead time is calculated by measuring the average voltage of the driving signal, the current switching cycle and the driving voltage, and the reliability of the operation of the switching power supply circuit is determined by the dead time. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0023] Figure 1 A flowchart of a method for testing the dead time of a switching power supply provided in some embodiments of the present invention; Figure 2 is a circuit diagram of a switching power supply provided by some embodiments of the present invention; Figure 3 is a schematic diagram of timing signals provided by some embodiments of the present invention; Figure 4 is a structural diagram of a dead time test circuit provided by some embodiments of the present invention; Figure 5 It is a structural schematic diagram of a dead time testing device for a switching power supply provided in some embodiments of the present invention. DETAILED DESCRIPTION
[0024] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.
[0025] Reference Figure 1 , shows a flowchart of the dead time test method of a switching power supply provided by some embodiments of the present invention, wherein the switching power supply has a built-in driver, a first transistor and a second transistor, and the driver is used to control the first transistor and the second transistor so that the switching power supply outputs a voltage, and the method may include: Step 101, determining a first average voltage of a first drive signal and a second average voltage of a second drive signal in a driver, wherein the first drive signal is used to drive the first transistor to be turned on, and the second drive signal is used to drive the second transistor to be turned on.
[0026] A switching power supply is a power supply device that is widely used in various electronic devices and systems and adjusts the output voltage through high-frequency switching actions. The driver is the control center in the switching power supply and is responsible for generating and adjusting the control signal to accurately control the switching action of the first transistor and the second transistor. The driver usually has protection functions such as overvoltage protection, overcurrent protection, and short circuit protection. Figure 2 The circuit diagram of the switching power supply provided by the embodiment of the present invention is shown, wherein the first driving signal is used to drive the conduction of the first transistor (upper tube), and the second driving signal is used to drive the conduction of the second transistor (lower tube). Among them, the first driving signal is PWMH (Pulse Width Modulation High, high-level pulse width modulation), PWMH is a technology for controlling the signal by changing the pulse width, and the second driving signal is PWML (Pulse Width Modulation Low, low-level pulse width modulation), PWML is also a technology for controlling the signal by changing the pulse width. Both technologies are variants of pulse width modulation (PWM), which are used to achieve precise signal control in different applications. By adjusting the width of the pulse, the average voltage or power of the output signal can be effectively controlled, thereby achieving precise control of the device or system.
[0027] from Figure 2 It can be seen from the circuit shown in that when the first transistor is turned on and the second transistor is turned off, the input voltage stores energy in the inductor and the current in the inductor increases. When the first transistor is turned off and the second transistor is turned on, the inductor continues to flow through the second transistor and the current in the inductor decreases. If the first transistor is turned on and the second transistor is turned on at the same time, the input voltage will be connected to the ground, causing a short circuit, causing device damage, or causing the input voltage to drop. In order to avoid the first transistor being turned on and the second transistor being turned on at the same time, the project chooses to insert a dead time between the first drive signal (PWMH) and the second drive signal (PWML). During the dead time, the first drive signal and the second drive signal are both at a low level, that is, the first transistor and the second transistor are controlled to be turned off at the same time, avoiding the short circuit caused by the upper and lower tubes being directly connected. Figure 3 As shown, it is a schematic diagram of timing signals provided in some embodiments of the present invention. It can be seen from the figure that the first drive signal (PWMH) is the drive signal of the first transistor of the upper tube, and the second drive signal (PWML) is the drive signal of the second transistor of the lower tube. When the first drive signal is at a high level, the second drive signal is at a low level, and when the first drive signal is at a low level, the second drive signal is at a high level.
[0028] There is a gap between the falling edge of the first drive signal (PWMH) changing from high to low and the rising edge of the second drive signal (PWML) changing from low to high. This gap is the dead time. Figure 3 Similarly, there is also a dead time between the falling edge of the second drive signal (PWML) changing from high to low and the rising edge of the first drive signal (PWMH) changing from low to high, as shown in the figure below. Figure 3 As shown by the mark between the two dotted lines on the right, the two dead time periods are equal. It can be understood that if there is no dead time, then under normal circumstances, the corresponding high and low level average voltages of the first drive signal and the average voltages of the high and low levels of the second drive signal are equal to half of the drive voltage. After the dead time is introduced, the average voltage of the second drive signal will change. In order to measure the dead time of the drive signal, the average voltage of the first drive signal in the driver and the average voltage of the second drive signal in the driver can be determined first.
[0029] In some embodiments of the present invention, step 101 may further include the following sub-steps: Sub-step 11: Processing the first drive signal through a first low-pass filter circuit to obtain a first DC component of the first drive signal.
[0030] like Figure 4As shown, it is a dead time test circuit structure diagram provided by some embodiments of the present invention. The device to be tested connects the first drive signal, the second drive signal and the ground signal (GND, Ground) to the test device. The first drive signal passes through the first low-pass filter circuit, and is sent to the first analog-to-digital conversion component of the controller after filtering to collect the voltage average value of the first drive signal, wherein the first low-pass filter circuit plays a first-order filtering role. Among them, the embedded controller can be a microcontroller unit, or it can be a CPLD (Complex Programmable Logic Device), DSP (Digital Signal Processor), ASIC (Application-Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), etc., and the present invention does not limit this.
[0031] In a specific implementation, the first drive signal is filtered by a first low-pass filter circuit, low-frequency signals are allowed to pass through and high-frequency signals are blocked, and AC components are filtered out, thereby obtaining a DC component of the first drive signal.
[0032] Sub-step 12: Processing the second drive signal through a second low-pass filter circuit to obtain a second DC component of the second drive signal.
[0033] In a specific implementation, similar to sub-step 11, the second drive signal is filtered by a second low-pass filter circuit, allowing low-frequency signals to pass through and blocking high-frequency signals, filtering out AC components, and thus obtaining a DC component corresponding to the second drive signal.
[0034] In some embodiments of the present invention, step 101 may further include the following sub-steps: Sub-step 21: sampling the first DC component multiple times through the first analog-to-digital conversion component to obtain multiple first voltages, and averaging the multiple first voltages to obtain a first average voltage of the first drive signal.
[0035] Depend on Figure 4 As shown in the figure, the first drive signal is sent to the first analog-to-digital conversion component of the controller after passing through the first low-pass filter circuit to collect the first average voltage of the first drive signal. V avg1 .
[0036] In a specific implementation, the first analog-to-digital conversion component can be specifically an ADC (Analog-to-Digital Converter) sampling module. ADC is an electronic device or circuit used to convert analog signals into digital signals. ADC is a bridge connecting the analog world and the digital world and is widely used in various electronic systems, such as data acquisition systems, communication systems, audio processing, video processing, control systems, etc. The main functions and features of the ADC sampling module include: sampling, ADC samples the input analog signal at a certain frequency, that is, measuring the voltage value of the analog signal at a specific time point; quantization, the sampled analog signal value is converted into digital form, this process is called quantization, during the quantization process, ADC maps the continuous analog signal value to a limited discrete digital value.
[0037] Therefore, the first analog-to-digital conversion component (ADC sampling module) can be used to sample the first drive signal multiple times to obtain an average value to obtain a first average voltage. For example, the first average voltage can be obtained by arithmetic mean. If the sampling is performed 100 times to obtain the values of V1, V2, ... V100, the first average voltage can be obtained by summing V1, V2, ... V100 and dividing it by the number of times 100. The specific algorithm for the first average voltage is not specifically limited in the present invention and can be adjusted according to actual conditions.
[0038] Sub-step 22: sampling the second DC component multiple times through the second analog-to-digital conversion component to obtain multiple second voltages, and averaging the multiple second voltages to obtain a second average voltage of the second drive signal.
[0039] Similar to sub-step 21, Figure 4 The second analog-to-digital conversion component (ADC sampling module) samples the second driving signal multiple times and calculates the average value to obtain a second average voltage V avg2 The sampling and calculation logic are consistent with the sampling and calculation logic of the first analog-to-digital conversion component, and will not be repeated here.
[0040] In some embodiments of the present invention, a first cutoff frequency of the first low-pass filter circuit and a second cutoff frequency of the second low-pass filter circuit are less than a switching frequency of the first drive signal.
[0041] It can be seen from the above content that the present application smoothes the PWM signal and reduces its high-frequency components by designing a first low-pass filter circuit and a second low-pass filter circuit. In order to achieve this goal, the cut-off frequency can be lower than the switching frequency of the first drive signal by selecting appropriate filter parameters. The following are the steps and considerations for achieving this goal: First, it is necessary to determine the switching cycle or switching frequency of the switching power supply; second, select the filter type. Common filter types include RC low-pass filter, LC low-pass filter, Butterworth filter, Chebyshev filter, etc. Specifically, the first drive signal can be filtered by an RC filter, and the present invention does not specifically limit the selection of this filter.
[0042] For an RC low-pass filter, the cut-off frequency is calculated as: fc = , where R is the resistance value in the RC low-pass filter (unit: ohm, Ω), and C is the capacitance value in the RC low-pass filter (unit: farad, F). Secondly, it is necessary to select appropriate resistance and capacitance values. It can be understood that in some practical cases, in order to make the cutoff frequency of the filter lower than the switching frequency of the first drive signal, it is necessary to select sufficiently large R and C values. For example, if the switching frequency of the first drive signal is 100kHz, the values of R and C can be selected so that the cutoff frequency calculated by the fc formula is much lower than 100kHz, such as 10kHz or lower. Assuming that the switching frequency of the first drive signal is 100kHZ, it is necessary to select appropriate resistance and capacitance values to ensure that the cutoff frequency of the first low-pass filter circuit and the cutoff frequency of the second low-pass filter circuit are both less than the switching frequency of the first drive signal.
[0043] In some embodiments of the present invention, the first low-pass filter circuit includes a first resistor and a first capacitor, and the second low-pass filter circuit includes a second resistor and a second capacitor. The resistance values of the first resistor and the second resistor are equal, and the capacitance values of the first capacitor and the second capacitor are equal.
[0044] Specifically, the first low-pass filter circuit includes R1 and C1, where R1 is the first resistor and C1 is the first capacitor. The second low-pass filter circuit includes R2 and C2, where R2 is the second resistor and C2 is the second capacitor. When the first resistor and the second resistor have the same resistance value and the first capacitor and the second capacitor have the same resistance value, the two filter circuits will have the same cutoff frequency, which means that they start to attenuate the signal at the same frequency point, which is very important for applications that require a consistent frequency response throughout the system. In addition, using the same parameters can simplify the circuit design and analysis process. Engineers do not need to calculate and optimize parameters for each filter circuit separately, thereby saving time and resources. During debugging and maintenance, the same parameters make it easier to locate and repair problems. If a filter circuit has a problem, it can be more easily inferred that the problem may be in the general part of the circuit rather than a specific parameter setting.
[0045] Step 102: determine the current switching period of the first driving signal according to the time interval between two consecutive rising edges corresponding to the first driving signal, and collect the driving voltage corresponding to the first driving signal at the target time.
[0046] The current switching cycle of the first drive signal refers to the time required for the driver to complete a complete switching action (including opening and closing) when controlling a switching power supply or other switching circuit. The rising edge refers to the moment when the drive signal jumps from a low level (logic 0) to a high level (logic 1). A logic analyzer or other measuring equipment is used to capture the waveform of the first drive signal. The rising edge is the jump point of the signal from a low level to a high level.
[0047] The driving voltage corresponding to the first driving signal refers to the voltage signal used to control the driving element. This driving voltage determines the switching state of the driving element, that is, whether it is on or off. In applications such as switching power supplies and motor control, the driving voltage is a key parameter because it directly affects the performance of the driving element and the working state of the entire circuit. The driving element can be a MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor) or an IGBT (Insulated Gate Bipolar Transistor).
[0048] In a specific implementation, two consecutive rising edges are identified in the captured signal waveform, and the time interval between the two consecutive rising edges is measured. This time interval is the current switching cycle of the first drive signal. In addition, the target time is the middle time of the rising edge and the falling edge of the first drive signal. The drive voltage corresponding to the first drive signal is collected at the target time to avoid the rising edge and the falling edge, eliminate the influence of the level jitter, and thus obtain a more accurate drive voltage.
[0049] In some embodiments of the present invention, step 102 includes the following sub-steps: Sub-step 31: Capture the first drive signal multiple times through the input capture component to obtain multiple rising edges of the first drive signal.
[0050] In the specific implementation, Figure 4 The input capture component in the controller may be an input capture unit (IC), which is a functional module in the controller and is mainly used to measure the time interval or frequency of an external signal. The IC can be used for the following applications: measuring pulse width, by capturing the rising and falling edges of the external signal to calculate the duration of the pulse; measuring the period, by capturing continuous rising or falling edges to calculate the period of the signal; and measuring the frequency, by measuring the period of the signal to calculate the frequency of the signal. The present application captures PWMH multiple times through IC to capture multiple continuous rising edges of the PWMH signal.
[0051] In some embodiments of the present invention, step 102 may further include the following sub-steps: Sub-step 41: By formula A current switching period of the first driving signal is calculated.
[0052] in, T 1 is the time when the rising edge of the first driving signal is captured for the first time; T N For the N capturing the time of the rising edge of the first driving signal for the second time; T SW is the current switching period of the first driving signal.
[0053] Usually, IC is used in conjunction with a timer module. When a specific edge of an external signal (such as a rising edge or a falling edge) is detected, the capture unit saves the current timer count value into a register. The input capture component IC is used to capture the rising edge of the first drive signal. The difference between the timer count values recorded by the two captures is the switching period. T SW .like Figure 4As shown in the figure, the input capture component is used in conjunction with the timer, and then the error caused by the jitter of the driving signal rising edge is reduced by averaging multiple captures. For example, the count value of the timer TIM (Timer) when the input capture component IC captures the rising edge for the first time is T 1, then trigger multiple IC captures continuously and record the N When the IC captures the rising edge, the count value of the timer TIM is T N , using the formula The average time interval between two consecutive rising edges is obtained, that is, the current switching period of the first drive signal.
[0054] In some embodiments of the present invention, before collecting the driving power corresponding to the first driving signal at the target time, the following sub-steps are included: By formula Calculate the high level duration corresponding to the first driving signal; in, V avg1 is a first average voltage of the first driving signal, V avg2 is a second average voltage of the second driving signal, T high is the high level duration of the first driving signal.
[0055] Depend on Figure 3 It can be seen from the timing signal diagram that the first driving signal maintains the driving voltage from the rising edge to the falling edge. Figure 4 In the embodiment, a timer can be used to trigger the third analog-to-digital conversion component to sample the first drive signal to obtain a drive voltage. However, in order to avoid the rising edge and the falling edge and eliminate the influence of level jitter, the sampling time of the third analog-to-digital conversion component needs to be located in the middle of the rising edge and the falling edge of the first drive signal. The high level duration corresponding to the first drive signal can be calculated by the above formula, so as to collect the drive voltage at the middle position of the high level duration.
[0056] In some embodiments of the present invention, the step of collecting the driving voltage corresponding to the first driving signal at the target time includes the following sub-steps: The middle moment of the high level duration is determined as the target moment, and the driving voltage corresponding to the first driving signal is collected at the target moment.
[0057] The duration of the high level can be determined by the above steps, so the middle moment of the high level duration can be taken as the target moment. Specifically, the T high Divide by 2 to get the middle time Thigh / 2, and then the middle moment T high / 2 is determined as the target time, and the driving voltage corresponding to the first driving signal is collected at the target time.
[0058] In some embodiments of the present invention, the step of collecting the driving voltage corresponding to the first driving signal at the target time includes the following sub-steps: The third analog-to-digital conversion component is triggered by the timer so that the third analog-to-digital conversion component collects the driving voltage corresponding to the driving signal at the target time.
[0059] The target time for collecting the driving voltage can be determined by the above steps. Specifically, when the input capture component IC captures the rising edge of the first driving signal, the timer TIM starts counting. When the count reaches T high / 2, the third analog-to-digital conversion component is triggered to sample, then the sampling moment of the third analog-to-digital conversion component is located in the middle moment between the rising edge and the falling edge of the first drive signal, so as to obtain a more stable and accurate drive voltage.
[0060] Step 103, determining a first voltage ratio according to the first average voltage, the second average voltage and the driving voltage, wherein the first voltage ratio represents the ratio of the dead time to the current switching cycle.
[0061] As described in step 101, if there is no dead time, then the sum of the average voltage of the first drive signal and the average voltage of the second drive signal must be equal to the drive voltage. After the dead time is introduced, the sum of the average voltage of the first drive signal and the average voltage of the second drive signal will be lower than the drive voltage. It can be understood that the part where the sum of the average voltage is lower than the drive voltage is caused by the dead time. Therefore, based on the average voltage of the first drive signal, the average voltage of the second drive signal and the drive voltage, a ratio, namely the first voltage ratio, can be determined, which can characterize the ratio of the dead time to the switching period.
[0062] In some embodiments of the present invention, step 103 may include the following sub-steps: Sub-step 51: Calculate the first voltage ratio by the following formula: First voltage ratio = ;in, Vcc is the driving voltage corresponding to the first driving signal.
[0063] Depend on Figure 3It can be seen from the timing signal in that due to the introduction of dead time, the sum of the average voltage of the first drive signal and the average voltage of the second drive signal will be less than the drive voltage. Therefore, the voltage difference caused by the dead time can be calculated by the above formula, and then the first voltage ratio of the voltage difference to the drive voltage can be calculated, and this first voltage ratio can represent the proportion of the dead time to the entire switching period.
[0064] Step 104, determining the dead time of the driver according to the current switching cycle and the first voltage ratio.
[0065] Since the first voltage ratio represents the ratio of the dead time to the entire switching period, the dead time of the driver can be determined according to the current switching period and the first voltage ratio.
[0066] In a specific implementation, the dead time of the driver can be obtained by multiplying the first voltage ratio by the current switching cycle. The switching frequency of the first drive signal is the inverse of the switching cycle. For example, the switching frequency of a low-frequency switching power supply is usually below tens of kilohertz (kHz), 50kHz to 100kHz; the switching frequency of a medium-frequency switching power supply is usually between 100kHz and 500kHz. The switching frequency of a high-frequency switching power supply is usually between 500kHz and several megahertz (MHz). That is to say, the switching cycle of a switching power supply is usually between a few microseconds and a few hundred nanoseconds. Assuming that the switching cycle of the switching power supply is 20μs and the first voltage ratio is 5%, the dead time can be determined to be 1μs through this solution. Then, by judging whether the calculated dead time falls within an allowable range, it is determined whether the test result is successful or failed to determine the reliability of the circuit operation.
[0067] In some embodiments of the present invention, step 104 includes the following sub-steps: Sub-step 61: Calculate the dead time of the driver by the following formula: Dead Time = ; in, V avg1 is a first average voltage of the first driving signal, V avg2 is a second average voltage of the second driving signal, T SW is the current switching cycle of the first drive signal Depend on Figure 3It can be seen that there is also a dead time between the falling edge of the second drive signal from high to low and the rising edge of the first drive signal from low to high, which is equal to the dead time between the falling edge of the first drive from high to low and the rising edge of the second drive signal from low to high. Therefore, the total time of the two dead times can be obtained by dividing the first voltage ratio and the switching period calculated in the above steps, and then divided by 2 to get the time length of one dead time. It can be understood that after integrating the formulas in the above steps, the dead time = , that is, the dead time is calculated by measuring the average voltage of the driving signal, the current switching cycle and the driving voltage. If the dead time is too small, there will be a risk of short circuit between the upper and lower tubes. If the dead time is too large, the circuit conversion efficiency will be reduced. Therefore, through the steps of this solution, the test user determines the dead time, and then it can be determined whether the dead time falls within an allowable range. If the dead time is within the allowable range, the test passes, otherwise the test fails.
[0068] In some embodiments of the present invention, the following steps may also be included: On the basis of calculating the dead time, a dead time optimization algorithm based on machine learning is developed. By learning historical data and real-time feedback, the dead time is predicted and adjusted to achieve the best switching performance and system efficiency. Specifically, a large amount of historical operation data can be collected and trained using machine learning models to predict the best dead time. Adaptive dead time compensation technology can also be used to automatically compensate for dead time according to the characteristics of transistors and changes in the external environment to reduce switching losses and improve system stability. Specifically, it can be used in Figure 4 The circuit shown integrates sensors and feedback circuits to monitor the switching state of the transistor and external environmental parameters in real time, and analyzes these data through algorithms to automatically calculate and compensate for the dead time to adapt to transistor aging and environmental changes. An algorithm can also be integrated to process multiple parameters (voltage, current, temperature, transistor characteristics, etc.) at the same time, and through weighted and optimized calculations, the best dead time setting is obtained to improve the adaptability and stability of the system.
[0069] The dead time testing method of a switching power supply provided by an embodiment of the present invention determines a first average voltage of a first driving signal and a second average voltage of a second driving signal in a driver, wherein the first driving signal is used to drive the conduction of a first transistor, and the second driving signal is used to drive the conduction of a second transistor, and the current switching cycle of the first driving signal is determined according to the time interval between two consecutive rising edges corresponding to the first driving signal, and the driving voltage corresponding to the first driving signal is collected at a target time, wherein the target time is the middle time between the rising edge and the falling edge of the first driving signal, and a first voltage ratio is determined according to the first average voltage, the second average voltage and the driving voltage, wherein the first voltage ratio represents the proportion of the dead time to the current switching cycle, and the dead time of the driver is determined according to the current switching cycle and the first voltage ratio, so that the dead time is calculated by measuring the average voltage of the driving signal, the current switching cycle and the driving voltage, and the reliability of the operation of the switching power supply circuit is determined by the dead time.
[0070] Reference Figure 5 , shows a schematic diagram of the structure of a dead time testing device for a switching power supply provided by some embodiments of the present invention, such as Figure 5 As shown, the device may include: A first determination module 501, used to determine a first average voltage of a first drive signal and a second average voltage of a second drive signal in the driver, wherein the first drive signal is used to drive the first transistor to be turned on, and the second drive signal is used to drive the second transistor to be turned on; A second determination module 502 is used to determine a current switching period of the first drive signal according to a time interval between two consecutive rising edges corresponding to the first drive signal, and collect a drive voltage corresponding to the first drive signal at a target time, wherein the target time is an intermediate time between a rising edge and a falling edge of the first drive signal; A first calculation module 503, configured to determine a first voltage ratio according to the first average voltage, the second average voltage and the driving voltage, wherein the first voltage ratio represents a ratio of the dead time to the current switching cycle; The second calculation module 504 is used to determine the dead time of the driver according to the current switching cycle and the first voltage ratio.
[0071] In an optional embodiment of the present application, the first determining module 501 further includes: The first filtering submodule is used to process the first driving signal through a first low-pass filtering circuit to obtain a first DC component of the first driving signal.
[0072] The second filtering submodule is used to process the second driving signal through a second low-pass filtering circuit to obtain a second DC component of the second driving signal.
[0073] In an optional embodiment of the present application, the first determining module 501 further includes: A first determination submodule, configured to perform multiple sampling of the first DC component through a first analog-to-digital conversion component to obtain multiple first voltages, and average the multiple first voltages to obtain a first average voltage of the first drive signal; The second determination submodule is used to sample the second DC component multiple times through a second analog-to-digital conversion component to obtain multiple second voltages, and average the multiple second voltages to obtain a second average voltage of the second drive signal.
[0074] In an optional embodiment of the present application, a first cutoff frequency of the first low-pass filter circuit and a second cutoff frequency of the second low-pass filter circuit are less than a switching frequency of the first drive signal.
[0075] In an optional embodiment of the present application, the first low-pass filter circuit includes a first resistor and a first capacitor, and the second low-pass filter circuit includes a second resistor and a second capacitor, the resistance values of the first resistor and the second resistor are equal, and the capacitance values of the first capacitor and the second capacitor are equal.
[0076] In an optional embodiment of the present application, the second determining module 502 further includes: The first capture submodule is used to capture the first drive signal multiple times through an input capture component to obtain multiple rising edges of the first drive signal.
[0077] In an optional embodiment of the present application, the second determining module 502 further includes: The period determination submodule is used to determine the period through the formula Calculating a current switching period of the first driving signal; in, T 1 is the time when the rising edge of the first driving signal is captured for the first time; T N For the N capturing the time of the rising edge of the first driving signal for the second time; T SW is the current switching period of the first driving signal.
[0078] In an optional embodiment of the present application, the second determining module 502 further includes: The time calculation submodule is used to calculate the time through the formula Calculating a high level duration corresponding to the first driving signal; in, V avg1is a first average voltage of the first driving signal, V avg2 is a second average voltage of the second driving signal, T high is the high level duration of the first driving signal.
[0079] In an optional embodiment of the present application, the second determining module 502 further includes: The target time determination submodule is used to determine the middle time of the high level duration as the target time, and collect the driving voltage corresponding to the first driving signal at the target time.
[0080] In an optional embodiment of the present application, the second determining module 502 further includes: The driving voltage acquisition submodule is used to trigger the third analog-to-digital conversion component through a timer so that the third analog-to-digital conversion component acquires the driving voltage corresponding to the driving signal at a target time.
[0081] In an optional embodiment of the present application, the first calculation module 503 includes: The voltage calculation submodule is used to calculate the first voltage ratio using the following formula First voltage ratio = ; in, Vcc is the driving voltage corresponding to the first driving signal.
[0082] In an optional embodiment of the present application, the second calculation module 504 includes: The dead time calculation submodule is used to calculate the dead time of the driver by the following formula: Dead Time = ; in, V avg1 is a first average voltage of the first driving signal, V avg2 is a second average voltage of the second driving signal, T SW is the current switching period of the first driving signal.
[0083] The dead time testing method of a switching power supply provided by an embodiment of the present invention determines a first average voltage of a first driving signal and a second average voltage of a second driving signal in a driver, wherein the first driving signal is used to drive the conduction of a first transistor, and the second driving signal is used to drive the conduction of a second transistor, and the current switching cycle of the first driving signal is determined according to the time interval between two consecutive rising edges corresponding to the first driving signal, and the driving voltage corresponding to the first driving signal is collected at a target time, wherein the target time is the middle time between the rising edge and the falling edge of the first driving signal, and a first voltage ratio is determined according to the first average voltage, the second average voltage and the driving voltage, wherein the first voltage ratio represents the proportion of the dead time to the current switching cycle, and the dead time of the driver is determined according to the current switching cycle and the first voltage ratio, so that the dead time is calculated by measuring the average voltage of the driving signal, the current switching cycle and the driving voltage, and the reliability of the operation of the switching power supply circuit is determined by the dead time.
[0084] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, and when the computer program / instruction is executed by a processor, the dead time testing method of the switching power supply as described above is implemented.
[0085] An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the dead time testing method of the switching power supply as described above is implemented.
[0086] An embodiment of the present invention further provides a non-volatile readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the dead time testing method of the switching power supply as described above is implemented.
[0087] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0088] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0089] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0090] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0091] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0092] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0093] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0094] Finally, it should be noted that, in this article, 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 "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal 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 terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the above elements.
[0095] The dead time testing method and device of a switching power supply provided above are introduced in detail. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for testing the dead time of a switching power supply, characterized in that: The switching power supply has a built-in driver, a first transistor and a second transistor, the driver is used to control the first transistor and the second transistor so that the switching power supply outputs a voltage, and the method includes: Determine a first average voltage of a first drive signal and a second average voltage of a second drive signal in the driver, wherein the first drive signal is used to drive the first transistor to be turned on, and the second drive signal is used to drive the second transistor to be turned on; Determine the current switching cycle of the first drive signal according to the time interval between two consecutive rising edges corresponding to the first drive signal, and collect the drive voltage corresponding to the first drive signal at a target time, wherein the target time is the middle time between the rising edge and the falling edge of the first drive signal; Determine a first voltage ratio according to the first average voltage, the second average voltage and the driving voltage, wherein the first voltage ratio represents a ratio of the dead time to the current switching cycle; The dead time of the driver is determined according to the current switching cycle and the first voltage ratio.
2. The method according to claim 1, characterized in that The determining of a first average voltage of a first driving signal and a second average voltage of a second driving signal in the driver comprises: Processing the first drive signal through a first low-pass filter circuit to obtain a first DC component of the first drive signal; The second drive signal is processed by a second low-pass filter circuit to obtain a second DC component of the second drive signal.
3. The method according to claim 2, characterized in that The determining of a first average voltage of a first driving signal and a second average voltage of a second driving signal in the driver comprises: Sampling the first DC component multiple times by a first analog-to-digital conversion component to obtain multiple first voltages, and averaging the multiple first voltages to obtain a first average voltage of the first drive signal; The second DC component is sampled multiple times by a second analog-to-digital conversion component to obtain multiple second voltages, and the multiple second voltages are averaged to obtain a second average voltage of the second drive signal.
4. The method according to claim 2, characterized in that: A first cutoff frequency of the first low-pass filter circuit and a second cutoff frequency of the second low-pass filter circuit are less than a switching frequency of the first drive signal.
5. The method according to claim 2, characterized in that: The first low-pass filter circuit includes a first resistor and a first capacitor, and the second low-pass filter circuit includes a second resistor and a second capacitor. The resistance values of the first resistor and the second resistor are equal, and the capacitance values of the first capacitor and the second capacitor are equal.
6. The method according to claim 1, characterized in that The determining the current switching period of the first driving signal according to the time interval between two consecutive rising edges corresponding to the first driving signal includes: The first drive signal is captured multiple times by an input capture component to obtain multiple rising edges of the first drive signal.
7. The method according to claim 6, characterized in that The determining the current switching period of the first driving signal according to the time interval between two consecutive rising edges corresponding to the first driving signal includes: By formula Calculating a current switching period of the first driving signal; in, T 1 is the time when the rising edge of the first driving signal is captured for the first time; T N For the N capturing the time of the rising edge of the first driving signal for the second time; T SW is the current switching period of the first driving signal.
8. The method according to claim 7, characterized in that Before collecting the driving voltage corresponding to the first driving signal at the target time, the method includes: By formula Calculating a high level duration corresponding to the first driving signal; in, V avg1 is a first average voltage of the first driving signal, V avg2 is a second average voltage of the second driving signal, T high is the high level duration of the first driving signal.
9. The method according to claim 8, characterized in that The step of collecting the driving voltage corresponding to the first driving signal at the target time includes: The middle moment of the high level duration is determined as the target moment, and the driving voltage corresponding to the first driving signal is collected at the target moment.
10. The method according to claim 9, characterized in that The step of collecting the driving voltage corresponding to the first driving signal at the target time includes: The third analog-to-digital conversion component is triggered by a timer so that the third analog-to-digital conversion component collects the driving voltage corresponding to the first driving signal at a target time.
11. The method according to claim 8, characterized in that The determining a first voltage ratio according to the first average voltage, the second average voltage and the driving voltage comprises: The first voltage ratio is calculated by the following formula First voltage ratio = ; in, Vcc is the driving voltage corresponding to the first driving signal.
12. The method according to claim 11, characterized in that Determining the dead time of the driver according to the current switching cycle and the first voltage ratio includes: The dead time of the driver is calculated by the following formula: Dead Time = ; in, V avg1 is a first average voltage of the first driving signal, V avg2 is a second average voltage of the second driving signal, T SW is the current switching cycle.
13. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the dead time testing method for a switching power supply according to any one of claims 1 to 12 is implemented.
14. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the dead time testing method of the switching power supply according to any one of claims 1 to 12 is implemented.
15. A non-volatile readable storage medium, characterized in that: The non-volatile readable storage medium stores a computer program, and when the computer program is executed by a processor, the dead time testing method of a switching power supply according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Pulse signal test device and pulse signal test method based on DSP (digital signal processor) control
CN104678187A
PWM wave duty ratio measuring method under industrial noise condition
CN108872692A
Dead zone time measuring method of motor controller
CN109756100A
Automatic dead time optimization system in CCM of primary side feedback type flyback power supply
CN109995228A
Dead zone compensation method and device, motor driver and storage medium
CN113612381A
