Method and device for reducing inductive current detection error
By obtaining the rising and falling edge inductor current values and duty cycle in the inverter, performing weighted averaging, and performing current value correction, the problem of inductor current detection error is solved, and the control accuracy and fault identification accuracy of the inverter are improved. Spend.
Patent Information
- Application Number
- CN202311443761.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-01
- Publication Date
- 2024-10-18
AI Technical Summary
The inductor current detection error in the existing technology is large, resulting in low inverter control accuracy and fault identification accuracy, mainly due to the offset between the sampling point and the IGBT switch midpoint.
By obtaining the rising edge and falling edge inductor current values and duty cycle in the current switching cycle, the target inductor current is calculated as a weighted average, and the inductor current value of the previous cycle is used for correction to reduce the error caused by the sampling point offset.
It effectively eliminates the crossover distortion of the inductor current, improves the control accuracy and fault identification accuracy of the inverter, and reduces the inductor current detection error.
Smart Images

Figure CN118801650A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of current detection, and in particular to a method and device for reducing inductor current detection error. Background Art
[0002] The control of the inverter requires the use of the inductor current feedback signal. The accuracy of the inductor current feedback information has an important impact on the inverter control performance, including speed, stability, etc.
[0003] In the prior art, Figure 1 As shown, the inductor current is usually detected and sampled at the midpoint of the insulated-gate bipolar transistor (IGBT) switch conduction, that is, the inductor rising edge sampling. Figure 1 Where I_inductor_peak represents the peak value of the inductor current, I_inductor_trough represents the trough value of the inductor current, t_up_n-1 represents the n-1th sampling moment, sample_n-1 represents the inductor current sampled at the n-1th sampling moment, t_up_n represents the nth sampling moment, sample_n represents the inductor current sampled at the nth sampling moment, and I_inductor_average is the fundamental component of the inductor current.
[0004] Since the sampling point and the midpoint of the IGBT switch are not aligned (i.e., there is an offset), the detection accuracy of the inductor current will be poor. The reasons for the misalignment come from many aspects, including device action delay, software control errors, delays in current detection circuits and components, and the discreteness of various devices. Therefore, the delay of each device is different, and the error is difficult to eliminate systematically. Figure 2 This is a waveform diagram of the inductor current detected by the above-mentioned prior art. The ordinate in the figure is the per-unit value of the inductor current, and the abscissa is the number of sampling points. It can be seen that after the inductor current is reconstructed, significant crossover distortion occurs when it passes through the zero point, resulting in poor accuracy in inductor current detection, which in turn leads to low control accuracy of the inverter and low fault identification accuracy. Summary of the invention
[0005] The embodiments of the present application provide a method and device for reducing inductor current detection error, so as to solve the technical problem that the detection accuracy of the inductor current is poor due to the offset between the sampling point and the midpoint of the IGBT switch in the prior art current inductor detection using rising edge sampling.
[0006] In a first aspect, an embodiment of the present application provides a method for reducing an inductor current detection error, comprising:
[0007] Obtain the first rising edge inductor current value at the rising edge sampling moment and the first falling edge inductor current value at the falling edge sampling moment in the current switching cycle;
[0008] Obtaining the duty cycle of the rising edge in the current switching cycle;
[0009] Based on the duty cycle of the rising edge, a weighted average is performed on the first rising edge inductor current value and the first falling edge inductor current value to calculate and obtain a target inductor current in the current switching cycle.
[0010] In one embodiment, the target inductor current in the current switching cycle is calculated as follows:
[0011] I inductor (n)=D1*Ion(n)+(1-D1)*Ioff(n)
[0012] Among them, I inductor (n) represents the target inductor current in the nth current switching cycle, Ion(n) represents the first rising edge inductor current value at the rising edge sampling moment in the nth current switching cycle, Ioff(n) represents the first falling edge inductor current value at the falling edge sampling moment in the nth current switching cycle, and D1 represents the duty cycle of the rising edge in the nth current switching cycle.
[0013] In one embodiment, after acquiring the first falling edge inductor current value and before performing weighted averaging on the first rising edge inductor current value and the first falling edge inductor current value, the method further includes:
[0014] A second falling edge inductor current value at a falling edge sampling moment in a previous switching cycle is obtained, and the first falling edge inductor current value is corrected based on the second falling edge inductor current value; the previous switching cycle is a cycle before the current switching cycle.
[0015] In one embodiment, the first falling edge inductor current value is corrected based on the second falling edge inductor current value, and the calculation method is as follows:
[0016] Ioff(n)=(K1*Ioff(n-1)+(1-K1)*Ioff(n))
[0017] Wherein, Ioff(n-1) represents the first falling edge inductor current value in the n-1th switching cycle, and K1 represents the weight.
[0018] In one embodiment, after acquiring the first rising edge inductor current value and before performing weighted averaging on the first rising edge inductor current value and the first falling edge inductor current value, the method further includes:
[0019] A second rising edge inductor current value at a rising edge sampling moment in a previous switching cycle is obtained, and the first rising edge inductor current value is corrected based on the second rising edge inductor current value.
[0020] In one embodiment, correcting the first rising edge inductor current value based on the second rising edge inductor current value includes:
[0021] Ion(n)=(K2*Ion(n-1)+(1-K2)*Ion(n))
[0022] Wherein, Ion(n-1) represents the first rising edge inductor current value in the n-1th switching cycle, and K2 represents the weight.
[0023] In one embodiment, the values of K1 and K2 are both 0.5.
[0024] In a second aspect, an embodiment of the present application provides a device for reducing an inductor current detection error, comprising:
[0025] An inductor current acquisition module, used to acquire the first rising edge inductor current value at the rising edge sampling moment and the first falling edge inductor current value at the falling edge sampling moment in the current switching cycle;
[0026] A duty cycle acquisition module, used to acquire the duty cycle of the rising edge in the current switching cycle;
[0027] The inductor current calculation module is used to perform weighted averaging on the first rising edge inductor current value and the first falling edge inductor current value based on the duty cycle of the rising edge, so as to calculate the target inductor current in the current switching cycle.
[0028] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory storing a computer program, wherein when the processor executes the program, the steps of the method for reducing the inductor current detection error described in the first aspect are implemented.
[0029] In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method for reducing the inductor current detection error described in the first aspect.
[0030] The present application provides a method and device for reducing the inductor current detection error, by obtaining the first rising edge inductor current value at the rising edge sampling moment and the first falling edge inductor current value at the falling edge sampling moment in the current switching cycle, obtaining the duty cycle of the rising edge in the current switching cycle, and based on the duty cycle of the rising edge, weighted averaging the first rising edge inductor current value and the first falling edge inductor current value to calculate the target inductor current in the current switching cycle. Since the inductor current information of the rising edge and the falling edge is used at the same time to reconstruct the inductor current, and the weighted average of the inductor current of the rising edge and the falling edge is performed, the error introduced by the sampling point offset is greatly eliminated, thereby eliminating the crossover distortion of the inductor current, reducing the detection error of the inductor current, and helping to improve the control accuracy of the inverter and the accuracy of fault identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0032] Figure 1 It is a schematic diagram of a sampling method of an inductor current in the prior art;
[0033] Figure 2 is a schematic diagram of the waveform of the inductor current detected by using the prior art;
[0034] Figure 3 It is an optional circuit diagram for obtaining inductor current feedback information in the prior art;
[0035] Figure 4 is a flow chart of a method for reducing inductor current detection error provided by an embodiment of the present application;
[0036] Figure 5 This is one of the schematic diagrams of the influence of the sampling point offset on the sampling error in different waveforms provided in the embodiments of the present application;
[0037] Figure 6 This is a second schematic diagram of the effect of the sampling point offset on the sampling error in different waveforms provided in the embodiments of the present application;
[0038] Figure 7 This is a third schematic diagram of the effect of sampling point offset on sampling error in different waveforms provided in an embodiment of the present application;
[0039] Figure 8 is a schematic diagram of the error of formula (1) in the embodiment of the present application;
[0040] Fig. 9 is a schematic diagram of the waveform of the inductor current after the method for reducing the inductor current detection error in the embodiment of the present application is adopted;
[0041] Fig.10 is a schematic diagram of the structure of a device for reducing inductor current detection error provided by an embodiment of the present application;
[0042] Fig.11 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0043] Reference numerals:
[0044] 101: Inductor current acquisition module; 102: Duty cycle acquisition module; 103: Inductor current calculation module. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] like Figure 3 The figure shows an optional circuit for obtaining inductor current feedback information in the prior art. S1 and S2 in the figure are diodes, Q1, Q2, Q3 and Q4 are MOS tubes, and the inductor current Ii obtained by the circuit can be used for inverter control and fault detection. In the prior art, the inductor current is usually detected and sampled at the midpoint of I conduction, that is, rising edge sampling. Due to the offset between the sampling point and the midpoint of the IGBT switch, the detection accuracy of the inductor current is poor. In order to solve this problem, the present application provides a method for reducing the inductor current detection error.
[0047] Figure 4 A flow chart of a method for reducing inductor current detection error provided by this embodiment. Figure 4 This embodiment provides a method for reducing an inductor current detection error, which may include:
[0048] S1. Obtain the first rising edge inductor current value at the rising edge sampling moment and the first falling edge inductor current value at the falling edge sampling moment in the current switching cycle.
[0049] S2. Get the duty cycle of the rising edge in the current switching cycle.
[0050] The duty cycle of the rising edge is the ratio of the switching period of the rising edge station. Figure 3Take the circuit shown in as an example, that is, the ratio of Q1 conduction time to switching period.
[0051] It should be understood that the present application does not limit the execution order of S1 and S2, which may be executed one after the other or simultaneously.
[0052] S3. Based on the duty cycle of the rising edge, a weighted average is performed on the first rising edge inductor current value and the first falling edge inductor current value to calculate a target inductor current in the current switching cycle.
[0053] In such Figure 5 In the waveform shown, the rising edge is relatively slow (i.e., the rate of change is relatively slow), and the error of rising edge sampling is relatively small. Figure 6 In the waveform shown, the falling edge is relatively slow, so the error of falling edge sampling is relatively small. Figure 7 In the waveform shown, when the absolute values of the changing rates of the rising edge and the falling edge are equal, the sampling error after averaging the rising edge and the falling edge is small. Figure 5-Figure 7 The delt_I_up in the figure represents the rising edge, the delt_I_down represents the falling edge, and the intersection of the horizontal solid line and the broken line is the sampling time.
[0054] Based on the above analysis, the present application performs weighted averaging of the first rising edge inductor current value and the first falling edge inductor current value based on the duty cycle of the rising edge to reduce the sampling error and calculate the target inductor current in the current switching cycle, that is, the inductor current after error correction. Specifically, the target inductor current in the current switching cycle can be calculated by the following formula (1):
[0055] I inductor (n)=D1*Ion(n)+(1-D1)*Ioff(n) (1)
[0056] In formula (1), I inductor (n) represents the target inductor current in the nth current switching cycle, Ion(n) represents the first rising edge inductor current value at the rising edge sampling moment in the nth current switching cycle, Ioff(n) represents the first falling edge inductor current value at the falling edge sampling moment in the nth current switching cycle, and D1 represents the duty cycle of the rising edge in the nth current switching cycle.
[0057] Further study of the above formula (1) shows that Figure 8 As shown, the use of the rising edge and falling edge weighting method will cause an offset between the equivalent sampling point of the inductor current and the actual IGBT sampling midpoint, so there will still be some errors.
[0058] exist Figure 8 In the figure, t_down_n-1 represents the sampling time of the n-1th falling edge.
[0059] t_up_n represents the sampling time of the nth rising edge.
[0060] t_down_n represents the sampling time of the nth falling edge.
[0061] I_inductor_average is the fundamental component of the inductor current.
[0062] I_up is the actual physical value of the fundamental component of the inductor current at the time t_up_n.
[0063] I_up' is the physical value of the fundamental component of the inductor current corresponding to the time t_up_n calculated based on formula (1).
[0064] Due to the influence of the duty cycle D1, the sampling point actually corresponding to I_up' is t_up_n', t_up_n≤t_up_n'≤t_down_n. Obviously, the error I_up_error introduced by formula (1) is I_up_error=I_up-I_up'.
[0065] In order to further eliminate the error I_up_error introduced by the above formula (1), in an optional embodiment of the present application, a second falling edge inductor current value of the second cycle is introduced to reconstruct the function. Specifically, after obtaining the first falling edge inductor current value, before weighted averaging the first rising edge inductor current value and the first falling edge inductor current value, the first falling edge inductor current value is corrected based on the second falling edge inductor current value. It should be understood that the previous switching cycle in the present application is not a specific switching cycle, but the previous cycle of the current switching cycle. Assuming that the current switching cycle is the nth switching cycle, the previous switching cycle is the n-1th switching cycle. The correction of the first falling edge inductor current value is as follows:
[0066] Ioff(n)=(K1*Ioff(n-1)+(1-K1)*Ioff(n))
[0067] Wherein, Ioff(n-1) represents the first falling edge inductor current value in the previous switching cycle, i.e., the n-1th switching cycle, and K1 represents the weight. It should be understood that the present application does not limit the value of K1, and K1 can be adjusted according to actual conditions. As a preferred solution, K1 can be set to 0.5, i.e., Ioff(n)=(0.5*Ioff(n-1)+0.5*
[0068] Ioff(n))=0.5*(Ioff(n-1)+Ioff(n)).
[0069] Based on the above processing, the new formula (2) is constructed as follows:
[0070] I inductor (n)=D1*Ion(n)+(1-D1)*(0.5*(Ioff(n-1)+
[0071] Ioff(n)))(2)
[0072] In formula (2), using 0.5*(Ioff(n-1)+Ioff(n)) instead of Ioff(n) is equivalent to Figure 8 The t_down_n in the circuit moves half a switching cycle to the left and overlaps with t_up_n, eliminating the effect of duty cycle D1 on the deviation of t_up_n' from t_up_n, thereby greatly improving the accuracy of inductor current detection. Fig. 9 As shown, the crossover distortion in the waveform of the inductor current collected by this method almost disappears, which shows that the elimination effect of the inductor current detection error is good.
[0073] In order to further reduce the error in formula (2), in an optional embodiment of the present application, on the basis of formula (2), a second rising edge inductor current value reconstructing function of the second cycle can be introduced. Specifically, after obtaining the first rising edge inductor current value, before weighted averaging the first rising edge inductor current value and the first falling edge inductor current value, the first rising edge inductor current value is corrected based on the second rising edge inductor current value. The correction of the first rising edge inductor current value is specifically as follows:
[0074] Ion(n)=(K2*Ion(n-1)+(1-K2)*Ion(n))
[0075] Wherein, Ion(n-1) represents the first rising edge inductor current value in the n-1th switching cycle, and K2 represents the weight. It should be understood that the present application does not limit the value of K2, and K2 can be adjusted according to actual conditions. As a preferred solution, K2 can be set to 0.5, that is, Ion(n)=0.5(Ion(n-1)+Ion(n)).
[0076] Based on the above processing, the new formula (3) is constructed as follows:
[0077] I inductor (n)=D1*0.5(Ion(n-1)+Ion(n))+(1-D1)*
[0078] (0.5*(Ioff(n-1)+Ioff(n)))(3)
[0079] Without setting the values of K1 and K2, the corresponding formula is:
[0080] I inductor (n)=
[0081] D1*0.5((1-K1)*Ion(n-1)+K1*Ion(n))+(1-D1)*
[0082] 0.5*((1-K2)*Ioff(n-1)+K2*Ioff(n)).
[0083] In an optional embodiment of the present application, D1 in the above formula can be set to a constant value or other variables in addition to the duty cycle, such as the ratio of the output voltage or current to a preset parameter, etc. It can be set according to actual conditions, and the present application does not impose any restrictions on this.
[0084] In summary, the embodiment of the present application provides a method for reducing the inductor current detection error, by obtaining the first rising edge inductor current value at the rising edge sampling moment and the first falling edge inductor current value at the falling edge sampling moment in the current switching cycle, obtaining the duty cycle of the rising edge in the current switching cycle, and based on the duty cycle of the rising edge, weighted averaging the first rising edge inductor current value and the first falling edge inductor current value to calculate the target inductor current in the current switching cycle. Since the inductor current information of the rising edge and the falling edge is used to reconstruct the inductor current at the same time, and the weighted average of the inductor current of the rising edge and the falling edge is performed, the error introduced by the sampling point offset is greatly eliminated, and then the crossover distortion of the inductor current is eliminated. The falling edge information in the previous switching cycle can be further used to correct the falling edge information in the current switching cycle, eliminating the error caused by the equivalent sampling point movement, reducing the detection error of the inductor current, and helping to improve the control accuracy of the inverter and the accuracy of fault identification.
[0085] The following is a description of a device for reducing an inductor current detection error provided in an embodiment of the present application. The device for reducing an inductor current detection error described below and the method for reducing an inductor current detection error described above can refer to each other.
[0086] like Fig.10 As shown, the device for reducing inductor current detection error provided in this embodiment includes an inductor current acquisition module 101 , a duty cycle acquisition module 102 and an inductor current calculation module 103 .
[0087] The inductor current acquisition module 101 is used to acquire the first rising edge inductor current value at the rising edge sampling moment and the first falling edge inductor current value at the falling edge sampling moment in the current switching cycle;
[0088] The duty cycle acquisition module 102 is used to acquire the duty cycle of the rising edge in the current switching cycle;
[0089] The inductor current calculation module 103 is used to perform weighted average of the first rising edge inductor current value and the first falling edge inductor current value based on the duty cycle of the rising edge, and calculate the target inductor current in the current switching cycle.
[0090] Fig.11 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.11 As shown, the electronic device may include: a processor 1110, a communication interface 1120, a memory 1130 and a communication bus 1140, wherein the processor 1110, the communication interface 1120 and the memory 1130 communicate with each other through the communication bus 1140. The processor 1110 may call a computer program in the memory 1130 to execute the steps of the method for reducing the inductor current detection error, for example including:
[0091] The first rising edge inductor current value at the rising edge sampling moment and the first falling edge inductor current value at the falling edge sampling moment in the current switching cycle are obtained.
[0092] Obtain the duty cycle of the rising edge in the current switching cycle.
[0093] Based on the duty cycle of the rising edge, a weighted average is performed on the first rising edge inductor current value and the first falling edge inductor current value to calculate and obtain a target inductor current in the current switching cycle.
[0094] In addition, the logic instructions in the above-mentioned memory 1130 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0095] On the other hand, an embodiment of the present application further provides a computer program product, the computer program product comprising a computer program, the computer program may be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the steps of the method for reducing the inductor current detection error provided in the above embodiments, for example, including:
[0096] The first rising edge inductor current value at the rising edge sampling moment and the first falling edge inductor current value at the falling edge sampling moment in the current switching cycle are obtained.
[0097] Obtain the duty cycle of the rising edge in the current switching cycle.
[0098] Based on the duty cycle of the rising edge, a weighted average is performed on the first rising edge inductor current value and the first falling edge inductor current value to calculate and obtain a target inductor current in the current switching cycle.
[0099] On the other hand, an embodiment of the present application further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, wherein the computer program is used to enable the processor to execute the steps of the methods provided in the above embodiments, for example, including:
[0100] Obtain the first rising edge inductor current value at the rising edge sampling moment and the first falling edge inductor current value at the falling edge sampling moment in the current switching cycle;
[0101] Obtaining the duty cycle of the rising edge in the current switching cycle;
[0102] Based on the duty cycle of the rising edge, a weighted average is performed on the first rising edge inductor current value and the first falling edge inductor current value to calculate and obtain a target inductor current in the current switching cycle.
[0103] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0104] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0105] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0106] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for reducing inductor current detection error, characterized in that: include: Obtain the first rising edge inductor current value at the rising edge sampling moment and the first falling edge inductor current value at the falling edge sampling moment in the current switching cycle; Obtaining the duty cycle of the rising edge in the current switching cycle; Based on the duty cycle of the rising edge, a weighted average is performed on the first rising edge inductor current value and the first falling edge inductor current value to calculate and obtain a target inductor current in the current switching cycle.
2. The method for reducing inductor current detection error according to claim 1, characterized in that: The target inductor current in the current switching cycle is calculated as follows: I inductor (n)=D1*Ion(n)+(1-D1)*Ioff(n) Among them, I inductor (n) represents the target inductor current in the nth current switching cycle, Ion(n) represents the first rising edge inductor current value at the rising edge sampling moment in the nth current switching cycle, Ioff(n) represents the first falling edge inductor current value at the falling edge sampling moment in the nth current switching cycle, and D1 represents the duty cycle of the rising edge in the nth current switching cycle.
3. The method for reducing inductor current detection error according to claim 1 or 2, characterized in that: After acquiring the first falling edge inductor current value and before performing weighted averaging on the first rising edge inductor current value and the first falling edge inductor current value, the method further includes: A second falling edge inductor current value at a falling edge sampling moment in a previous switching cycle is obtained, and the first falling edge inductor current value is corrected based on the second falling edge inductor current value; the previous switching cycle is a cycle before the current switching cycle.
4. The method for reducing inductor current detection error according to claim 3, characterized in that: The first falling edge inductor current value is corrected based on the second falling edge inductor current value, and the calculation method is as follows: Ioff(n)=(K1*Ioff(n-1)+(1-K1)*Ioff(n)) Wherein, Ioff(n-1) represents the first falling edge inductor current value in the previous switching cycle, and K1 represents the weight.
5. The method for reducing inductor current detection error according to claim 4, characterized in that: After acquiring the first rising edge inductor current value and before performing weighted averaging on the first rising edge inductor current value and the first falling edge inductor current value, the method further includes: A second rising edge inductor current value at a rising edge sampling moment in a previous switching cycle is obtained, and the first rising edge inductor current value is corrected based on the second rising edge inductor current value.
6. The method for reducing inductor current detection error according to claim 5, characterized in that: Correcting the first rising edge inductor current value based on the second rising edge inductor current value includes: Ion(n)=(K2*Ion(n-1)+(1-K2)*Ion(n)) Wherein, Ion(n-1) represents the first rising edge inductor current value in the previous switching cycle, and K2 represents the weight.
7. The method for reducing inductor current detection error according to claim 6, characterized in that: The values of K1 and K2 are both 0.
5.
8. A device for reducing inductor current detection error, characterized in that: include: An inductor current acquisition module, used to acquire the first rising edge inductor current value at the rising edge sampling moment and the first falling edge inductor current value at the falling edge sampling moment in the current switching cycle; A duty cycle acquisition module, used to acquire the duty cycle of the rising edge in the current switching cycle; The inductor current calculation module is used to perform weighted averaging on the first rising edge inductor current value and the first falling edge inductor current value based on the duty cycle of the rising edge, so as to calculate the target inductor current in the current switching cycle.
9. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the steps of the method for reducing inductor current detection error according to any one of claims 1 to 7 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for reducing inductor current detection error according to any one of claims 1 to 7 are implemented.
