A method for testing a power module stall
By collecting the three-phase output current when the motor is in a locked-rotor state and performing closed-loop current regulation, combined with PWM wave control, the problem of inaccurate feedback current in the existing technology is solved, and accurate locked-rotor testing of the power module is achieved, improving efficiency. Test accuracy and efficiency.
Patent Information
- Application Number
- CN202210580564.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-25
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-05-25
AI Technical Summary
Existing motor stall testing methods have inaccurate feedback current, resulting in the inability to accurately control the stall current and unable to fully verify the reliability of the power module.
Using a three-phase motor in a locked-rotor state, by collecting the effective value of the three-phase output current, the current closed-loop PI adjustment is performed, the duty cycle value is output, and the on-off and on-off of the power tube are controlled through PWM wave generation to ensure that each circuit The power unit meets specific level conditions during each PWM cycle to evaluate the performance of the power module.
It achieves accurate stall testing of the six bridge arms of the power module, avoids equipment damage caused by manual errors, and improves the accuracy and efficiency of the test.
Smart Images

Figure CN115032536B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of power module testing, and in particular to a power module stall testing method. Background Art
[0002] Usually, when an electric vehicle is in a stationary state (i.e., the motor is in a stalled state), the motor controller outputs a DC current. At this time, the power module in the controller is in the most severe working state. The reliability of the power module plays a vital role in the stability of the vehicle in the stationary state. To ensure the reliability of the power module in actual applications, a motor stall test is required on the test bench to make the power module output a DC current to verify its reliability.
[0003] At present, a mechanical latch is generally used to directly lock the motor shaft to prevent it from rotating. However, this method has the following problems: First, the number of motor angles that can be blocked by the latch is limited and the blocked angle is random, and the power module itself has 6 bridge arms. This method cannot accurately verify the 6 bridge arms; secondly, because the current calculated in the software is based on three-phase AC current, and the DC current is used when the rotor is blocked, the calculated feedback current is inaccurate, which makes it impossible to accurately control the stall current to test the power module. Summary of the invention
[0004] Based on this, the present invention provides a power module stall test method to solve the technical problem that the motor stall test method in the prior art has inaccurate feedback current, resulting in the inability to accurately control the stall current to test the power module.
[0005] To achieve the above-mentioned purpose, the present invention provides a power module stall test method, which is used to test a power module of a three-phase motor in a stall state, wherein the power module has three power units corresponding to the three phases U, V, and W in a one-to-one manner, the three power units are connected in parallel between the positive and negative poles of an external DC power supply, each power unit includes two power tubes connected in series in a power supply circuit of the DC power supply, each of the power tubes is further connected to a freewheeling tube, a phase connection point is formed between the power tubes of each power unit, and the three-phase stator windings of the three-phase motor are respectively connected to the three-phase connections of the three power units in a one-to-one manner;
[0006] The test method comprises the following steps:
[0007] 1) When the three-phase motor is in a stalled state, the three-phase output current output by the power module to the three-phase motor is collected, and the effective value of the three-phase output current is calculated, and the maximum value of the effective value of the three-phase output current is taken as the stalled feedback current;
[0008] 2) Perform current closed-loop PI regulation on the locked-rotor feedback current and the set target locked-rotor current, and output the duty ratio value.
[0009] 3) Calculate the comparison values of the power transistors in each power unit according to the duty ratio value, store the obtained comparison values in the PWM comparison register, and each power unit corresponds to a PWM comparison register.
[0010] 4) When the PWM wave generation method is the central alignment method, set the value of the period register to the maximum count value of the PWM counter, and the value of the period register is greater than or equal to the values of each PWM comparison register. Take the counting of the PWM counter from 0 increasing to the maximum count value and then decreasing to 0 as a PWM period. Define the power transistor directly connected to the positive pole of the DC power supply in each power unit as the upper transistor, and the power transistor directly connected to the negative pole of the DC power supply as the lower transistor. Then, within one PWM period, each power unit satisfies the following conditions: when 0 < the count value of the PWM counter < the value of the PWM comparison register, the upper transistor of this power unit is at low level and the lower transistor is at high level; when the value of the PWM comparison register < the count value of the PWM counter < the maximum count value, the upper transistor of this power unit is at high level and the lower transistor is at low level.
[0011] 5) Obtain the change situation of the three-phase current between the power module and the three-phase motor within consecutive PWM periods, and use this change situation of the three-phase current as the evaluation criterion for the performance of each power transistor in the measured power module.
[0012] As a further preferred technical solution of the present invention, before step 1), the following steps are further included:
[0013] Judge whether the locked-rotor test time has reached. If the locked-rotor test time has not reached, execute step 1) above. Otherwise, set all the power transistors in the power module to be turned off and end the test.
[0014] As a further preferred technical solution of the present invention, in step 2), the target locked-rotor current needs to be smoothed before performing current closed-loop PI regulation.
[0015] As a further preferred technical solution of the present invention, before the locked-rotor test, the duty ratio value output by the current closed-loop PI regulation is defaulted to 50%. At this time, the values of the PWM comparison registers corresponding to the three power units are all 1 / 2P. At this time, all the power transistors in the three power units have no current passing through. This state is used as the initialization state of the locked-rotor test.
[0016] As a further preferred technical solution of the present invention, during the locked-rotor test, the upper and lower transistors of the same power unit adopt a complementary output method to make the on and off states of the upper and lower transistors inconsistent.
[0017] As a further preferred technical solution of the present invention, two power tubes are selected for testing at the same time for each stall test, and the two power tubes selected for testing are respectively the upper tube of one power unit and the upper tube of another power unit. The values of the PWM comparison registers of the power units corresponding to the two power tubes selected for testing are respectively set to 1 / 2P*(1-duty cycle) and 1 / 2P*(1+duty cycle), and the value of the PWM comparison register of the power unit whose two power tubes are not selected for testing is set to 1 / 2P.
[0018] As a further preferred technical solution of the present invention, two power tubes are selected for testing at the same time in each stall test, and the test of all power tubes of the same power module is completed in three times.
[0019] The power module stall test method of the present invention, by adopting the above-mentioned technical scheme, can output accurate current at any angle to perform sufficient stall test on the six bridge arms (power tubes) of the power module, and can avoid damage to the equipment due to human error operation. The stall current can be accurately controlled, which is beneficial to improving the accuracy and efficiency of the test. Compared with the prior art, no mechanical latch is used, thereby avoiding damage to the equipment due to long-term accidental stall due to human error operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0021] Figure 1 It is a system topology block diagram corresponding to the power module stall test method of the present invention;
[0022] Figure 2 It is a software stall control topology diagram corresponding to the power module stall test method of the present invention;
[0023] Figure 3 It is a software stall control flow chart corresponding to the power module stall test method of the present invention;
[0024] Figure 4 It is the waveform diagram of each power tube in one PWM cycle in the initial state;
[0025] Figure 5 This is the waveform diagram of each power tube in one PWM cycle during the stall test T1 and T6;
[0026] Figure 6 This is the current flow diagram at time t1 during the locked-rotor tests T1 and T6;
[0027] Figure 7 This is the current flow diagram at time t2 during the locked-rotor tests T1 and T6;
[0028] Figure 8This is the current flow diagram at time t3 during the locked-rotor tests T1 and T6;
[0029] Fig. 9 This is the current flow diagram at time t4 during the locked-rotor tests T1 and T6;
[0030] Fig.10 This is the current flow diagram at time t5 during the locked-rotor tests T1 and T6;
[0031] Fig.11 It is the current flow diagram at time t6 during the locked-rotor test T1 and T6;
[0032] Fig.12 It is the curve diagram of the change of three-phase current during the whole process of the stall test T1 and T6;
[0033] Fig.13 This is the waveform diagram of each power tube in one PWM cycle during the stall test T3 and T2;
[0034] Fig.14 This is the current flow diagram at time t1 during the locked-rotor test T3 and T2;
[0035] Fig.15 This is the current flow diagram at time t2 during the locked-rotor test T3 and T2;
[0036] Fig.16 This is the current flow diagram at time t3 during the locked-rotor test T3 and T2;
[0037] Fig.17 This is the current flow diagram at time t4 during the locked-rotor test T3 and T2;
[0038] Fig.18 This is the current flow diagram at time t5 during the locked-rotor test T3 and T2;
[0039] Fig.19 This is the current flow diagram at time t6 during the locked-rotor test T3 and T2;
[0040] Fig. 20 It is the curve diagram of the change of three-phase current during the whole process of the stall test T3 and T2;
[0041] Fig.21 This is the waveform diagram of each power tube in one PWM cycle during the stall test T5 and T4;
[0042] Fig. 22 This is the current flow diagram at time t1 during the locked-rotor tests T5 and T4;
[0043] Fig.23 This is the current flow diagram at time t2 during the locked-rotor test T5 and T4;
[0044] Fig.24 This is the current flow diagram at time t3 during the locked-rotor test T5 and T4;
[0045] Fig.25 This is the current flow diagram at time t4 during the locked-rotor test T5 and T4;
[0046] Fig.26 This is the current flow diagram at time t5 during the locked-rotor test T5 and T4;
[0047] Fig. 27 This is the current flow diagram at time t6 during the locked-rotor test T5 and T4;
[0048] Fig.28 This is a curve diagram of the change of three-phase current during the whole process of the stall test T5 and T4;
[0049] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0050] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. The terms such as "upper", "lower", "left", "right", "middle" and "one" cited in the preferred embodiments are only for the convenience of description, and are not used to limit the scope of the present invention. The change or adjustment of the relative relationship shall also be regarded as the scope of the present invention without substantially changing the technical content.
[0051] The present invention provides a power module stall test method, the test method is used to test the power module of a three-phase motor in a stall state, such as Figure 1 As shown, the power module has three power units corresponding to the three phases U, V, and W in a one-to-one manner. The three power units are connected in parallel between the positive and negative poles of an external DC power supply (denoted as Udc). Each power unit includes two power tubes connected in series in the power supply circuit of the DC power supply. Each power tube is also connected to a freewheeling tube. A phase connection point is formed between the power tubes of each power unit. The three-phase stator windings of the three-phase motor are respectively connected to the three-phase connections of the three power units in a one-to-one manner.
[0052] For convenience of description, the following definitions are given for each power transistor and freewheeling diode. In each power unit, the power transistor directly connected to the positive pole of the DC power supply is the upper transistor, and the power transistor directly connected to the negative pole of the DC power supply is the lower transistor. Among them: the upper transistor of the power unit corresponding to U is T1, the lower transistor is T4, the freewheeling diode connected to T1 is D1, and the freewheeling diode connected to T4 is D4; the upper transistor of the power unit corresponding to V is T3, the lower transistor is T6, the freewheeling diode connected to T3 is D3, and the freewheeling diode connected to T6 is D6; the upper transistor of the power unit corresponding to W is T5, the lower transistor is T2, the freewheeling diode connected to T5 is D5, and the freewheeling diode connected to T2 is D2.
[0053] The software locked-rotor control topology for testing of the present invention is as Figure 2 shown, and the locked-rotor control flow is as Figure 4 shown. The method for testing the locked-rotor of the power module includes the following steps:
[0054] Step 1): Start the test and determine whether the locked-rotor test time has been reached. The purpose is to set the continuous working time at the locked-rotor current (DC current). If the locked-rotor test time has not been reached, then execute the following steps; otherwise, turn off all the power transistors in the power module and end the test.
[0055] Step 2): When the three-phase motor is in the locked-rotor state (i.e., the initialization state of the locked-rotor test), collect the three-phase output currents output by the power module to the three-phase motor, and calculate the effective value of the three-phase output currents. Take the maximum value among the effective values of the three-phase output currents as the locked-rotor feedback current; perform current closed-loop PI regulation on the locked-rotor feedback current and the set target locked-rotor current, and output the duty ratio (0 - 100%);
[0056] Step 3): Calculate the comparison values of the power transistors in each power unit according to the duty ratio, and store the obtained comparison values in the PWM comparison registers, and each power unit corresponds to a PWM comparison register;
[0057] Step 4): Set the value of the period register to the maximum count value of the PWM counter according to the PWM wave generation method of the central alignment method, and the value of the period register is greater than or equal to the values of each PWM comparison register. Take the counting of the PWM counter increasing from 0 to the maximum count value and then decreasing to 0 as a PWM period; then within one PWM period, each power unit satisfies the following conditions: when 0 < the count value of the PWM counter < the value of the PWM comparison register, the upper transistor of this power unit is at a low level and the lower transistor is at a high level; when the value of the PWM comparison register < the count value of the PWM counter < the maximum count value, the upper transistor of this power unit is at a high level and the lower transistor is at a low level;
[0058] Step 5) obtain the change of the three-phase current between the power module and the three-phase motor in the continuous PWM cycle, and use the change of the three-phase current as the evaluation standard of the performance of each power tube in the measured power module, that is, end the stall test.
[0059] In actual testing, by changing the target stall current, step 5) obtains different changes in three-phase currents to meet the needs of testing the operation of the power module under different current conditions.
[0060] Preferably, in step 2), the target locked-rotor current needs to be smoothed before current closed-loop PT regulation is performed, in order to avoid damage to the device due to current mutation and to provide test safety.
[0061] In the specific implementation, before the stall test, the current closed-loop PT regulation output duty cycle value defaults to 50%, and the values of the PWM comparison registers corresponding to the three power units are all 1 / 2P. At this time, all power tubes of the three power units have no current passing through them. This state is used as the initialization state of the stall test. Figure 4 The figure shows the waveform of a PWM cycle, where P is the value of the period register of the MCU PWM module. In the stall test, in order to keep consistent with the actual application, the upper and lower tubes of the same power unit adopt a complementary output mode to keep the upper and lower tubes on and off inconsistently.
[0062] In one embodiment, two power tubes are selected for testing at the same time for each stall test, and the two power tubes selected for testing are respectively the upper tube of one power unit and the upper tube of another power unit. Then, the values of the PWM comparison registers of the power units corresponding to the two power tubes selected for testing are respectively set to 1 / 2P*(1-duty cycle) and 1 / 2P*(1+duty cycle), and the value of the PWM comparison register of the power unit whose two power tubes are not selected for testing is set to 1 / 2P.
[0063] Each time the locked-rotor test is performed, two power tubes are selected for testing at the same time, and all power tubes are tested in three times, so that this method can control the on / off of T1-T6 tubes to realize that each power tube and freewheeling tube works in turn under the locked-rotor current (DC current) and continues to work for a certain period of time to achieve the purpose of the test. The specific process of this test method is as follows (in the following process, the description of the power tube and the freewheeling tube is used Figure 1 In the following table, replace the following with:
[0064] First, the T1, T6, D3, D5, D4, and D2 tubes are tested by stalling. The PWM waveforms of the six tubes are as follows: Figure 5As shown, the PWM comparison register value corresponding to T1 and T4 tubes is 1 / 2P*(1-duty cycle), the PWM comparison register value corresponding to T3 and T6 tubes is 1 / 2P*(1+duty cycle), and the PWM comparison register value corresponding to T5 and T2 tubes is fixed at 1 / 2P.
[0065] At time t0, T1, T3, and T5 tubes (three-phase upper bridges) are turned off, and T4, T6, and T2 tubes (three-phase lower bridges) are turned on. At this time, the circuit has no current or is in a freewheeling state.
[0066] At time t1, T1 is turned on and T4 is turned off, and the current flows from T1 to T6 and T2. Figure 6 shown.
[0067] At time t2, T5 is turned on and T2 is turned off. At this time, the W phase current decreases through the U phase through the D5 tube, and the UV phase current continues to increase. Figure 7 shown.
[0068] At t3, the W phase current basically continues to 0. At this time, T3 is turned on and T6 is turned off, that is, the upper bridge of the three phases is turned on and the lower bridge is turned off. The V phase current continues to flow through the UW phase through the D3 diode. Figure 8 As shown, the W-phase current starts to increase from 0 again.
[0069] At time t4, T3 is turned off and T6 is turned on, and the V phase exits the freewheeling state. Fig. 9 As shown in the figure, the current flows from the upper bridge of the UW phase to the lower bridge of the V phase, and the three-phase current continues to increase.
[0070] At time t5, tube T5 is turned off and tube T2 is turned on, the UV phase current continues to increase, and the W phase current begins to continue to decrease. Fig.10 shown.
[0071] At time t6, tube T2 is turned off and tube T4 is turned on, that is, the upper bridge of the three phases is turned off and the lower bridge is turned on, and the three-phase current is in a continuous flow reduction state, among which the UW phase current is continuous through tubes D4 and D6 respectively. Fig.11 shown.
[0072] At time t7, one PWM cycle is completed.
[0073] Next, the next PWM cycle is executed, and t7 coincides with t0 of the next cycle. Until t1 of the next cycle arrives, the W phase current will continue to flow to 0. The changes of the three-phase currents in the whole process are as follows: Fig.12As shown, the current flowing into the three-phase motor is a positive current, and the current flowing out of the three-phase motor is a negative current (the same below). After reaching a constant, the UV phase current continues to increase and continue to flow. However, because the increase and continuous flow within a PWM cycle are very small, they can be equivalent to DC current, and the W phase current basically increases and continues to flow near 0A, so the W phase current can be equivalent to 0.
[0074] Then, the T3, T2, D1, D5, D4, and D6 tubes are tested in stall mode. The PWM waveforms of the six tubes are as follows: Fig.13 As shown, the PWM comparison register value corresponding to T3 and T6 tubes is 1 / 2P*(1-duty cycle), the PWM comparison register value corresponding to T5 and T2 tubes is 1 / 2P*(1+duty cycle), and the comparison register value corresponding to T1 and T4 tubes is fixed at 1 / 2P.
[0075] At time t0, T1, T3, and T5 tubes (three-phase upper bridges) are turned off, and T4, T6, and T2 tubes (three-phase lower bridges) are turned on. At this time, the circuit has no current or is in a freewheeling state.
[0076] At time t1, T3 is turned on and T6 is turned off, and the current flows from T3 to T4 and T2. Fig.14 shown.
[0077] At time t2, tube T1 is turned on and tube T4 is turned off. At this time, the U phase current decreases through tube D1 and then through the V phase, while the VW phase current continues to increase. Fig.15 shown.
[0078] At t3, the U phase current basically continues to 0. At this time, the T5 tube is turned on and the T2 tube is turned off, that is, the upper bridge of the three phases is turned on and the lower bridge is turned off. The W phase current continues to flow through the D5 diode and the UV phase. Fig.16 As shown, the U phase current starts to increase from 0 again.
[0079] At time t4, T5 is turned off and T2 is turned on, and phase W exits the freewheeling state. Fig.17 As shown in the figure, the current flows from the upper bridge of the UV phase to the lower bridge of the W phase, and the three-phase current continues to increase.
[0080] At t5, tube T1 is turned off and tube T4 is turned on, the VW phase current continues to increase, and the U phase current begins to decrease. Fig.18 shown.
[0081] At time t6, tube T3 is turned off and tube T6 is turned on, that is, the upper bridge of the three phases is turned off and the lower bridge is turned on, and the three-phase current is in a continuous flow reduction state, among which the UW phase current is continuous through tubes D4 and D6 respectively. Fig.19 shown.
[0082] At time t7, one PWM cycle is completed.
[0083] Next, the next PWM cycle is executed, and t7 coincides with t0 of the next cycle. Before t1 of the next cycle arrives, the U-phase current will continue to flow to 0. The changes of the three-phase currents in the whole process are as follows: Fig. 20 shown.
[0084] Finally, the T5, T4, D1, D3, D6, and D2 tubes are tested for stalling. The PWM waveforms of the six tubes are as follows: Fig.21 As shown, the PWM comparison register value corresponding to T5 and T2 tubes is 1 / 2P*(1-duty cycle), the PWM comparison register value corresponding to T1 and T4 tubes is 1 / 2P*(1+duty cycle), and the PWM comparison register value corresponding to T3 and T6 tubes is fixed at 1 / 2P.
[0085] At time t0, T1, T3, and T5 tubes (three-phase upper bridges) are turned off, and T4, T6, and T2 tubes (three-phase lower bridges) are turned on. At this time, the circuit has no current or is in a freewheeling state.
[0086] At time t1, T5 is turned on and T2 is turned off, and the current flows from T5 to T4 and T6. Fig. 22 shown.
[0087] At time t2, tube T3 is turned on and tube T6 is turned off. At this time, the V phase current flows through tube D3 and then through the W phase to reduce, while the UW phase current continues to increase. Fig.23 shown.
[0088] At t3, the V phase current basically continues to 0. At this time, T1 is turned on and T4 is turned off, that is, the upper bridge of the three phases is turned on and the lower bridge is turned off. The U phase current continues to flow through the D1 diode and the VW phase. Fig.24 As shown, the V-phase current starts to increase from 0 again.
[0089] At time t4, T1 is turned off and T4 is turned on, and phase U exits the freewheeling state. Fig.25 As shown in the figure, the current flows from the upper bridge of the VW phase to the lower bridge of the U phase, and the three-phase current continues to increase.
[0090] At t5, T3 is turned off and T6 is turned on, the UW phase current continues to increase, and the V phase current begins to decrease. Fig.26 shown.
[0091] At time t6, tube T3 is turned off and tube T6 is turned on, that is, the upper bridge of the three phases is turned off and the lower bridge is turned on, and the three-phase current is in a continuous flow reduction state, among which the UW phase current is continuous through tubes D4 and D6 respectively. Fig. 27 shown.
[0092] At time t7, one PWM cycle is completed.
[0093] Next, the next PWM cycle is executed, and t7 coincides with t0 of the next cycle. Before t1 of the next cycle arrives, the V-phase current will continue to flow to 0. The changes of the three-phase currents in the whole process are as follows: Fig.28 shown.
[0094] Although specific embodiments of the present invention are described above, those skilled in the art should understand that these are merely examples and that various changes or modifications may be made to the embodiments without departing from the principles and essence of the present invention. The scope of protection of the present invention is limited only by the appended claims.
Claims
1. A power module stall test method, characterized in that: Used to test a power module of a three-phase motor in a stalled state, the power module having three power units corresponding to the three phases U, V, and W in one-to-one correspondence, the three power units being connected in parallel between the positive and negative poles of an external DC power supply, each power unit comprising two power tubes connected in series in a power supply circuit of the DC power supply, each of the power tubes being further connected to a freewheeling tube, a phase connection point being formed between the power tubes of each power unit, and the three-phase stator windings of the three-phase motor being respectively connected to the three-phase connections of the three power units in one-to-one correspondence; The test method comprises the following steps: 1) When the three-phase motor is in a stalled state, the three-phase output current output by the power module to the three-phase motor is collected, and the effective value of the three-phase output current is calculated, and the maximum value of the effective value of the three-phase output current is taken as the stalled feedback current; 2) Perform current closed-loop PI regulation on the stall feedback current and the set target stall current, and output the duty cycle value; 3) Calculate the comparison value of the power tube in each power unit according to the duty cycle value, and store the obtained comparison value in the PWM comparison register, and each power unit corresponds to a PWM comparison register; 4) According to the PWM wave generation mode as the central alignment mode, the value of the period register is set to the maximum count value of the PWM counter, and the value of the period register is greater than or equal to the value of each PWM comparison register. The count of the PWM counter increases from 0 to the maximum count value and then decreases to 0 as a PWM cycle; define the power tube directly connected to the positive pole of the DC power supply in each power unit as the upper tube, and the power tube directly connected to the negative pole of the DC power supply as the lower tube. Then, in a PWM cycle, each power unit meets the following conditions: when 0 < the count value of the PWM counter < the value of the PWM comparison register, the upper tube of the power unit is low level and the lower tube is high level; when the value of the PWM comparison register < the count value of the PWM counter < the maximum count value, the upper tube of the power unit is high level and the lower tube is low level; 5) Obtain the change of the three-phase current between the power module and the three-phase motor in the continuous PWM cycle, and the change of the three-phase current is used as the evaluation standard of the performance of each power tube in the measured power module; wherein, Before the stall test, the current closed-loop PI regulation output duty cycle value defaults to 50%, and the values of the PWM comparison registers corresponding to the three power units are all 1 / 2P. At this time, all the power tubes of the three power units have no current passing through them. This state is used as the initialization state of the stall test; In each stall test, two power tubes are selected for testing at the same time. The two power tubes selected for testing are the upper tube of one power unit and the upper tube of another power unit respectively. The values of the PWM comparison registers of the power units corresponding to the two power tubes selected for testing are set to 1 / 2P*(1-duty cycle) and 1 / 2P*(1+duty cycle) respectively. The value of the PWM comparison register of the power unit whose two power tubes are not selected for testing is set to 1 / 2P.
2. The power module stall test method according to claim 1, characterized in that: Before step 1), the following steps are also included: Determine whether the stall test time has been reached. If the stall test time has not been reached, execute the above step 1). Otherwise, set all the power tubes in the power module to be turned off and end the test.
3. The power module stall test method according to claim 1, characterized in that: In step 2), the target stall current needs to be smoothed before current closed-loop PI regulation is performed.
4. The power module stall test method according to claim 1, characterized in that: In the stall test, the upper tube and the lower tube of the same power unit adopt a complementary output mode to keep the on and off of the upper tube and the lower tube inconsistent.
5. The power module stall test method according to claim 1, characterized in that: Two power tubes are selected for testing at the same time in each stall test, and the test of all power tubes of the same power module is completed in three times.
