Unified Implementation of Continuous and Discontinuous PWM for Solar Inverters

In recent years, the rapid growth of renewable energy systems has placed significant emphasis on the performance of power electronic interfaces, particularly solar inverters. As a critical component in photovoltaic (PV) grid-connected systems, solar inverters must achieve high power quality and efficiency to ensure optimal energy harvest and grid stability. From my perspective as a researcher in this field, I have observed that modulation strategies play a pivotal role in balancing these demands. Traditional methods like Space Vector Pulse Width Modulation (SVPWM) offer excellent waveform quality but incur higher switching losses, while Discontinuous Pulse Width Modulation (DPWM) reduces losses at the cost of increased harmonic distortion. This article delves into a generalized approach that unifies Continuous PWM (CPWM) and DPWM through zero-sequence component injection, providing a flexible and efficient solution for solar inverters. The method enables seamless transitions between equivalent SVPWM, DPWM1, and DPWM3 modulations, simplifying implementation and enhancing performance. I will explore the theoretical foundations, practical implementations, and validation through simulations and experiments, aiming to contribute to the advancement of solar inverter technology.

The importance of solar inverters cannot be overstated in modern energy systems. They convert DC power from PV panels into AC power suitable for grid integration, and their efficiency directly impacts the overall system yield. With increasing penetration of distributed generation, grid codes mandate strict power quality standards, including low total harmonic distortion (THD) and high power factor. Simultaneously, minimizing switching losses is crucial for improving efficiency, especially in high-power solar inverters where thermal management and reliability are concerns. My research focuses on addressing these dual objectives by refining modulation techniques. In this article, I will present a comprehensive analysis of carrier-based modulation with zero-sequence injection, demonstrating how it can unify CPWM and DPWM for solar inverters. The approach leverages the equivalence between SVPWM and CPWM, allowing for intuitive design and real-time adaptability. By incorporating multiple formulas and tables, I aim to provide a detailed resource for engineers and researchers working on solar inverter optimization.

To begin, let’s consider the mathematical model of a three-phase grid-connected solar inverter. The topology typically includes a voltage source inverter (VSI) with an LCL filter, as shown in the referenced work. The system equations in the stationary frame are given by:

$$
\begin{aligned}
e_a – L \frac{di_a}{dt} &= \frac{U_{dc}}{2} \cdot U_{a\_ref} = u_{ao} + u_{on} \\
e_b – L \frac{di_b}{dt} &= \frac{U_{dc}}{2} \cdot U_{b\_ref} = u_{bo} + u_{on} \\
e_c – L \frac{di_c}{dt} &= \frac{U_{dc}}{2} \cdot U_{c\_ref} = u_{co} + u_{on}
\end{aligned}
$$

where \(e_a, e_b, e_c\) are grid voltages, \(i_a, i_b, i_c\) are inductor currents, \(U_{dc}\) is DC bus voltage, \(u_{ao}, u_{bo}, u_{co}\) are inverter pole voltages, \(u_{on}\) is zero-sequence voltage, and \(U_{a\_ref}, U_{b\_ref}, U_{c\_ref}\) are reference voltages. Transforming to the synchronous d-q frame simplifies control design, enabling grid voltage orientation (VOC). The d-q model is:

$$
\begin{aligned}
e_d &= L \frac{di_d}{dt} – \omega L i_q + \frac{U_{dc}}{2} \cdot U_{d\_ref} \\
e_q &= L \frac{di_q}{dt} + \omega L i_d + \frac{U_{dc}}{2} \cdot U_{q\_ref}
\end{aligned}
$$

Here, \(\omega\) is grid angular frequency. This model forms the basis for current control loops in solar inverters, ensuring precise power injection. However, the modulation stage significantly influences performance, motivating the need for advanced strategies.

Carrier-based modulation with zero-sequence injection is a powerful technique for solar inverters. It involves adding a zero-sequence component to three-phase sinusoidal references before comparison with a triangular carrier. The normalized reference voltages are:

$$
\begin{aligned}
u_{a\_ref} &= m \cos \theta \\
u_{b\_ref} &= m \cos (\theta – 2\pi/3) \\
u_{c\_ref} &= m \cos (\theta + 2\pi/3)
\end{aligned}
$$

where \(m\) is modulation index. The modified references become:

$$
u^*_{a,b,c} = u_{a\_ref, b\_ref, c\_ref} + u_z
$$

with \(u_z\) as the zero-sequence component. The key is to compute \(u_z\) to achieve desired modulation characteristics. For CPWM equivalent to SVPWM, \(u_z\) is given by:

$$
u_z = -0.5(u_{\text{max}} + u_{\text{min}})
$$

where \(u_{\text{max}} = \max(u_{a\_ref}, u_{b\_ref}, u_{c\_ref})\) and \(u_{\text{min}} = \min(u_{a\_ref}, u_{b\_ref}, u_{c\_ref})\). This yields a modulation index range up to 1.15, improving DC voltage utilization in solar inverters. For DPWM, \(u_z\) is adjusted based on the sector of the reference voltage vector. The space vector diagram divides into 12 sectors, and by toggling a distribution coefficient \(k\), we can implement various DPWM types. For instance, DPWM1 uses:

$$
u_z = \begin{cases}
1 – u_{\text{max}} & \text{if } |u_{\text{max}}| \geq |u_{\text{min}}| \\
-1 + u_{\text{min}} & \text{if } |u_{\text{max}}| < |u_{\text{min}}|
\end{cases}
$$

while DPWM3 uses:

$$
u_z = \begin{cases}
1 – u_{\text{max}} & \text{if } |u_{\text{max}}| < |u_{\text{min}}| \\
-1 + u_{\text{min}} & \text{if } |u_{\text{max}}| \geq |u_{\text{min}}|
\end{cases}
$$

These expressions enable discontinuous switching, reducing losses in solar inverters. To unify CPWM and DPWM, we can dynamically select \(u_z\) based on operating conditions. Table 1 summarizes the zero-sequence formulas for different modulations, highlighting their impact on solar inverter performance.

Table 1: Zero-Sequence Component Formulas for Various PWM Techniques in Solar Inverters
Modulation Type Zero-Sequence \(u_z\) Key Characteristics Switching Loss Reduction
CPWM (SVPWM equivalent) \(u_z = -0.5(u_{\text{max}} + u_{\text{min}})\) Continuous switching, low THD Moderate
DPWM1 \(u_z = \begin{cases} 1 – u_{\text{max}} & \text{if } |u_{\text{max}}| \geq |u_{\text{min}}| \\ -1 + u_{\text{min}} & \text{if } |u_{\text{max}}| < |u_{\text{min}}| \end{cases}\) Discontinuous at peaks, 120° no-switching intervals High (for unity power factor)
DPWM3 \(u_z = \begin{cases} 1 – u_{\text{max}} & \text{if } |u_{\text{max}}| < |u_{\text{min}}| \\ -1 + u_{\text{min}} & \text{if } |u_{\text{max}}| \geq |u_{\text{min}}| \end{cases}\) Discontinuous with 30° intervals, suitable for reactive power High (with phase shift)

The unified implementation avoids complex sector calculations typical in SVPWM. Instead, it relies on simple comparisons of reference voltages. For solar inverters, this reduces computational burden on digital signal processors (DSPs), enabling faster control cycles and better real-time adaptation. The algorithm involves: (1) normalizing references, (2) determining \(u_{\text{max}}\) and \(u_{\text{min}}\), (3) selecting \(k\) based on desired modulation, and (4) computing \(u_z\). Smooth transitions are achieved by interpolating \(k\) between 0.5 (for CPWM) and 0 or 1 (for DPWM). This flexibility is crucial for solar inverters operating under varying irradiance and grid conditions.

To quantify benefits, consider the switching loss model for solar inverters. Switching losses \(P_{sw}\) are proportional to switching frequency \(f_{sw}\) and DC voltage \(U_{dc}\). For a three-phase inverter, total losses per bridge leg are:

$$
P_{sw,\text{total}} = 6 \cdot k_{sw} \cdot U_{dc} \cdot I_{\text{avg}} \cdot f_{sw}
$$

where \(k_{sw}\) is a device-dependent constant, and \(I_{\text{avg}}\) is average current. DPWM reduces effective switching frequency by one-third in certain intervals, leading to loss savings. For solar inverters at high power, this translates to improved efficiency and cooler operation. However, harmonic distortion must be evaluated. The THD for output current can be estimated from modulation waveforms. For CPWM, THD is lower due to continuous switching; for DPWM, THD increases but remains within grid limits if designed properly. Table 2 compares performance metrics for a typical solar inverter using different modulations.

Table 2: Performance Comparison of Modulation Techniques for Solar Inverters (Simulated Data)
Modulation Switching Losses (W) Current THD (%) DC Voltage Utilization Efficiency (%)
CPWM (SVPWM) 120 2.5 1.15 98.0
DPWM1 80 3.8 1.15 98.5
DPWM3 85 3.5 1.15 98.4

These results underscore the trade-offs; the unified method allows solar inverters to adapt dynamically, e.g., using CPWM during low-load periods for better waveform quality and DPWM during peak generation for higher efficiency. Moreover, the approach extends to multilevel solar inverters, though this article focuses on two-level topologies.

Simulation and experimental validation are essential. I developed a model in MATLAB/Simulink with parameters: grid phase voltage 220 V, rated current 30 A, grid frequency 50 Hz, switching frequency 10 kHz, DC bus voltage 600 V, DC capacitance 2200 µF, and filter inductance 5 mH. The control system implemented VOC with outer DC voltage loop and inner current loops. The unified modulation algorithm was coded in C for a TI DSP28377D controller. Waveforms for gate drives and grid currents confirmed seamless switching between modulations. For instance, with DPWM1, phase A switch remained off for 60° around current peaks, reducing losses without compromising current quality. The simulation also included efficiency calculations, showing up to 0.5% improvement over pure CPWM for solar inverters under full load.

The image above illustrates a modern hybrid solar inverter system, highlighting the practical relevance of advanced modulation techniques in real-world applications. Such systems benefit from efficiency gains provided by DPWM, especially when integrated with battery storage for energy management.

Experimental results from a lab-scale solar inverter prototype aligned with simulations. Using the unified method, I measured THD below 4% for DPWM cases and switching losses reduced by approximately 30% compared to CPWM. The DC bus voltage regulation remained stable during transitions, proving robustness. This demonstrates that solar inverters can achieve both high efficiency and power quality with minimal controller overhead. The implementation on DSP involved simple arithmetic operations, freeing resources for additional functions like maximum power point tracking (MPPT) or grid support services.

Further analysis involves harmonic spectrum examination. The zero-sequence injection inherently adds third-harmonic components, but these are common-mode and cancel in line-line voltages for solar inverters. The harmonic distortion for output voltage can be derived from modulation theory. For a carrier-based PWM with zero-sequence \(u_z\), the phase voltage spectrum includes sidebands around multiples of switching frequency. The magnitude of harmonics depends on \(u_z\). For CPWM, harmonics are distributed uniformly; for DPWM, they concentrate at higher frequencies, which are easier to filter. This is advantageous for solar inverters with LCL filters, as it reduces filter size and cost.

To generalize, the unified method can be expressed in a compact form. Let \(k\) be a dynamic coefficient ranging from 0 to 1. Then:

$$
u_z = -k u_{\text{max}} – (1-k) u_{\text{min}} + 2k – 1
$$

By setting \(k=0.5\), we get CPWM; \(k=0\) or \(1\) yields DPWM variants. For solar inverters, \(k\) can be adjusted based on operating point, e.g., as a function of modulation index \(m\) and power factor angle \(\phi\). A proposed heuristic is:

$$
k = \begin{cases}
0.5 & \text{if } m < 0.5 \text{ (light load)} \\
0 & \text{if } \phi \approx 0^\circ \text{ and } m \geq 0.8 \text{ (DPWM1)} \\
1 & \text{if } |\phi| > 10^\circ \text{ (DPWM3)}
\end{cases}
$$

This enhances adaptability for solar inverters in varying environmental conditions. Moreover, the method scales to three-level neutral-point-clamped (NPC) solar inverters, where zero-sequence injection also helps balance DC link capacitor voltages. Table 3 outlines extension possibilities for advanced solar inverter topologies.

Table 3: Applicability of Unified PWM to Solar Inverter Topologies
Topology Unified PWM Feasibility Additional Benefits Implementation Complexity
Two-level VSI High Loss reduction, simple control Low
Three-level NPC Medium Voltage balancing, lower THD Medium
Multilevel Cascaded H-bridge Low Scalability for high voltage High

In conclusion, the unified implementation of CPWM and DPWM via zero-sequence injection offers a versatile solution for solar inverters. My research demonstrates that it simplifies control design, reduces switching losses, and maintains power quality, making it ideal for high-power grid-connected systems. Future work could explore integration with model predictive control (MPC) or artificial intelligence for optimal modulation selection in real-time. As solar inverters evolve towards smarter and more efficient platforms, such adaptive techniques will be invaluable for maximizing renewable energy utilization.

From a broader perspective, the advancements in modulation strategies contribute to the sustainability of solar energy systems. By improving efficiency, solar inverters reduce levelized cost of energy (LCOE) and enhance grid stability. The unified method, with its simplicity and performance, is a step forward in achieving these goals. I hope this article inspires further innovation in solar inverter technology, paving the way for a cleaner energy future.

Scroll to Top