A zero-crossing region power factor correction converter control method, device and equipment

By identifying the voltage state in the zero-crossing region and actively managing the integral state, the duty cycle is optimized, thus solving the control error and current waveform distortion problems of existing PFC converters in the zero-crossing region, and improving the harmonic suppression and power factor control performance of the converter.

CN123163347APending Publication Date: 2026-11-24GUANGDONG PHNIX ECO ENERGY SOLUTION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611492193.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-23
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing digital PFC converters suffer from reduced control error reliability in the zero-crossing region, inability to adaptively adjust the historical state of the current inner loop integration, and inability to distinguish between different operating conditions when the voltage approaches and leaves zero, resulting in current waveform distortion and affecting the converter's harmonic suppression and power factor control performance.

Method used

By acquiring the input voltage and current of the power factor correction converter, calculating the current reference and error, using the zero-crossing state machine to identify the voltage state, and combining state transition events and state control parameters, actively managing the integral state, generating control correction quantities, optimizing the duty cycle to track the current reference, and reducing noise interference.

Benefits of technology

It improves the harmonic suppression capability and power factor control effect in the zero-crossing region, ensures that the input current and voltage are in phase, and reduces current waveform distortion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123163347A_ABST
    Figure CN123163347A_ABST
Patent Text Reader

Abstract

This invention relates to the field of converter control technology, and discloses a control method, apparatus, and device for a zero-crossing power factor correction converter. The method includes: acquiring input voltage and input current, calculating current reference and current error; calculating the input voltage amplitude and its rate of change based on the input voltage, and determining the state of the zero-crossing state machine; forming a state transition event from the current state to the state of the previous cycle, and determining state control parameters; determining the integral state based on the current error and state control parameters, whereby the state control parameters include historical integral coefficients and error injection coefficients; generating a control correction quantity based on the integral state and state control parameters, acquiring the DC bus voltage to calculate the feedforward duty cycle, and then calculating the duty cycle again; writing the duty cycle into a pulse width modulation comparator register, and repeating the above steps until a preset stop condition is reached. This invention improves the converter's harmonic suppression capability and power factor control effect in the zero-crossing region through the cooperation of the zero-crossing state machine and state integral management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of converter control technology, and specifically to a zero-crossing power factor correction converter control method, apparatus, and equipment. Background Technology

[0002] Currently, digital power factor correction (PFC) converters are widely used in heat pump systems, air conditioning power supplies, and high-efficiency AC / DC (Alternating Current / Direct Current) conversion systems. Their core objective is to improve the power factor and reduce grid harmonic pollution by controlling the input current to keep it in phase with the input voltage and in a sinusoidal waveform.

[0003] Existing digital PFC converters typically employ a dual closed-loop structure: an outer voltage loop controls the output power or bus voltage, while an inner current loop tracks the input current. The current reference is calculated from the input AC voltage and the output power. However, in the AC voltage zero-crossing region, this approach suffers from the following significant drawbacks: (1) The decrease in signal amplitude in the zero-crossing region leads to a decrease in the reliability of control error: When the input AC voltage approaches zero, the current reference and input current amplitude decrease synchronously. At this time, the relative proportion of ADC (Analog-to-Digital Converter) quantization error, sensor bias, PWM (Pulse Width Modulation) switching noise, and digital operation error in the feedback signal increases significantly. The dual closed-loop current inner loop uses a unified processing logic for all feedback errors, which cannot distinguish between effective current deviation and noise interference. It is easy to cause control output jitter near the voltage zero crossing, resulting in current waveform distortion.

[0004] (2) The historical integral state of the inner current loop cannot automatically match the new half-cycle when crossing zero: The dual closed-loop inner current control has the characteristic of integral state memory, which can retain the integral state accumulated in the historical control cycle. During the AC voltage zero-crossing commutation, the integral state accumulated in the previous half-cycle continues to act on the PWM control output. After the voltage polarity reverses and enters a new half-cycle, the remaining historical integral state does not match the current current control reference, causing local distortions such as zero-crossing spikes, plateaus, and secondary recovery impacts.

[0005] (3) Conventional dynamic parameter adjustment cannot handle existing historical integral quantities: The dynamic gain control scheme of the inner loop of the dual closed loop can only change the weight of the new error entering the integrator, and cannot automatically handle the integral state that existed before entering the state. Even if the integral update is weakened in the zero-crossing region, the residual integral will still continue to participate in the control output, and the zero-crossing integral mismatch problem cannot be fundamentally solved.

[0006] (4) The control strategy is poorly adapted because it does not distinguish between the two-way change conditions of voltage zero crossing: The low voltage amplitude range includes two processes: voltage approaching zero and voltage moving away from zero after crossing zero. The control objectives for the two processes are different. The former requires releasing the integral memory of the first half-cycle in advance, while the latter requires smooth recovery of the current tracking capability of the new half-cycle. Relying solely on the voltage amplitude without judging the voltage change rate cannot distinguish between the two operating conditions mentioned above.

[0007] In summary, the existing dual-loop PFC control scheme is unable to cope with noise interference in the zero-crossing region, the historical state of the current inner loop integration cannot be adaptively adjusted according to the voltage polarity reversal, and it cannot distinguish between different operating conditions when the voltage approaches and leaves zero, resulting in distortion of the current waveform at the zero-crossing point, which affects the converter's harmonic suppression and power factor control performance. Summary of the Invention

[0008] This invention provides a control method, apparatus, and device for a zero-crossing power factor correction converter, which solves the problems of existing solutions being unable to cope with noise interference in the zero-crossing region, the inability of the current inner loop integral historical state to adaptively adjust with voltage polarity reversal, and the inability to distinguish between different operating conditions when the voltage approaches and leaves zero, resulting in current waveform distortion at the zero-crossing point and affecting the converter's harmonic suppression and power factor control performance.

[0009] In a first aspect, the present invention provides a control method for a zero-crossing power factor correction converter, the method comprising: Obtain the input voltage and input current of the power factor correction converter in the current control cycle, and calculate the current reference and current error; The input voltage amplitude and its rate of change are calculated based on the input voltage to determine the zero-crossing state of the zero-crossing state machine in the current control cycle. The zero-crossing state machine is used to identify the state of the input voltage in the zero-crossing region. The current control cycle and the zero-crossing state of the previous control cycle are combined to form a state transition event, and the state control parameters corresponding to the state transition event are determined. Based on the current error and state control parameters of the current control cycle, the integral state of the current control cycle is determined. The state control parameters include historical integral coefficients and error injection coefficients. The historical integral coefficients are used to control the retention or decay of the integral state of the previous control cycle, and the error injection coefficients are used to control the injection of current error in the current control cycle. The control correction quantity for the current control cycle is generated based on the integral state and state control parameters of the current control cycle. The DC bus voltage of the power factor correction converter is obtained and the feedforward duty cycle is calculated. The duty cycle for the current control cycle is calculated based on the feedforward duty cycle and the control correction quantity for the current control cycle. Write the duty cycle of the current control cycle into the pulse width modulation comparator register so that the input current of the power factor correction converter tracks the current reference. Complete the current control cycle and return to the step of obtaining the input voltage and input current of the power factor correction converter in the current control cycle until the preset stop condition is reached.

[0010] This invention provides a tracking target and feedback basis for the inner current loop by acquiring the input voltage and current of the power factor correction converter in the current control cycle and calculating the current reference and current error. Based on the input voltage, the input voltage amplitude and its rate of change are calculated to determine the zero-crossing state machine in the current control cycle, enabling the controller to distinguish between two operating conditions: the input voltage approaching zero and leaving zero. By forming state transition events from the current control cycle and the zero-crossing states of the previous control cycle, and determining the corresponding state control parameters, the control strategy depends not only on the current state but also on the state transition relationship. The integral state is determined based on the current error and the state control parameters, where the historical integral coefficient is used to control the retention or decay of the integral state of the previous control cycle, and the error injection coefficient is used to control the injection of the current current error, enabling proactive management of existing historical integral quantities. The control correction quantity is generated based on the integral state and the state control parameters, and the duty cycle of the current control cycle is obtained by combining the feedforward duty cycle calculated with the DC bus voltage, allowing the inner current loop to only bear a small correction amount, reducing its regulation burden. Finally, the duty cycle is written to the pulse width modulation comparator register, causing the input current to track the current reference. This process is repeated in each control cycle, ensuring that the input current and input voltage remain in phase at zero crossings, thus improving the power factor and reducing harmonics. Through the coordination of the zero-crossing state machine and state-dependent integral management, the integral state continuously transitions with the zero-crossing process, suppressing local distortion and improving the harmonic suppression capability and power factor control effect of the power factor correction converter in the zero-crossing region.

[0011] In one alternative implementation, the current reference is calculated using the following formula:

[0012] In the formula, Indicates the first k Current reference for each control cycle; k An index indicating the control cycle; Indicates the preset current reference scaling factor; Indicates the first k Active power command for each control cycle; Indicates the first k Input voltage for each control cycle; Indicates the first k The effective value of the input voltage for each control cycle is obtained through... Calculations show that N Indicates the firstk The number of control cycles contained in a sliding window whose endpoint is a control cycle.

[0013] Through the aforementioned current reference calculation method, the present invention enables the current reference to remain in phase with the input voltage and exhibit sinusoidal changes. Simultaneously, it utilizes the effective value of the input voltage for normalization, ensuring that the conversion relationship between power command and current reference amplitude does not significantly change with variations in the effective value of the input voltage. This provides a stable and accurate tracking target for subsequent zero-crossing state identification and state-related integral management.

[0014] In one optional implementation, the input voltage amplitude and its rate of change are calculated based on the input voltage to determine the zero-crossing state of the zero-crossing state machine in the current control cycle, including: Calculate the absolute value of the input voltage as the input voltage amplitude; Calculate the difference between the input voltage amplitude of the current control cycle and that of the previous control cycle to obtain the first change in the input voltage amplitude; Calculate the ratio of the first change to the time length of each control cycle to obtain the rate of change; Based on the input voltage amplitude and its rate of change, the candidate state for the current control cycle is determined; Hysteresis judgment is performed on the candidate states of the current control cycle to obtain the state to be confirmed; The status to be confirmed is continuously evaluated to obtain the zero-crossing zone status of the current control cycle.

[0015] This invention identifies the state based on the amplitude and rate of change of the input voltage, enabling the zero-crossing state machine to accurately distinguish between the two different operating conditions before and after zero crossing. Furthermore, through hysteresis judgment and continuous judgment, it avoids repeated switching of the state in adjacent control cycles due to noise or slight voltage fluctuations, thereby improving the reliability of zero-crossing state identification.

[0016] In one optional implementation, hysteresis judgment is performed on the candidate states of the current control cycle to obtain the state to be confirmed, including: Determine the entry threshold corresponding to the candidate state and the exit threshold corresponding to the zero-crossing state of the previous control cycle; If the candidate state of the current control cycle is the same as the zero-crossing state of the previous control cycle, the candidate state is determined as a state to be confirmed. If the candidate state of the current control cycle is different from the zero-crossing state of the previous control cycle, the candidate state is determined as a state to be confirmed when the candidate state meets the entry threshold and the zero-crossing state of the previous control cycle meets the exit threshold. If the candidate state of the current control cycle is different from the zero-crossing state of the previous control cycle, the zero-crossing state of the previous control cycle will be determined as a state to be confirmed if the candidate state does not meet the entry threshold or the zero-crossing state of the previous control cycle does not meet the exit threshold.

[0017] This invention sets an entry threshold for candidate states and an exit threshold for zero-crossing states in the previous control cycle. Switching is only allowed when the candidate state meets the entry condition and the old state meets the exit condition; otherwise, the old state is maintained. This avoids repeated state switching near the zero-crossing threshold due to noise or slight voltage fluctuations, thereby improving the stability and reliability of zero-crossing state identification.

[0018] In one optional implementation, the state to be confirmed is continuously judged to obtain the zero-crossing state of the current control cycle, including: If the pending confirmation status is the same as the pending confirmation status in the previous control cycle, the confirmation count is incremented; If the status to be confirmed is different from the status to be confirmed in the previous control cycle, the confirmation count is reset to zero. When the confirmation count reaches a preset duration, the state to be confirmed is determined as the zero-crossing state of the current control cycle; When the count is confirmed to have not reached the preset duration, the zero-crossing state of the previous control cycle is determined as the zero-crossing state of the current control cycle.

[0019] This invention performs continuous periodic counting of the state to be confirmed. Only when the state to be confirmed is continuously maintained for a preset duration is it confirmed as the zero-crossing state of the current control cycle. If the state changes midway, the count is reset to zero. This avoids false state switching caused by single-cycle noise or transient disturbances, and further improves the reliability and stability of zero-crossing state identification.

[0020] In one optional implementation, the state control parameters further include error dead zone, proportional gain coefficient, and change threshold. Based on the current error and state control parameters of the current control cycle, determine the integral state of the current control cycle, including: The current error of the current control cycle is processed based on the error dead zone to obtain the effective error; Based on historical integral coefficients, the integral state of the previous control cycle, error injection coefficients, preset integral gain coefficients, the time length of each control cycle, and the effective error, candidate integral values ​​are calculated. Calculate the second change between the candidate integral value of the current control cycle and the integral state of the previous control cycle. Limit the second change based on the change threshold. Add the limited second change to the integral state of the previous control cycle to obtain the first integral value. Based on the control correction, effective error and proportional gain coefficient of the previous control cycle, perform disturbance-free initialization and calculate the second integral value. When the proportional gain coefficient of the current control cycle is the same as that of the previous control cycle, the first integral value is taken as the integral state of the current control cycle. When the proportional gain coefficient of the current control cycle is different from that of the previous control cycle, the integral difference between the second integral value and the first integral value is calculated. The integral difference is limited based on the change threshold. The limited integral difference is added to the first integral value to obtain the integral state of the current control cycle.

[0021] This invention suppresses zero-crossing noise from entering the integrator through error dead-zone processing, effectively distinguishing between effective current deviation and noise interference. By utilizing historical integral coefficients and error injection coefficients to control the retention or decay of old integrals and the injection of new errors, it proactively manages existing historical integral quantities, preventing residual integrals from the first half-cycle from directly affecting the new half-cycle. Limiting the integral change based on a change threshold prevents abrupt changes in the integral state during state transitions. Finally, by selecting the first integral value or limiting the transition of the second integral value based on whether the proportional gain coefficient changes, the control output is made approximately continuous before and after state transitions, avoiding jumps in control output caused by changes in the proportional gain coefficient, thereby suppressing local distortion.

[0022] In one optional implementation, the state control parameters further include an upper limit for the control correction amount; Based on the integral state and state control parameters of the current control cycle, the control correction quantity for the current control cycle is generated, including: Calculate the product of the proportional gain coefficient and the effective error, and use the sum of the product and the integral state of the current control cycle as the candidate correction value; Based on the preset lower limit and upper limit of the control correction, the candidate correction value is limited, and the limited candidate correction value is used as the control correction value for the current control cycle.

[0023] This invention adds the product of the proportional gain coefficient and the effective error to the integral state of the current control cycle, enabling the control correction to simultaneously reflect a rapid response to the current error and a cumulative correction to historical errors. Limiting the candidate correction based on the lower and upper limits of the control correction prevents excessively large or small control corrections from causing abnormal control outputs, ensuring the stability and safety of the inner current loop output, and avoiding sudden changes in the duty cycle due to control correction saturation. This helps maintain stable tracking of the input current to the current reference in the zero-crossing region.

[0024] In a second aspect, the present invention provides a zero-crossing power factor correction converter control device, the device comprising: The acquisition module is used to acquire the input voltage and input current of the power factor correction converter in the current control cycle, and to calculate the current reference and current error. The state recognition module is used to calculate the input voltage amplitude and its rate of change based on the input voltage in order to determine the zero-crossing state machine in the current control cycle. The zero-crossing state machine is used to identify the state of the input voltage in the zero-crossing region. The state mapping module is used to combine the zero-crossing states of the current control cycle and the previous control cycle into a state transition event, and to determine the state control parameters corresponding to the state transition event. The state integration module is used to determine the integral state of the current control cycle based on the current error and state control parameters of the current control cycle. The state control parameters include historical integration coefficients and error injection coefficients. The historical integration coefficients are used to control the retention or decay of the integral state of the previous control cycle, and the error injection coefficients are used to control the injection of current error in the current control cycle. The control generation module is used to generate the control correction amount for the current control cycle based on the integral state and state control parameters of the current control cycle, obtain the DC bus voltage of the power factor correction converter and calculate the feedforward duty cycle, and calculate the duty cycle of the current control cycle based on the feedforward duty cycle and the control correction amount of the current control cycle. The output module is used to write the duty cycle of the current control cycle into the pulse width modulation comparison register so that the input current of the power factor correction converter tracks the current reference, completes the current control cycle, and returns to the step of obtaining the input voltage and input current of the power factor correction converter in the current control cycle until the preset stop condition is reached.

[0025] Thirdly, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the zero-crossing power factor correction converter control method of the first aspect or any corresponding embodiment described above.

[0026] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the zero-crossing power factor correction converter control method of the first aspect or any corresponding embodiment thereof. Attached Figure Description

[0027] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0028] Figure 1 This is a flowchart of a zero-crossing power factor correction converter control method according to an embodiment of the present invention; Figure 2 This is a flowchart of another zero-crossing power factor correction converter control method according to an embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the transition relationship of candidate states according to an embodiment of the present invention; Figure 4 This is a structural block diagram of a zero-crossing power factor correction converter control device according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0030] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.

[0031] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0032] According to an embodiment of the present invention, a control method for a zero-crossing power factor correction converter is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0033] This embodiment provides a zero-crossing power factor correction converter control method, applicable to single-phase Boost PFC systems, which is executed cyclically in a digital controller (such as a DSP or MCU) with a fixed control cycle. Figure 1 This is a flowchart of a zero-crossing power factor correction converter control method according to an embodiment of the present invention, as shown below. Figure 1 As shown, the process includes the following steps: Step S101: Obtain the input voltage and input current of the power factor correction converter in the current control cycle, and calculate the current reference and current error.

[0034] Specifically, the input voltage and input current of the PFC converter in the current control cycle are acquired synchronously or quasi-synchronously via an ADC. The input voltage is used to generate a current reference in phase with the input voltage, while the input current reflects the actual tracking state. Subtracting the input current from the current reference yields the current error. Optionally, zero-bias compensation, proportional conversion, and necessary digital filtering can be performed on the acquired input voltage and input current to improve data quality.

[0035] It should be noted that if the rectified input voltage is obtained as a synchronization quantity, that is, the absolute value of the input voltage, it has no positive or negative distinction and cannot be directly used to calculate the current reference. In this case, the polarity of the half-cycle of the previous control cycle is obtained, which is either +1 or -1. This value is then multiplied by the rectified voltage to recover the positive or negative input voltage, and the current reference is further calculated based on this.

[0036] Step S102: Calculate the input voltage amplitude and its rate of change based on the input voltage to determine the zero-crossing state of the zero-crossing state machine in the current control cycle. The zero-crossing state machine is used to identify the state of the input voltage in the zero-crossing region.

[0037] Specifically, the input voltage amplitude represents how close the current input voltage is to zero, and the rate of change is used to distinguish whether the input voltage is approaching zero or has already crossed zero and is moving away from zero. Based on these two factors, the zero-crossing state machine determines the zero-crossing state in the current control cycle.

[0038] The zero-crossing state machine includes four states: NORMAL, PRE (approaching zero), ZERO (zero-crossing), and POST (having crossed zero and leaving zero). A typical zero-crossing process can be represented as a closed-loop state transition: NORMAL→PRE→ZERO→POST→NORMAL. This allows the controller to accurately distinguish between the two different operating conditions before and after zero-crossing, improving the adaptability of the control strategy. Optionally, in addition to the above four states, the zero-crossing state machine can also add states such as "polarity confirmation," "abnormal backoff," and "light load zero-crossing," or the above four states can be combined into three states, as long as the directional state recognition and state-related integral management for the zero-crossing process are maintained.

[0039] Step S103: Combine the current control cycle and the zero-crossing state of the previous control cycle into a state transition event, and determine the state control parameters corresponding to the state transition event.

[0040] Specifically, the zero-crossing states of the current control cycle and the previous control cycle are combined to form a state transition event: T(k) = {S(k)} 1), S(k)}. Where, T(k) represents the state transition event; S(k) 1) represents the zero-crossing state of the previous control cycle; S(k) represents the zero-crossing state of the current control cycle. Typical state transition events include: T(k)={NORMAL,NORMAL}, T(k)={NORMAL,PRE}, T(k)={PRE,PRE}, T(k)={PRE,ZERO}, T(k)={ZERO,ZERO}, T(k)={ZERO,POST}, T(k)={POST,POST}, and T(k)={POST,NORMAL}. Different T(k) correspond to different integral history memory, error injection, integral rate of change, and recovery strategies, i.e., different state control parameters. Therefore, the control strategy no longer "only considers which state it is currently in," but also considers "which state it has transitioned from," so that the control state parameters can be continuously adjusted with the zero-crossing process, avoiding the residual integral state of the previous half-cycle from directly affecting the new half-cycle, and also avoiding the need to passively deal with the existing historical integral quantity by simply adjusting the proportional and integral parameters. Where, when S(k)=S(k) 1) When the state transition event is a state hold event, it is used to continue using the corresponding state control parameters when the same zero-crossing state is held continuously for multiple control cycles.

[0041] It should be noted that if the state transition event is T(k)={ZERO,POST}, it indicates that a zero-crossing event has occurred. In this case, the polarity of the half-cycle of the previous control cycle is reversed, that is, +1 is flipped to -1; -1 is flipped to +1, thus obtaining the polarity of the half-cycle of the current control cycle. If the state transition event is not T(k={ZERO,POST}, then the polarity of the half-cycle of the previous control cycle remains unchanged and is still used as the polarity of the half-cycle of the current control cycle.

[0042] A state control parameter can be expressed as:

[0043] in, Indicates a state transition event T The corresponding state control parameters; Indicates a state transition event T The corresponding proportional gain coefficient; Indicates a state transition event T The corresponding historical integral coefficients can be obtained by exponential decay, linear decay, table lookup, or model prediction. Indicates a state transition event T The corresponding error injection coefficient; Indicates a state transition event T The maximum permissible change in the internal state of the corresponding integral per cycle, i.e., the change threshold. Indicates a state transition event T The corresponding error dead zone can be larger when T(k)={PRE,ZERO} and T(k)={ZERO,ZERO}, and gradually reduced when T(k)={ZERO,POST} and T(k)={POST,POST}, thereby achieving stronger noise suppression near the zero point and restoring high-precision tracking after leaving the zero point; Indicates a state transition event T The corresponding upper limit of the control correction amount; Indicates a state transition event T The recovery factor for the corresponding POST status.

[0044] Table 1 below shows some of the state control parameters corresponding to typical state transition events: Table 1

[0045] For T(ZERO,POST), due to the initial... B The value is relatively small, therefore it needs to be gradually restored using a recovery factor. During the process of transitioning from ZERO to POST, the first... q Each control cycle B The value can be calculated using the following formula:

[0046] In the formula, The value at the end of T(ZERO,ZERO) can be taken. B Value, can also be found A preset value is defined within the range; This indicates the preset number of recovery cycles.

[0047] The values ​​in Table 1 above illustrate the quantization implementation method. These values ​​can be obtained through simulation and actual testing during the product design and debugging phases, based on the PFC inductor, PWM frequency, sampling period, current loop bandwidth, sampling noise, and rated power. The results are stored as a parameter table in the DSP / MCU program and can also be corrected online. Therefore, this invention does not require the control strategy to remain fixed.

[0048] Step S104: Based on the current error and state control parameters of the current control cycle, determine the integral state of the current control cycle. The state control parameters include historical integral coefficients and error injection coefficients. The historical integral coefficients are used to control the retention or decay of the integral state of the previous control cycle, and the error injection coefficients are used to control the injection of current error in the current control cycle.

[0049] Specifically, in the current control cycle, the controller updates the unique integral state of the current loop based on the current error and state control parameters. The current loop uses the same integral state in different zero-crossing states, with the update method of this integral state only changing through historical integral coefficients and error injection coefficients. The state control parameters include at least historical integral coefficients and error injection coefficients: the historical integral coefficients act on the integral state already existing in the previous control cycle, determining whether it is retained or gradually decayed; the error injection coefficients act on the current error in the current control cycle, determining its weight when entering the integrator. Since noise accounts for a large proportion of this current error in the zero-crossing region, reducing this weight can suppress noise from entering the integrator through the error channel and accumulating.

[0050] By separating the processing of old integrals and the injection of new errors into two independent stages, the controller can actively weaken or clear the integral memory remaining in the first half of the cycle, rather than simply changing the proportion of new errors entering the integrator. Thus, when weakening or even freezing error injection in the zero-crossing region, it can still manage the existing historical integral quantities in a controlled manner, avoiding the problem that conventional dynamic parameter adjustment cannot handle existing historical integral quantities.

[0051] Step S105: Generate the control correction quantity for the current control cycle based on the integral state and state control parameters of the current control cycle; obtain the DC bus voltage of the power factor correction converter and calculate the feedforward duty cycle; calculate the duty cycle for the current control cycle based on the feedforward duty cycle and the control correction quantity for the current control cycle.

[0052] Specifically, a control correction quantity for the current control cycle is generated based on the integral state and state control parameters of the current control cycle. This quantity is used to correct the current error in the current inner loop, thereby allowing the integral state to influence the subsequent duty cycle generation. Since the above steps separate the processing of the old integral state from the injection of the new error, the correction quantity generated here will not carry over the residual integral state from the first half-cycle into the PWM control output unchanged. Therefore, it no longer relies on the dynamic adjustment of the proportional and integral parameters to passively respond to the existing integral quantity, effectively avoiding local distortion of the input current at zero crossings.

[0053] Obtain the DC bus voltage of the PFC converter and calculate the ratio of the input voltage amplitude to the DC bus voltage. Subtract this ratio from 1 to obtain the feedforward duty cycle, which is the ideal duty cycle predetermined based on the voltage relationship of the Boost power stage in the PFC converter. Calculating this ideal duty cycle reduces the regulation burden on the inner current loop, allowing it to output only a small correction amount in the zero-crossing region. This reduces the proportion of output fluctuations caused by zero-crossing noise in the control output and lowers the sensitivity of the inner current loop to noise interference.

[0054] Based on the feedforward duty cycle and the control correction amount for the current control cycle, the duty cycle is calculated using the following formula:

[0055] In the formula, Indicates the first k Duty cycle of each control cycle; Indicates the first k Feedforward duty cycle of each control cycle; This represents the preset conversion factor from the control output to the duty cycle; This represents a limiting function, used to restrict the first value within the parentheses to between the second and third values. If the first value is less than the second value, the second value is used; if the first value is greater than the third value, the third value is used; otherwise, the first value is used. Indicates the first k Control correction amount for each control cycle; Indicates the lower limit of the preset duty cycle; This indicates the maximum preset duty cycle.

[0056] Step S106: Write the duty cycle of the current control cycle into the pulse width modulation comparison register so that the input current of the power factor correction converter tracks the current reference. Complete the current control cycle and return to the step of obtaining the input voltage and input current of the power factor correction converter in the current control cycle until the preset stop condition is reached.

[0057] Specifically, the duty cycle of the current control cycle is written into the PWM comparator register so that the PWM comparator register outputs a drive signal with the corresponding duty cycle at the next PWM update time, controlling the switching timing of the switching transistors in the PFC converter. At the same time, historical values ​​such as the zero-crossing state, input voltage amplitude, half-cycle polarity, integral state, and recovery factor of the current control cycle are saved for use in the calculation and integral state update of the next control cycle.

[0058] Since the current reference is in phase with the input voltage, by repeating steps S101-S106 in each control cycle, the input current of the PFC converter gradually tracks the current reference, thus maintaining phase with the input voltage at zero crossings, improving the power factor and reducing harmonics. After each control cycle is completed, it returns to S101 until a preset stop condition is met, such as system shutdown, enable shutdown, or fault protection.

[0059] This invention provides a tracking target and feedback basis for the inner current loop by acquiring the input voltage and current of the power factor correction converter in the current control cycle and calculating the current reference and current error. Based on the input voltage, the input voltage amplitude and its rate of change are calculated to determine the zero-crossing state machine in the current control cycle, enabling the controller to distinguish between two operating conditions: the input voltage approaching zero and leaving zero. By forming state transition events from the current control cycle and the zero-crossing states of the previous control cycle, and determining the corresponding state control parameters, the control strategy depends not only on the current state but also on the state transition relationship. The integral state is determined based on the current error and the state control parameters, where the historical integral coefficient is used to control the retention or decay of the integral state of the previous control cycle, and the error injection coefficient is used to control the injection of the current current error, enabling proactive management of existing historical integral quantities. The control correction quantity is generated based on the integral state and the state control parameters, and the duty cycle of the current control cycle is obtained by combining the feedforward duty cycle calculated with the DC bus voltage, allowing the inner current loop to only bear a small correction amount, reducing its regulation burden. Finally, the duty cycle is written to the pulse width modulation comparator register, causing the input current to track the current reference. This process is repeated in each control cycle, ensuring that the input current and input voltage remain in phase at zero crossings, thus improving the power factor and reducing harmonics. Through the coordination of the zero-crossing state machine and state-dependent integral management, the integral state continuously transitions with the zero-crossing process, suppressing local distortion and improving the harmonic suppression capability and power factor control effect of the power factor correction converter in the zero-crossing region.

[0060] This embodiment provides a control method for a zero-crossing power factor correction converter, which can be used in the aforementioned digital controller. The method specifically includes the following steps: Step S201: Obtain the input voltage and input current of the power factor correction converter in the current control cycle, and calculate the current reference and current error.

[0061] Specifically, the current reference is calculated using the following formula:

[0062] In the formula, Indicates the first k Current reference for each control cycle; k An index indicating the control cycle; This represents the preset current reference scaling factor, used to compensate for sampling ratios, per-unit scaling, or proportional conversions in digital control. Indicates the first k The active power command for each control cycle can be generated by the DC bus voltage outer loop or determined by the system load demand. Indicates the first k Input voltage for each control cycle; Indicates the first k The effective value of the input voltage for each control cycle is obtained through... Calculations show that N Indicates the first k The number of control cycles contained in a sliding window whose endpoint is a control cycle.

[0063] In the above formula, through Normalizing the current reference can reduce the impact of input voltage variations on the current reference. The impact of the conversion relationship between the reference current and the reference current.

[0064] Step S202: Calculate the input voltage amplitude and its rate of change based on the input voltage to determine the zero-crossing state of the zero-crossing state machine in the current control cycle. The zero-crossing state machine is used to identify the state of the input voltage in the zero-crossing region.

[0065] Specifically, step S202 includes: Step S2021: Calculate the absolute value of the input voltage as the input voltage amplitude.

[0066] Step S2022: Calculate the difference between the input voltage amplitude of the current control cycle and the previous control cycle to obtain the first change in the input voltage amplitude.

[0067] Step S2023: Calculate the ratio of the first change to the time length of each control cycle to obtain the rate of change.

[0068] Step S2034: Based on the input voltage amplitude and its rate of change, determine the candidate state for the current control cycle.

[0069] Specifically, setting a zero-crossing threshold includes and And satisfy It is determined by the following formula:

[0070] In the formula, Indicates the zero core boundary; This allows for a wider zero-crossing window under light loads and a narrower zero-crossing window under heavy loads. This indicates the current output power of the PFC. When the controller does not directly calculate this output power, an equivalent power parameter that can represent the current load level can also be used, such as... ; This indicates the rated output power of the PFC, used to normalize the current load level. express The preset lower limit, express The preset upper limit is used to appropriately expand the zero-crossing window under light load and shrink the zero-crossing window under heavy load by limiting the amplitude. Similarly, we can obtain; This indicates the outer boundary of the zero-crossing preprocessing / recovery region.

[0071] Optionally, in simplified cases where dynamic windows are not used, a fixed threshold can also be employed. For example, when the effective value of the input voltage is 220V, the threshold can be selected based on the actual hardware. Approximately 10-20V Approximately 20-35V.

[0072] When the input voltage amplitude is less than At this time, the current reference is relatively small and the noise effect is relatively strong, requiring freezing or significantly weakening of the integral; the input voltage drops to Preprocessing of historical integrals begins at a certain point, and after crossing zero, the integrals are re-crossed. Then exit special control.

[0073] Let the input voltage amplitude be denoted as The rate of change is denoted as Furthermore, a rate-of-change dead zone is set to suppress sampling noise. For the four types of zero-crossing state machines mentioned above, the condition for determining the candidate state is: NORMAL: PRE: and This indicates that the input voltage is approaching zero; ZERO: This indicates that the kernel is in a zero-crossing region; POST: and This indicates that the input voltage is leaving zero and entering the recovery phase; when and When the control cycle is in progress, the candidate state of the previous control cycle is retained as the candidate state of the current control cycle.

[0074] In some alternative implementations, Figure 3 This is a schematic diagram of the transition relationship of candidate states according to an embodiment of the present invention, such as... Figure 3 As shown, when When the zero zone state machine is in the NORMAL state, and At that time, it was transferred from NORMAL to PRE. The process was transferred from PRE to ZERO. and The process is transferred from ZERO to POST. The state transitions from POST to NORMAL. This transition relationship is used to describe the typical evolutionary path of a candidate state.

[0075] Optionally, when the rate of change is negative, the ratio of the input voltage amplitude to the rate of change is calculated and then inverted to obtain the estimated zero-crossing time. Alternatively, linear extrapolation, phase-locked loop phase prediction, or grid cycle can be used to estimate the zero-crossing time. If this zero-crossing time is greater than zero and less than a preset lead time, then even if the input voltage amplitude has not yet been less than [a certain value], the zero-crossing time is considered to be within the range specified in the original text. This also identifies the candidate state as PRE, allowing the integral pre-release action to begin earlier.

[0076] Optionally, in addition to determining the candidate state by the input voltage amplitude and its rate of change, other variables (such as input current, bus voltage ripple, phase-locked loop phase, grid frequency, input current rate of change, output power, etc.) can be introduced to improve the reliability of state identification under complex operating conditions.

[0077] Step S2035: Perform hysteresis judgment on the candidate states of the current control cycle to obtain the state to be confirmed.

[0078] In some optional implementations, step S2035 above includes: Step a1: Determine the entry threshold corresponding to the candidate state and the exit threshold corresponding to the zero-crossing state of the previous control cycle.

[0079] Specifically, an entry threshold corresponding to a candidate state and an exit threshold corresponding to a zero-crossing state in the previous control cycle are determined. These two thresholds serve as hysteresis thresholds to prevent noise-induced state jitter. The entry threshold is used to determine whether a candidate state is allowed to enter, and the exit threshold is used to determine whether a zero-crossing state in the previous control cycle is allowed to exit.

[0080] Step a2: If the candidate state of the current control cycle is the same as the zero-crossing state of the previous control cycle, the candidate state is determined as the state to be confirmed.

[0081] Specifically, if the candidate state of the current control cycle is the same as the zero-crossing state of the previous control cycle, it means that no state entry or exit is required. In this case, the candidate state is directly determined as the state to be confirmed, thereby maintaining the continuity of the state.

[0082] Step a3: If the candidate state of the current control cycle is different from the zero-crossing state of the previous control cycle, the candidate state is determined as a state to be confirmed when the candidate state meets the entry threshold and the zero-crossing state of the previous control cycle meets the exit threshold.

[0083] Specifically, if the candidate state of the current control cycle is different from the zero-crossing state of the previous control cycle, it indicates that it involves exiting the zero-crossing state of the previous control cycle and entering the candidate state of the current control cycle. In this case, it is necessary to make a judgment based on the aforementioned hysteresis threshold. If the candidate state meets the entry threshold and the zero-crossing state of the previous control cycle meets the exit threshold, it means that the zero-crossing state of the previous control cycle has met the exit condition and the candidate state has also met the entry condition. Normal exit and entry of the state can be realized. Therefore, the candidate state is determined as a state to be confirmed.

[0084] Step a4: If the candidate state of the current control cycle is different from the zero-crossing state of the previous control cycle, and the candidate state does not meet the entry threshold or the zero-crossing state of the previous control cycle does not meet the exit threshold, the zero-crossing state of the previous control cycle is determined as a state to be confirmed.

[0085] Specifically, if the candidate state does not meet the entry threshold or the zero-crossing zone state of the previous control cycle does not meet the exit threshold, it means that the normal exit or normal entry of the state cannot be achieved. Therefore, the zero-crossing zone state of the previous control cycle is determined as a state to be confirmed to avoid premature state switching due to insufficient conditions.

[0086] Step S2036: Continuously judge the state to be confirmed to obtain the zero-crossing state of the current control cycle.

[0087] In some optional implementations, step S2036 above includes: Step b1: If the status to be confirmed is the same as the status to be confirmed in the previous control cycle, the confirmation count is incremented.

[0088] Step b2: If the status to be confirmed is different from the status to be confirmed in the previous control cycle, the confirmation count is cleared to zero.

[0089] Step b3: When the confirmation count reaches the preset duration, the state to be confirmed is determined as the zero-crossing state of the current control cycle.

[0090] Specifically, if the confirmation count reaches a preset duration, it indicates that the state to be confirmed has been maintained for a sufficient number of control cycles and is no longer an accidental result caused by single-cycle noise. At this point, it is confirmed as the zero-crossing state of the current control cycle. The preset duration can be set according to the state to be confirmed.

[0091] Step b4: When it is confirmed that the count has not reached the preset continuous quantity, the zero-crossing state of the previous control cycle is determined as the zero-crossing state of the current control cycle.

[0092] Specifically, if the confirmation count does not reach the preset duration, it means that the state to be confirmed has not been maintained for a sufficient number of control cycles and may still be caused by noise or transients. In this case, the zero-crossing state of the previous control cycle is determined as the zero-crossing state of the current control cycle to maintain state stability and avoid premature state switching due to single-cycle disturbances.

[0093] Step S203: Combine the zero-crossing states of the current control cycle and the previous control cycle into a state transition event, and determine the state control parameters corresponding to the state transition event. For details, please refer to [link to relevant documentation]. Figure 1 Step S103 of the illustrated embodiment will not be described again here.

[0094] In some optional implementations, a half-cycle refers to the time between the end of one zero-crossing process and the end of the next, i.e., one half-cycle of the grid voltage. When the state transition event is T(k)={POST,NORMAL}, it indicates the end of the current zero-crossing process. The zero-crossing peak current, plateau duration, and cumulative error during this half-cycle of zero-crossing from the previous state transition event {PRE,ZERO} to this point are statistically analyzed to form a zero-crossing quality index. The zero-crossing peak current refers to the maximum amplitude of the input current during this half-cycle of zero-crossing, used to measure whether a current spike occurs near the zero crossover; the plateau duration refers to the length of time the input current remains approximately constant near the zero crossover, used to measure whether a current plateau occurs near the zero crossover; the cumulative error refers to the cumulative value of the current error during this half-cycle of zero-crossing, used to measure the overall deviation of the current tracking reference near the zero crossover. Based on this zero-crossing quality index, the zero-crossing threshold, integral pre-release degree, and POST recovery speed of the next half-cycle can be adjusted, thereby forming a half-cycle-level adaptive optimization and improving the zero-crossing control quality of the next half-cycle.

[0095] Step S204: Based on the current error and state control parameters of the current control cycle, determine the integral state of the current control cycle. The state control parameters include historical integral coefficient, error injection coefficient, error dead zone, proportional gain coefficient, and change threshold. The historical integral coefficient is used to control the retention or decay of the integral state of the previous control cycle, and the error injection coefficient is used to control the injection of current error in the current control cycle.

[0096] Specifically, step S204 includes: Step S2041: Perform dead-zone processing on the current error of the current control cycle based on the error dead zone to obtain the effective error.

[0097] Specifically, if the current error of the current control cycle is not greater than the error dead zone corresponding to its state transition event, it indicates that the error is within the range where noise may dominate and is insufficient as a basis for effective control. Therefore, the effective error is... Set to 0; if the current error is greater than the error dead zone, it means that the error has exceeded the noise level, then the effective error is: , This represents the current error, in order to suppress noise near the zero point from entering subsequent integration calculations while preserving the true deviation.

[0098] Step S2042: Calculate candidate integral values ​​based on historical integral coefficients, integral state of the previous control cycle, error injection coefficient, preset integral gain coefficient, time length of each control cycle, and effective error.

[0099] Specifically, the candidate values ​​for the integral are calculated using the following formula:

[0100] In the formula, Indicates the first k Candidate integral values ​​for each control cycle; Indicates the first k- Candidate integral values ​​for one control cycle; This represents the preset integral gain coefficient, which is the reference value under normal conditions. This indicates the duration of each control cycle.

[0101] It is evident that the candidate integral values ​​simultaneously reflect the controlled processing of historical integrals and the controlled injection of current errors.

[0102] Step S2043: Calculate the second change between the candidate integral value of the current control cycle and the integral state of the previous control cycle. Limit the second change based on the change threshold. Add the limited second change to the integral state of the previous control cycle to obtain the first integral value.

[0103] Specifically, the difference between the integral candidate value of the current control cycle and the integral state of the previous control cycle is calculated as the second change. .right Limiting the amplitude: The second change, after being limited, is added to the integral state of the previous control cycle to obtain the first integral value. Therefore, even if the integral candidate value itself changes significantly, the change in the integral state within each control cycle will not exceed the change threshold, thus avoiding abrupt changes in the control output caused by sudden changes in the integral state during state transitions.

[0104] Step S2044: Perform disturbance-free initialization based on the control correction amount, effective error and proportional gain coefficient of the previous control cycle, and calculate the second integral value.

[0105] Specifically, to prevent changes in the proportional term from causing abrupt changes in the control output, a bumpless switching integral initialization can be performed to calculate the second integral value:

[0106] In the formula, This indicates the control correction amount from the previous control cycle.

[0107] In some alternative implementations, the above proportional term is not limited to the product of the proportional gain coefficient and the effective error, but can also take the form of PR (Proportional Resonant) control, predictive current control, feedforward compensation or nonlinear control.

[0108] Step S2045: When the proportional gain coefficient of the current control cycle is the same as that of the previous control cycle, the first integral value is taken as the integral state of the current control cycle.

[0109] Specifically, when the proportional gain coefficient of the current control cycle is the same as that of the previous control cycle, the proportional term does not need to change, and the control output will not change abruptly due to the switching of the proportional gain coefficient. Therefore, the first integral value is directly used as the integral state of the current control cycle to maintain the normal update of the integral state.

[0110] Step S2046: When the proportional gain coefficient of the current control cycle is different from that of the previous control cycle, calculate the integral difference between the second integral value and the first integral value, limit the integral difference based on the change threshold, and add the limited integral difference to the first integral value to obtain the integral state of the current control cycle.

[0111] Specifically, when the proportional gain coefficient of the current control cycle differs from that of the previous control cycle, it indicates a change in the proportional term. To avoid abrupt changes in the control output due to the proportional gain coefficient switching, the integral state needs to be adjusted using the second integral value as the target. First, the integral difference between the second and first integral values ​​is calculated. However, this integral difference cannot be added entirely to the first integral value at once; instead, it is limited based on a change threshold: if the integral difference exceeds the change threshold, the adjustment amount for the current control cycle is the change threshold; if the integral difference does not exceed the change threshold, the integral difference is used. The limited integral difference is then added to the first integral value to obtain the integral state of the current control cycle. This ensures that the integral state changes only slightly in each control cycle, gradually approaching the second integral value, making the control output approximately continuous before and after the state switch, thus avoiding jumps in the control output caused by changes in the proportional gain coefficient.

[0112] Step S205: Generate the control correction amount for the current control cycle based on the integral state and state control parameters of the current control cycle; obtain the DC bus voltage of the power factor correction converter and calculate the feedforward duty cycle; calculate the duty cycle of the current control cycle based on the feedforward duty cycle and the control correction amount of the current control cycle; the state control parameters also include the upper limit of the control correction amount.

[0113] Specifically, step S205 above generates the control correction quantity for the current control cycle based on the integral state and state control parameters of the current control cycle, including: Step S2051: Calculate the product of the proportional gain coefficient and the effective error, and use the sum of the product and the integral state of the current control cycle as the candidate correction value.

[0114] Step S2052: Limit the candidate correction amount based on the preset lower limit and upper limit of the control correction amount, and use the limited candidate correction amount as the control correction amount for the current control cycle.

[0115] Specifically, the control correction amount for the current control cycle is obtained by limiting the candidate correction amount: , Indicates the candidate correction amount. This indicates the lower limit of the preset control correction value. By limiting the value, it prevents the control output from becoming abnormal due to excessive or insufficient control correction, thereby ensuring the stability and safety of the inner current loop output.

[0116] Step S206: Write the duty cycle of the current control cycle into the pulse width modulation comparator register to enable the input current of the power factor correction converter to track the current reference. Complete the current control cycle and return to the step of obtaining the input voltage and input current of the power factor correction converter in the current control cycle, until the preset stop condition is reached. For details, please refer to [link to relevant documentation]. Figure 1 Step S106 of the illustrated embodiment will not be described again here.

[0117] In some alternative implementations, Figure 2 This is a flowchart of another zero-crossing power factor correction converter control method according to an embodiment of the present invention, such as... Figure 2As shown, the AC input power supply is connected to the PFC main circuit after passing through the EMI (Electromagnetic Interference) circuit / rectifier bridge. The PFC main circuit outputs to the DC bus, and then the DC bus supplies power to the load. The controller obtains the input AC voltage, input inductor current, and DC bus voltage through ADC sampling. Based on the amplitude and rate of change of the input AC and input voltage, the zero-crossing state machine is identified in the current control cycle. The zero-crossing states of the current control cycle and the previous control cycle are combined to form a state transition event, and the corresponding state control parameters are determined. Based on the state control parameters and current error, the integral state of the current loop is updated. The control correction quantity is generated according to the integral state, and combined with the feedforward duty cycle to generate the duty cycle of the current control cycle, which is written to the PWM comparator register to control the switching timing of the switching transistors in the PFC main circuit.

[0118] In some alternative implementations, embodiments of the present invention can also be applied to multiphase interleaved PFC. Multiphase interleaved PFC can share the same zero-crossing state machine, that is, each phase shares the same state transition event, but each phase maintains its own integral state, and makes additional corrections to the historical integral coefficients, error injection coefficients and change thresholds according to the current imbalance of each phase, so as to keep the current of each phase balanced.

[0119] This invention provides a tracking target and feedback basis for the inner current loop by acquiring the input voltage and current of the power factor correction converter in the current control cycle and calculating the current reference and current error. Based on the input voltage, the input voltage amplitude and its rate of change are calculated to determine the zero-crossing state machine in the current control cycle, enabling the controller to distinguish between two operating conditions: the input voltage approaching zero and leaving zero. By forming state transition events from the current control cycle and the zero-crossing states of the previous control cycle, and determining the corresponding state control parameters, the control strategy depends not only on the current state but also on the state transition relationship. The integral state is determined based on the current error and the state control parameters, where the historical integral coefficient is used to control the retention or decay of the integral state of the previous control cycle, and the error injection coefficient is used to control the injection of the current current error, enabling proactive management of existing historical integral quantities. The control correction quantity is generated based on the integral state and the state control parameters, and the duty cycle of the current control cycle is obtained by combining the feedforward duty cycle calculated with the DC bus voltage, allowing the inner current loop to only bear a small correction amount, reducing its regulation burden. Finally, the duty cycle is written to the pulse width modulation comparator register, causing the input current to track the current reference. This process is repeated in each control cycle, ensuring that the input current and input voltage remain in phase at zero crossings, thus improving the power factor and reducing harmonics. Through the coordination of the zero-crossing state machine and state-dependent integral management, the integral state continuously transitions with the zero-crossing process, suppressing local distortion and improving the harmonic suppression capability and power factor control effect of the power factor correction converter in the zero-crossing region.

[0120] The present invention has the following beneficial effects: (1) Directly handle historical integral residues instead of just changing PID parameters: Actively decay or maintain the integral state that existed before entering zero crossing by using historical integral coefficients, and limit new error integrals by using error injection coefficients. Therefore, it can solve the problem that ordinary dynamic PID cannot handle historical integral quantities even when the integral gain coefficient is reduced to zero.

[0121] (2) Suppress zero-crossing spikes, plateaus and secondary recovery shocks: unload the integral memory in advance in the state transition event containing PRE, freeze or weakly update the integral in the state transition event containing ZERO, and limit the rate of gradual recovery in the state transition event containing POST, so that the integral state continuously migrates with the zero-crossing process of the input AC voltage, reducing PWM sudden changes and local distortion of the input current.

[0122] (3) Improve the reliability of state judgment: By using direction judgment, double threshold hysteresis and continuous period confirmation, the repeated state switching caused by noise and sampling bias near the zero point is reduced, thus reducing strategy jitter from the source.

[0123] (4) Balancing noise immunity under light load and tracking capability under heavy load: The adaptive zero-crossing window can adjust the state boundary by combining the effective value of the input voltage and the current output power (or the active power command used to characterize the current load level). Under light load, the range of the special zero-crossing control is expanded, and under heavy load, the duration of the limiting integral is shortened.

[0124] (5) Achieve disturbance-free control of state switching: Integral disturbance-free initialization and integral rate of change constraint enable the control output to remain approximately continuous when the control parameters change under different states, reducing the additional waveform distortion caused by state switching itself.

[0125] (6) Pure software implementation and easy engineering integration: It can be directly deployed in the existing DSP / MCU current loop interrupt without changing the Boost power stage and sampling hardware. Only state machine variables, historical integration management and a small amount of calculation logic need to be added.

[0126] (7) It has strong scalability: the same framework can be used for topologies such as single-phase Boost, two-phase interleaved PFC, and Totem-Pole PFC; interleaved PFC can share a zero-crossing state machine, while maintaining the unique integral internal state of each phase.

[0127] This embodiment also provides a zero-crossing power factor correction converter control device, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0128] This embodiment provides a zero-crossing power factor correction converter control device, such as... Figure 4 As shown, it includes: The acquisition module 401 is used to acquire the input voltage and input current of the power factor correction converter in the current control cycle, and to calculate the current reference and current error.

[0129] The state recognition module 402 is used to calculate the input voltage amplitude and its rate of change based on the input voltage to determine the zero-crossing state machine in the current control cycle. The zero-crossing state machine is used to identify the state of the input voltage in the zero-crossing region.

[0130] The state mapping module 403 is used to combine the zero-crossing states of the current control cycle and the previous control cycle into a state transition event, and to determine the state control parameters corresponding to the state transition event.

[0131] The state integration module 404 is used to determine the integral state of the current control cycle based on the current error and state control parameters of the current control cycle. The state control parameters include historical integral coefficients and error injection coefficients. The historical integral coefficients are used to control the retention or decay of the integral state of the previous control cycle, and the error injection coefficients are used to control the injection of current error in the current control cycle.

[0132] The control generation module 405 is used to generate the control correction amount for the current control cycle based on the integral state and state control parameters of the current control cycle, obtain the DC bus voltage of the power factor correction converter and calculate the feedforward duty cycle, and calculate the duty cycle of the current control cycle based on the feedforward duty cycle and the control correction amount of the current control cycle.

[0133] Output module 406 is used to write the duty cycle of the current control cycle into the pulse width modulation comparison register so that the input current of the power factor correction converter tracks the current reference, completes the current control cycle, and returns to the step of obtaining the input voltage and input current of the power factor correction converter in the current control cycle until the preset stop condition is reached.

[0134] In some alternative implementations, the current reference is calculated using the following formula:

[0135] In the formula, Indicates the first k Current reference for each control cycle; k An index indicating the control cycle; Indicates the preset current reference scaling factor; Indicates the first k Active power command for each control cycle; Indicates the first k Input voltage for each control cycle; Indicates the first k The effective value of the input voltage for each control cycle is obtained through... Calculations show that N Indicates the first k The number of control cycles contained in a sliding window whose endpoint is a control cycle.

[0136] In some alternative implementations, the state recognition module 402 includes: The first calculation unit is used to calculate the absolute value of the input voltage, which is used as the input voltage amplitude.

[0137] The second calculation unit is used to calculate the difference between the input voltage amplitude of the current control cycle and the previous control cycle, and to obtain the first change in the input voltage amplitude.

[0138] The third calculation unit is used to calculate the ratio of the first change to the time length of each control cycle, and obtain the rate of change.

[0139] The first determining unit is used to determine the candidate state of the current control cycle based on the input voltage amplitude and its rate of change.

[0140] The first judgment unit is used to perform hysteresis judgment on the candidate states of the current control cycle to obtain the state to be confirmed.

[0141] The second judgment unit is used to continuously judge the state to be confirmed and obtain the zero-crossing state of the current control cycle.

[0142] In some optional implementations, the first determining unit obtains the pending confirmation status, including: The first determining subunit is used to determine the entry threshold corresponding to the candidate state and the exit threshold corresponding to the zero-crossing state of the previous control cycle.

[0143] The second determining subunit is used to determine the candidate state as a state to be confirmed if the candidate state of the current control cycle is the same as the zero-crossing state of the previous control cycle.

[0144] The third determining subunit is used to determine the candidate state as a state to be confirmed if the candidate state of the current control cycle is different from the zero-crossing state of the previous control cycle, and the candidate state meets the entry threshold and the zero-crossing state of the previous control cycle meets the exit threshold.

[0145] The fourth determining subunit is used to determine the zero-crossing state of the previous control cycle as a state to be confirmed if the candidate state of the current control cycle is different from the zero-crossing state of the previous control cycle, and the candidate state does not meet the entry threshold or the zero-crossing state of the previous control cycle does not meet the exit threshold.

[0146] In some optional implementations, the second determination unit includes: The first counting subunit is used to increment the confirmation count if the state to be confirmed is the same as the state to be confirmed in the previous control cycle.

[0147] The second counting subunit is used to reset the confirmation count to zero if the state to be confirmed is different from the state to be confirmed in the previous control cycle.

[0148] The fifth determining subunit is used to determine the state to be confirmed as the zero-crossing state of the current control cycle when the confirmation count reaches a preset duration.

[0149] The sixth determining subunit is used to determine the zero-crossing state of the previous control cycle as the zero-crossing state of the current control cycle when the confirmation count has not reached the preset duration.

[0150] In some optional implementations, the state control parameters also include error dead zone, proportional gain coefficient, and change threshold; State integration module 404 includes: The processing unit is used to perform dead-time processing on the current error of the current control cycle based on the error dead-time to obtain the effective error.

[0151] The fourth calculation unit is used to calculate candidate integral values ​​based on historical integral coefficients, the integral state of the previous control cycle, error injection coefficients, preset integral gain coefficients, the time length of each control cycle, and the effective error.

[0152] The fifth calculation unit is used to calculate the second change between the candidate integral value of the current control cycle and the integral state of the previous control cycle. Based on the change threshold, the second change is limited, and the limited second change is added to the integral state of the previous control cycle to obtain the first integral value.

[0153] The sixth calculation unit is used to perform disturbance-free initialization based on the control correction amount, effective error and proportional gain coefficient of the previous control cycle, and to calculate the second integral value.

[0154] The second determining unit is used to take the first integral value as the integral state of the current control cycle when the proportional gain coefficient of the current control cycle is the same as that of the previous control cycle.

[0155] The third determining unit is used to calculate the integral difference between the second integral value and the first integral value when the proportional gain coefficient of the current control cycle is different from that of the previous control cycle. It limits the integral difference based on the change threshold, adds the limited integral difference to the first integral value, and obtains the integral state of the current control cycle.

[0156] In some optional implementations, the state control parameters also include an upper limit for the control correction amount; Control generation module 405 includes: The seventh calculation unit is used to calculate the product of the proportional gain coefficient and the effective error, and the sum of the product and the integral state of the current control cycle is used as the candidate correction value.

[0157] The fourth determining unit is used to limit the candidate correction amount based on the preset lower limit and upper limit of the control correction amount, and use the limited candidate correction amount as the control correction amount for the current control cycle.

[0158] The zero-crossing power factor correction converter control device provided in this embodiment of the invention can execute the zero-crossing power factor correction converter control method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the above modules and units are the same as in the corresponding embodiments described above, and will not be repeated here.

[0159] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.

[0160] The following is a detailed reference. Figure 5 The diagram illustrates a structural schematic suitable for implementing an electronic device according to embodiments of the present invention. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from memory 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the electronic device. The processor 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0161] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.

[0162] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a memory 508, or installed from a ROM 502. When the computer program is executed by the processor 501, it performs the functions defined in the zero-crossing power factor correction converter control method of the embodiments of the present invention.

[0163] Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present invention.

[0164] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the zero-crossing power factor correction converter control method shown in the above embodiments is implemented.

[0165] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method of controlling a zero-crossing region power factor correction converter, characterized by, The method includes: Obtain the input voltage and input current of the power factor correction converter in the current control cycle, and calculate the current reference and current error; The input voltage amplitude and its rate of change are calculated based on the input voltage to determine the zero-crossing state machine in the current control cycle. The zero-crossing state machine is used to identify the state of the input voltage in the zero-crossing region. The current control cycle and the zero-crossing state of the previous control cycle are combined to form a state transition event, and the state control parameters corresponding to the state transition event are determined. Based on the current error and state control parameters of the current control cycle, the integral state of the current control cycle is determined. The state control parameters include historical integral coefficients and error injection coefficients. The historical integral coefficients are used to control the retention or decay of the integral state of the previous control cycle, and the error injection coefficients are used to control the injection of current error in the current control cycle. The control correction amount for the current control cycle is generated based on the integral state and state control parameters of the current control cycle. The DC bus voltage of the power factor correction converter is obtained and the feedforward duty cycle is calculated. The duty cycle of the current control cycle is calculated based on the feedforward duty cycle and the control correction amount for the current control cycle. Write the duty cycle of the current control cycle into the pulse width modulation comparator register so that the input current of the power factor correction converter tracks the current reference. Complete the current control cycle and return to the step of obtaining the input voltage and input current of the power factor correction converter in the current control cycle until the preset stop condition is reached.

2. The method according to claim 1, characterized in that, The current reference is calculated using the following formula: In the formula, Indicates the first k Current reference for each control cycle; k An index indicating the control cycle; Indicates the preset current reference scaling factor; Indicates the first k Active power command for each control cycle; Indicates the first k Input voltage for each control cycle; Indicates the first k The effective value of the input voltage for each control cycle is obtained through... Calculations show that N Indicates the first k The number of control cycles contained in a sliding window whose endpoint is a control cycle.

3. The method according to claim 1, characterized in that, The step of calculating the input voltage amplitude and its rate of change based on the input voltage to determine the zero-crossing state of the zero-crossing state machine in the current control cycle includes: Calculate the absolute value of the input voltage as the input voltage amplitude; Calculate the difference between the input voltage amplitude of the current control cycle and that of the previous control cycle to obtain the first change in the input voltage amplitude; Calculate the ratio of the first change to the time length of each control cycle to obtain the rate of change; Based on the input voltage amplitude and its rate of change, the candidate state for the current control cycle is determined; Hysteresis judgment is performed on the candidate states of the current control cycle to obtain the state to be confirmed; The state to be confirmed is continuously evaluated to obtain the zero-crossing state of the current control cycle.

4. The method according to claim 3, characterized in that, The step of performing hysteresis judgment on candidate states of the current control cycle to obtain a state to be confirmed includes: Determine the entry threshold corresponding to the candidate state and the exit threshold corresponding to the zero-crossing state of the previous control cycle; If the candidate state of the current control cycle is the same as the zero-crossing state of the previous control cycle, the candidate state is determined as a state to be confirmed. If the candidate state of the current control cycle is different from the zero-crossing state of the previous control cycle, the candidate state is determined as the state to be confirmed when the candidate state satisfies the entry threshold and the zero-crossing state of the previous control cycle satisfies the exit threshold. If the candidate state of the current control cycle is different from the zero-crossing state of the previous control cycle, and the candidate state does not meet the entry threshold or the zero-crossing state of the previous control cycle does not meet the exit threshold, the zero-crossing state of the previous control cycle is determined as the state to be confirmed.

5. The method according to claim 3, characterized in that, The continuous judgment of the unconfirmed state to obtain the zero-crossing state of the current control cycle includes: If the pending confirmation status is the same as the pending confirmation status of the previous control cycle, the confirmation count is incremented; If the pending confirmation status is different from the pending confirmation status of the previous control cycle, the confirmation count is reset to zero. When the confirmation count reaches a preset duration, the state to be confirmed is determined as the zero-crossing state of the current control cycle; When the confirmation count does not reach the preset duration, the zero-crossing state of the previous control cycle is determined as the zero-crossing state of the current control cycle.

6. The method according to claim 3, characterized in that, The state control parameters also include error dead zone, proportional gain coefficient, and change threshold; The determination of the integral state of the current control cycle based on the current error and state control parameters of the current control cycle includes: Based on the aforementioned error dead zone, the current error of the current control cycle is processed to obtain the effective error; Based on the historical integral coefficients, the integral state of the previous control cycle, the error injection coefficient, the preset integral gain coefficient, the time length of each control cycle, and the effective error, calculate the integral candidate value. Calculate the second change between the candidate integral value of the current control cycle and the integral state of the previous control cycle, limit the second change based on the change threshold, and add the limited second change to the integral state of the previous control cycle to obtain the first integral value. Based on the control correction amount of the previous control cycle, the effective error, and the proportional gain coefficient, perform disturbance-free initialization and calculate the second integral value; When the proportional gain coefficient of the current control cycle is the same as that of the previous control cycle, the first integral value is taken as the integral state of the current control cycle. When the proportional gain coefficient of the current control cycle is different from that of the previous control cycle, the integral difference between the second integral value and the first integral value is calculated, the integral difference is limited based on the change threshold, and the limited integral difference is added to the first integral value to obtain the integral state of the current control cycle.

7. The method according to claim 6, characterized in that, The status control parameters also include an upper limit for the control correction amount; The generation of the control correction quantity for the current control cycle based on the integral state and state control parameters of the current control cycle includes: Calculate the product of the proportional gain coefficient and the effective error, and use the sum of the product and the integral state of the current control cycle as a candidate correction value; The candidate correction amount is limited based on the preset lower limit of the control correction amount and the upper limit of the control correction amount, and the limited candidate correction amount is used as the control correction amount for the current control cycle.

8. A control device for a zero-crossing power factor correction converter, characterized in that, The device includes: The acquisition module is used to acquire the input voltage and input current of the power factor correction converter in the current control cycle, and to calculate the current reference and current error. The state recognition module is used to calculate the input voltage amplitude and its rate of change based on the input voltage, so as to determine the zero-crossing state machine in the current control cycle. The zero-crossing state machine is used to identify the state of the input voltage in the zero-crossing region. The state mapping module is used to form a state transition event by combining the zero-crossing state of the current control cycle and the previous control cycle, and to determine the state control parameters corresponding to the state transition event. The state integration module is used to determine the integral state of the current control cycle based on the current error and state control parameters of the current control cycle. The state control parameters include historical integration coefficients and error injection coefficients. The historical integration coefficients are used to control the retention or decay of the integral state of the previous control cycle, and the error injection coefficients are used to control the injection of current error in the current control cycle. The control generation module is used to generate the control correction amount for the current control cycle based on the integral state and state control parameters of the current control cycle, obtain the DC bus voltage of the power factor correction converter and calculate the feedforward duty cycle, and calculate the duty cycle of the current control cycle based on the feedforward duty cycle and the control correction amount of the current control cycle. The output module is used to write the duty cycle of the current control cycle into the pulse width modulation comparison register so that the input current of the power factor correction converter tracks the current reference, completes the current control cycle, and returns to the step of obtaining the input voltage and input current of the power factor correction converter in the current control cycle until the preset stop condition is reached.

9. An electronic device, characterized in that, include: The system includes a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the zero-crossing power factor correction converter control method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to execute the zero-crossing power factor correction converter control method according to any one of claims 1 to 7.