Single-phase solar inverters are essential components for residential and small-scale distributed photovoltaic power systems. Unlike three-phase systems, the absence of a second or third phase makes it challenging to directly apply space vector modulation and synchronous rotating frame control. To achieve zero steady-state error for the grid-connected current, many researchers have proposed proportional-resonant (PR) controllers in the stationary frame. However, PR controllers are usually of high order and their design can be cumbersome. An alternative attractive approach is to construct an orthogonal signal from the measured single-phase voltage or current, so that a virtual two-phase system can be formed and the well-established synchronous d-q control framework can be adopted. The key lies in the accurate and robust generation of the orthogonal signal. Among the various orthogonal signal generators, the second-order generalized integrator (SOGI) has received great attention because of its inherent filtering capability, simple structure, and ease of digital implementation. Nevertheless, the digital implementation of SOGI using the conventional shift operator q and standard discretization methods may introduce significant amplitude and phase errors when the sampling frequency is high compared to the fundamental frequency. This paper presents a novel digital realization of SOGI based on the delta operator (δ operator), which naturally bridges the continuous and discrete domains and mitigates the numerical issues encountered with fast sampling. The proposed approach is applied to both the phase-locked loop (PLL) and the grid-connected current control of single-phase solar inverters. Extensive simulation and experimental results validate that the delta-operator SOGI yields near-ideal orthogonal signals, leading to excellent steady-state and dynamic performance for solar inverters.
In modern distributed generation, single-phase solar inverters are widely deployed for rooftop photovoltaic systems. Their control objectives include unity power factor, low total harmonic distortion (THD), fast response to irradiance variations, and robust operation under distorted grid voltages. The synchronous rotating frame method offers proportional-integral (PI) control of the d-q current components with zero steady-state error. For a single-phase system, the crucial step is to synthesize a quadrature signal that is exactly 90° shifted from the original signal. Many techniques have been reported: transport delay buffers, all-pass filters, Hilbert transform, and inverse Park transform. Among them, SOGI stands out due to its bandpass/lowpass characteristics and simple recursive structures. In the continuous domain, the SOGI’s transfer functions can be expressed as a resonator at the tuning frequency. However, when implementing SOGI in a digital processor, the selection of the discretization method significantly affects the accuracy of the quadrature signal. As pointed out in the literature, conventional methods such as forward Euler, backward Euler, Tustin, zero-order hold (ZOH), and matched pole-zero all produce certain phase and amplitude deviations at 50 Hz. The delta operator provides a unified framework where the discrete-time model converges to the continuous-time model as the sampling period approaches zero, thereby reducing parameter sensitivity and avoiding ill-conditioned discrete transfer functions. In this work, we adopt the delta operator to implement SOGI in a fixed-point DSP for single-phase solar inverters. The generated orthogonal signals are then used to construct the single-phase synchronous rotating frame, enabling a robust digital PLL and high-performance current control.

We begin with the continuous-time model of the SOGI orthogonal signal generator. The structure consists of a resonant integrator with a positive feedback loop and a damping factor k. The input signal v_g(t) is processed to produce two output signals: v_α(t) and v_β(t), which are ideally in quadrature. The closed-loop transfer functions in the Laplace domain are given by:
$$ D(s) = \frac{V_\alpha(s)}{V_g(s)} = \frac{k\omega s}{s^2 + k\omega s + \omega^2} $$
$$ Q(s) = \frac{V_\beta(s)}{V_g(s)} = \frac{k\omega^2}{s^2 + k\omega s + \omega^2} $$
where ω is the resonant frequency (typically the grid fundamental angular frequency). For a sinusoidal input v(t) = A_0 + A_c \sin(\omega_c t + \varphi_c), the steady-state outputs can be expressed as:
$$ v_\alpha(\infty)(t) = m_1 A_c \sin(\omega_c t + \varphi_c + \phi) $$
$$ v_\beta(\infty)(t) = -m_2 A_c \cos(\omega_c t + \varphi_c + \phi) $$
with
$$ m_1 = \frac{k\omega \omega_c}{\sqrt{(\omega^2 – \omega_c^2)^2 + k^2\omega^2 \omega_c^2}} $$
$$ m_2 = m_1 \frac{\omega_c}{\omega} $$
and the phase shift φ given by:
$$ \phi = \operatorname{sgn}(\omega – \omega_c) \left( \frac{\pi}{2} – \arctan\frac{k\omega\omega_c}{\omega^2 – \omega_c^2} \right) $$
When the SOGI resonant frequency is exactly tuned to the input frequency (ω = ω_c), we have m_1 = m_2 = 1 and φ = 0, which means v_α(t) equals the fundamental component of v_g(t) with the same phase and amplitude, while v_β(t) lags v_α(t) by exactly 90°. The parameter k determines the bandwidth and the response speed. A smaller k implies a more selective filter but also a slower transient response. The Bode diagrams of D(s) and Q(s) for various k values are well known; a trade-off between harmonic rejection and dynamic speed must be reached. In our work, we choose k = 1 to obtain a settling time of about 1.5 fundamental cycles, which is acceptable for grid-connected solar inverters.
When implementing the SOGI in a digital controller, the transfer functions must be discretized. Suppose the sampling frequency is 20 kHz and the fundamental frequency is 50 Hz. Five conventional discretization methods are applied to D(s) and Q(s), and their Z-domain expressions are listed in Table 1. The coefficients are truncated to four significant digits. The corresponding simulation results are presented in terms of output waveforms and the phase shift between v_β and v_α. The forward Euler method leads to an amplitude error of about 28.5% and a phase deviation of 45°, which is completely unacceptable. The backward Euler method reduces the error to roughly 4% but the phase error is still above 11°. The Tustin and ZOH methods yield about 15% amplitude error and more than 30° phase error. Even the matched pole-zero method, which has a smaller amplitude error of about 10%, still exhibits a 31.5° phase error for the Q(s) output. These errors are far too large to build an accurate synchronous rotating frame, because any amplitude mismatch between v_α and v_β introduces a ripple at twice the fundamental frequency in the d-q components. In contrast, the delta-operator approach, as shown later, produces an amplitude error of less than 1% and a phase error below 1°, which is a dramatic improvement.
| Method | Equation |
|---|---|
| Forward Euler | \(D(z)=\frac{0.01571z^{-1}-0.01571z^{-2}}{1-1.984z^{-1}+0.9845z^{-2}}\) \(Q(z)=\frac{0.0002467}{1-1.984z^{-1}+0.9845z^{-2}}\) |
| Backward Euler | \(D(z)=\frac{0.01546z^{-1}-0.01546z^{-2}}{1-1.984z^{-1}+0.9843z^{-2}}\) \(Q(z)=\frac{0.0002429}{1-1.984z^{-1}+0.9843z^{-2}}\) |
| ZOH | \(D(z)=\frac{0.01558z^{-1}-0.01558z^{-2}}{1-1.984z^{-1}+0.9844z^{-2}}\) \(Q(z)=\frac{0.0001227z^{-1}+0.0001221z^{-2}}{1-1.984z^{-1}+0.9844z^{-2}}\) |
| Tustin | \(D(z)=\frac{0.007792-0.007792z^{-2}}{1-1.984z^{-1}+0.9844z^{-2}}\) \(Q(z)=\frac{6.12\times10^{-5}+1.224\times10^{-4}z^{-1}+6.12\times10^{-5}z^{-2}}{1-1.984z^{-1}+0.9844z^{-2}}\) |
| Matched Pole-Zero | \(D(z)=\frac{0.01559z^{-1}-0.01559z^{-2}}{1-1.984z^{-1}+0.9844z^{-2}}\) \(Q(z)=\frac{0.0001224z^{-1}+0.0001224z^{-2}}{1-1.984z^{-1}+0.9844z^{-2}}\) |
The delta operator is defined as:
$$ \delta = \frac{q-1}{\Delta} = \frac{e^{\Delta s}-1}{\Delta} $$
where q is the forward shift operator and Δ is the sampling period. For sufficiently small Δ, the delta operator approaches the continuous-time differentiation operator s. In fact, δ = (q-1)/Δ is the Euler approximation of the derivative. One of the main advantages of the delta operator is that its discrete transfer functions converge uniformly to their continuous counterparts as Δ → 0, avoiding the well-known ill-conditioning encountered with the shift operator at high sampling rates. The delta-domain model coefficients are less sensitive to finite word length effects, which makes it particularly attractive for fixed-point DSP implementations in solar inverters. The inverse delta operator is expressed as:
$$ \delta^{-1} = \frac{\Delta q^{-1}}{1-q^{-1}} $$
which is the discrete-time equivalent of an integrator with forward Euler integration. Using state-space representations, any second-order transfer function can be realized with direct-form II transposed (DFIIt) structure, which exhibits better noise performance and lower sensitivity than other structures. For a general second-order discrete transfer function in the shift domain:
$$ G(z) = \frac{b_0 + b_1 z^{-1} + b_2 z^{-2}}{1 + a_1 z^{-1} + a_2 z^{-2}} $$
the equivalent delta-domain coefficients are obtained through the transformations listed in Table 2. The state-space description of the delta-domain structure is given by:
$$ x(n+1) = A x(n) + B u(n) $$
$$ y(n) = C x(n) + D u(n) $$
where for the DFIIt structure:
$$ A = \begin{bmatrix} 1-\alpha_1\Delta & \Delta \\ -\alpha_2\Delta & 1 \end{bmatrix}, \quad B = \begin{bmatrix} \Delta\beta_1 – \Delta\beta_0\alpha_1 \\ \Delta\beta_2 – \Delta\beta_0\alpha_2 \end{bmatrix}, \quad C = \begin{bmatrix} 1 & 0 \end{bmatrix}, \quad D = \beta_0 $$
The transfer function in the delta domain is:
$$ H(z) = C(zI – A)^{-1}B + D \quad \text{with } z = \delta\Delta + 1 $$
which simplifies to:
$$ H(\delta) = \frac{\beta_0 + \beta_1\delta^{-1} + \beta_2\delta^{-2}}{1 + \alpha_1\delta^{-1} + \alpha_2\delta^{-2}} $$
The conversion formulas between the shift coefficients and delta coefficients are summarized in Table 2, where Δ is the sampling period.
| Beta coefficient | Expression | Alpha coefficient | Expression |
|---|---|---|---|
| β₀ | β₀ = b₀ | α₀ | α₀ = a₀ |
| β₁ | β₁ = (2b₀ + b₁)/Δ | α₁ | α₁ = (2 + a₁)/Δ |
| β₂ | β₂ = (b₀ + b₁ + b₂)/Δ² | α₂ | α₂ = (1 + a₁ + a₂)/Δ² |
Applying the delta-operator method to discretize the SOGI transfer functions D(s) and Q(s), with Δ = 50 μs (i.e., sampling frequency f_s = 20 kHz), we obtain the following delta-domain equations:
$$ D(\delta) = \frac{311.6\delta^{-1}}{1 + 316\delta^{-1} + 8\times10^4\delta^{-2}} $$
$$ Q(\delta) = \frac{2.454\delta^{-1} + 9.798\times10^4\delta^{-2}}{1 + 316\delta^{-1} + 8\times10^4\delta^{-2}} $$
The simulation results for these implementations are shown in Figure (the output waveforms closely follow the ideal sine and cosine signals). The step response of the delta-operator SOGI shows that the orthogonal signals reach steady state at about 0.03 s, which is consistent with the continuous-time SOGI. More importantly, the phase shift between v_β and v_α remains close to 90° across a wide frequency range, from 1 Hz to 10 kHz. This characteristic is crucial for grid synchronization under frequency variations or distorted grid conditions. Table 3 compares the amplitude errors, phase errors, and computation times for various discretization methods when implemented on a fixed-point TMS320F28035 DSP running at 60 MHz. The delta-operator implementation requires about 0.72 μs per SOGI calculation, which is slightly longer than the other methods but still leaves sufficient time for the complete control algorithm. In contrast, the amplitude error is only 0.98% for D(δ) and 0.54% for Q(δ), and the phase error is 0.9° for both. These values are at least an order of magnitude smaller than the best conventional method. Therefore, the delta-operator-based SOGI is a near-ideal digital orthogonal signal generator for single-phase solar inverters.
| Method | D(z) Amplitude Error | Q(z) Amplitude Error | D(z) Phase Error | Q(z) Phase Error | Computation Time (μs) |
|---|---|---|---|---|---|
| Forward Euler | 28.48% | 29.48% | 45.0° | 45.0° | 0.46 |
| Backward Euler | 4.01% | 3.92% | 12.6° | 11.7° | 0.46 |
| ZOH | 15.57% | 15.59% | 31.5° | 31.5° | 0.46 |
| Tustin | 15.56% | 15.59% | 32.4° | 32.4° | 0.46 |
| Matched Pole-Zero | 10.23% | 15.59% | 11.7° | 31.5° | 0.46 |
| Delta Operator | 0.98% | 0.54% | 0.9° | 0.9° | 0.72 |
With the accurate orthogonal signals generated by the delta-operator SOGI, we can construct the single-phase synchronous rotating frame. Let v_α and v_β be the two orthogonal components of the grid voltage, and i_α and i_β be the orthogonal components of the grid current. The transformation into the d-q frame is given by the Park transform:
$$ \begin{bmatrix} v_d \\ v_q \end{bmatrix} = \begin{bmatrix} \cos\theta & \sin\theta \\ -\sin\theta & \cos\theta \end{bmatrix} \begin{bmatrix} v_\alpha \\ v_\beta \end{bmatrix} $$
and similarly for the currents. Here, θ is the phase angle of the grid voltage, which is provided by the digital PLL. The PLL synchronizes the rotating frame to the fundamental positive-sequence component of the grid voltage. The structure of the single-phase PLL is shown: the estimated phase θ is fed back to perform the Park transformation; the q-axis voltage v_q is driven to zero by a PI controller, whose output is the angular frequency offset that adjusts a voltage-controlled oscillator (VCO). The closed-loop transfer function of the PLL can be designed with a bandwidth of a few hundred hertz to reject disturbances while tracking grid frequency variations. The delta-operator SOGI ensures that v_α and v_β have equal magnitudes and precise quadrature relationship even in the presence of harmonics, which greatly improves the accuracy of the PLL. In the experimental test, a distorted input voltage containing 5% third harmonic, 3% fifth harmonic, 2% seventh harmonic, and high-frequency noise was applied. The digital PLL based on the delta-operator SOGI was able to extract the phase with an error of less than 1° in steady state, as shown in the recorded waveform. The output v_α tracked the fundamental component of v_g, and v_β was exactly 90° delayed, demonstrating the excellent filtering and orthogonality properties.
For the grid-connected current control, the d-q currents are regulated by PI controllers. The current reference i_dref is obtained from the DC bus voltage PI controller, which maintains the DC voltage at the maximum power point tracking reference. The i_qref is set to zero for unity power factor operation, or adjusted for reactive power support. The output of the current PI controllers are added with decoupling terms ωL i_q and ωL i_d to compensate for the cross-coupling between the d and q axes. The resulting voltage references are transformed back to the stationary frame and applied to the PWM modulator. Since the d and q current components are DC in steady state, a simple PI controller with an integrator can achieve zero steady-state error, which is the main advantage of the synchronous rotating frame. The entire control algorithm is implemented in the fixed-point DSP TMS320F28035. The delta-operator SOGI runs at each sampling instant, using the measured grid voltage and grid current to generate their orthogonal counterparts. The computational load is about 0.72 μs per SOGI block, and with two SOGI blocks (one for voltage, one for current) the total time is about 1.44 μs, still well within the sampling period of 50 μs.
To verify the effectiveness of the proposed approach, a 1.5 kW single-phase solar inverter prototype was constructed and tested. The main circuit parameters are as follows: output inductor L = 1.2 mH, DC bus capacitance C = 1 mF, DC bus voltage V_dc = 350 V, input voltage range from 150 V to 400 V DC, output voltage range from 187 V to 264 V AC, and grid frequency range (50 ± 0.5) Hz. The control platform uses a TI Piccolo TMS320F28035 fixed-point DSP. The experiments include steady-state operation under ideal grid voltage and under actual grid voltage, as well as a dynamic step test from half load to full load.
Figure shows the steady-state experimental waveforms under an ideal grid voltage supplied by a programmable AC source. The grid voltage v_g and the grid current i_g are displayed. It can be seen that the current is perfectly in phase with the voltage, indicating unity power factor. The measured THD of the grid current is 0.8%, which is well below the IEEE standard limit of 5%. Under the actual grid voltage, as shown in another recorded waveform, the THD increases to 2.8% due to the background harmonics and voltage distortions in the utility grid, but still satisfies the standard. These results confirm that the delta-operator SOGI is able to provide accurate orthogonal signals even when the grid voltage is not ideally sinusoidal, because the SOGI acts as a bandpass filter that rejects harmonics. The dynamic performance is shown in a step response experiment: the grid current command is suddenly increased from 5 A peak to 10 A peak, corresponding to a half-load to full-load step. The recorded waveforms show that the current responds quickly without significant overshoot or oscillation, and the phase relationship with the grid voltage is maintained throughout the transient. The settling time is approximately one fundamental cycle, which is acceptable for solar inverters responding to irradiance changes.
In addition to the experimental results, we performed extensive numerical simulations to compare the proposed delta-operator SOGI with the shift-operator implementations. The simulation setup used the same parameters as the prototype. We injected a sinusoidal signal with harmonics and noise, and calculated the errors in the orthogonal outputs over a range of frequencies. The results are summarized in Table 3, which clearly shows the superiority of the delta-operator approach. The behavior of the digital PLL was also simulated under a grid frequency step of 1 Hz. The PLL based on the delta-operator SOGI tracked the frequency change within 20 ms and the phase error remained below 0.5°, whereas the shift-operator-based PLL with Tustin discretization exhibited a steady-state phase error of about 2°. This further demonstrates that the numerical accuracy of the orthogonal signal generation has a direct impact on the overall control performance of solar inverters.
One might wonder why the delta operator is particularly suitable for SOGI. The reason is twofold. First, the SOGI transfer functions are resonant at a relatively high frequency compared to the sampling frequency when using a fast sampling rate. In the shift domain, the poles approach the unit circle, making the filter coefficients very sensitive to quantization. The delta operator, by scaling and shifting the coefficients, alleviates this sensitivity. Second, the continuous-time design methods (such as root locus and frequency response) can be directly applied to the delta-domain transfer functions, simplifying the tuning of the parameter k and the PLL gains. The delta operator also avoids the introduction of non-minimum-phase zeros that often appear in the shift-domain discretization of continuous systems. These zeros can cause undesirable overshoot and reduce the stability margin. In our implementation, we confirmed that the delta-domain SOGI preserves the phase characteristics of the continuous system across a wide bandwidth, which is essential for harmonic rejection and synchronized operation.
The control strategy presented here is not limited to single-phase solar inverters; it can also be applied to single-phase PWM rectifiers, active power filters, and static var generators. The delta-operator SOGI provides a robust and accurate orthogonal signal generation method that can enhance the performance of any grid-connected power electronic converter operating in a single-phase system. Moreover, the same technique can be extended to three-phase systems with unbalanced or distorted grid voltages, where multiple SOGIs can be used to extract balanced positive- and negative-sequence components. The fixed-point-friendly nature of the delta operator makes it particularly suitable for low-cost DSP implementations, which is a significant advantage for mass-produced solar inverters.
In summary, this paper has presented a delta-operator discretized second-order generalized integrator for the grid-connected control of single-phase solar inverters. The delta operator overcomes the numerical problems of conventional shift-operator implementations at high sampling rates, ensuring that the orthogonal signals v_α and v_β have nearly ideal amplitude and phase characteristics. The constructed single-phase rotating frame enables a high-performance digital PLL and zero-steady-error current control. Both simulation and experimental results have demonstrated that the proposed method achieves very low THD (0.8% under ideal grid and 2.8% under practical grid), accurate phase tracking, and fast dynamic response. The excellent performance, combined with the computational efficiency and robustness of the delta operator, makes this approach a promising solution for modern single-phase solar inverters and other grid-connected applications.
Future work will focus on extending the delta-operator SOGI to adaptive frequency tracking, where the resonant frequency is adjusted online to follow the varying grid frequency. This would make the orthogonal signal generator even more robust under weak grid conditions or islanded operation. Furthermore, we plan to investigate the use of delta-operator based observers for sensorless control of single-phase inverters, reducing the number of sensors and lowering system cost. The delta operator framework provides a unified platform for both control and estimation design, which could lead to simplified and more reliable implementations for a wide range of power electronics applications.
