| Literature DB >> 35208304 |
Emilia Noorsal1, Asyraf Rongi1,2, Intan Rahayu Ibrahim1, Rosheila Darus1, Daniel Kho3, Samsul Setumin1.
Abstract
Multilevel inverters are a type of power electronic circuit that converts direct current (DC) to alternating current (AC) for use in high-voltage and high-power applications. Many recent studies on multilevel inverters have used field-programmable gate arrays (FPGAs) as a switching controller device to overcome the limitations of microcontrollers or DSPs, such as limited sampling rate, low execution speed, and a limited number of IO pins. However, the design techniques of most existing FPGA-based switching controllers require large amounts of memory (RAM) for storage of sampled data points as well as complex controller architectures to generate the output gating pulses. Therefore, in this paper, we propose two types of FPGA-based digital switching controllers, namely selective harmonic elimination (SHE) and sinusoidal pulse width modulation (SPWM), for a 21-level multilevel inverter. Both switching controllers were designed with minimal hardware complexity and logic utilisation. The designed SHE switching controller mainly consists of a four-bit finite state machine (FSM) and a 13-bit counter, while the SPWM switching controller employs a simple iterative CORDIC algorithm with a small amount of data storage requirement, a six-bit up-down counter, and a few adders. Initially, both digital switching controllers (SHE and SPWM) were designed using the hardware description language (HDL) in Verilog codes and functionally verified using the developed testbenches. The designed digital switching controllers were then synthesised and downloaded to the Intel FPGA (DE2-115) board for real-time verification purposes. For system-level verification, both switching controllers were tested on five cascaded H-Bridge circuits for a 21-level multilevel inverter model using the HDL co-simulation method in MATLAB Simulink. From the synthesised logic gates, it was found that the designed SHE and SPWM switching controllers require only 186 and 369 logic elements (LEs), respectively, which is less than 1% of the total LEs in an FPGA (Cyclone IV E) chip. The execution speed of the SHE switching controller implemented in the FPGA (Cyclone IV E) chip was found to be a maximum of 99.97% faster when compared with the microcontroller (PIC16F877A). The THD percentage of the 21-level SHE digital switching controller (3.91%) was found to be 37% less than that of the SPWM digital switching controller (6.17%). In conclusion, the proposed simplified design architectures of SHE and SPWM digital switching controllers have been proven to not only require minimal logic resources, achieve high processing speeds, and function correctly when tested on a real-time FPGA board, but also generate the desired 21-level stepped sine-wave output voltage (±360 VPP) at a frequency of 50 Hz with low THD percentages when tested on a 21-level cascaded H-Bridge multilevel inverter model.Entities:
Keywords: FPGA; Verilog codes; hardware description language (HDL); multilevel inverter; selective harmonic elimination (SHE); sinusoidal pulse width modulation (SPWM); total harmonic distortion (THD)
Year: 2022 PMID: 35208304 PMCID: PMC8876957 DOI: 10.3390/mi13020179
Source DB: PubMed Journal: Micromachines (Basel) ISSN: 2072-666X Impact factor: 2.891
Figure 1System overview of the 21-level cascaded H-bridge multilevel inverter.
Figure 2Example of five-level H-Bridge 1 circuit using photovoltaic (PV) string as the DC supply voltage (72 VDC).
Active power switches for a 21-level multilevel inverter for SHE modulation technique.
| Active Switches | Output Voltage (V) |
|---|---|
| S11, S41, S12, S42, S13, S43, S14, S44, S15, S45 | +5.0 VDC |
| S11, S41, S12, S42, S13, S43, S14, S44, S45, S55 | +4.5 VDC |
| S11, S41, S12, S42, S13, S43, S14, S44 | +4.0 VDC |
| S11, S41, S12, S42, S13, S43, S44, S45 | +3.5 VDC |
| S11, S41, S12, S42, S13, S43 | +3.0 VDC |
| S11, S41, S12, S42, S43, S53 | +2.5 VDC |
| S11, S41, S12, S42 | +2.0 VDC |
| S11, S41, S42, S52 | +1.5 VDC |
| S11, S41 | +1.0 VDC |
| S41, S51 | +0.5 VDC |
| All power switches are inactive | +0.0 VDC |
| S21, S51 | −0.5 VDC |
| S21, S31 | −1.0 VDC |
| S21, S31, S22, S52 | −1.5 VDC |
| S21, S31, S22, S32 | −2.0 VDC |
| S21, S31, S22, S32, S23, S53 | −2.5 VDC |
| S21, S31, S22, S32, S23, S33 | −3.0 VDC |
| S21, S31, S22, S32, S23, S33, S24, S54 | −3.5 VDC |
| S21, S31, S22, S32, S23, S33, S24, S34 | −4.0 VDC |
| S21, S31, S22, S32, S23, S33, S24, S34, S25, S55 | −4.5 VDC |
| S21, S31, S22, S32, S23, S33, S24, S34, S25, S35 | −5.0 VDC |
Figure 3Symmetric disposition of multicarrier phase-disposition PWM (PD-PWM).
Figure 4Switching generation using PD-SPWM technique for one-phase, 21-level multilevel inverter.
IGBT switch arrangement for each H-bridge circuit for 21-Level SHE and SPWM multilevel inverters.
| H-Bridge X | SHE Digital Switching Controller | SPWM Digital Switching Controller |
|---|---|---|
| H-Bridge 1 | S11, S21, S31, S41,S51 | S11, S21, S31, S41 |
| H-Bridge 2 | S12, S22, S32, S42, S52 | S12, S22, S32, S42 |
| H-Bridge 3 | S13, S23, S33, S43, S53 | S13, S23, S33, S43 |
| H-Bridge 4 | S14, S24, S34, S44, S54 | S14, S24, S34, S44 |
| H-Bridge 5 | S15, S25, S35, S45, S55 | S15, S25, S35, S45 |
Figure 5Location of switching time (T1–T10), switching angles (θ1–θ10), and step-time duration (t1–t11) in the stepped sine-wave output waveform.
Conversion of optimised switching angles (θ1–θ10) to switching times (T1–T10).
| Optimised Switching Angles (θ) | Switching Times, (µs) |
|---|---|
| θ1 = 2.16 | T1 = 120 |
| θ2 = 8.26 | T2 = 459 |
| θ3 = 14.24 | T3 = 791 |
| θ4 = 20.23 | T4 = 1124 |
| θ5 = 26.00 | T5 = 1444 |
| θ6 = 33.00 | T6 = 1833 |
| θ7 = 40.00 | T7 = 2222 |
| θ8 = 48.00 | T8 = 2667 |
| θ9 = 58.18 | T9 = 3232 |
| θ10 = 68.02 | T10 = 3779 |
Calculation of step-time duration (t1–t11).
| Level | Step Time, (t) | Calculation | Duration, (µs) |
|---|---|---|---|
| 0.0 VDC | t1 | 2T1 | 240 |
| ±0.5 VDC | t2 | T2 − T1 | 339 |
| ±1.0 VDC | t3 | T3 − T2 | 332 |
| ±1.5 VDC | t4 | T4 − T3 | 333 |
| ±2.0 VDC | t5 | T5 − T4 | 321 |
| ±2.5 VDC | t6 | T6 − T5 | 389 |
| ±3.0 VDC | t7 | T7 − T6 | 389 |
| ±3.5 VDC | t8 | T8 − T7 | 444 |
| ±4.0 VDC | t9 | T9 − T8 | 566 |
| ±4.5 VDC | t10 | T10 − T9 | 547 |
| ±5.0 VDC | t11 | (5 ms − T10) × 2 | 2442 |
Figure 6Top level of the SHE digital switching controller.
Figure 7Internal architecture of the SHE digital switching controller.
Figure 8State diagram of the SHE digital switching controller.
Output gating patterns of the SHE digital switching controller (S11–S55) for each state.
| Present | Polarity | Output (S11–S55) |
|---|---|---|
| St1 | 1 | 00000_00000_00000_00000_00000 |
| St2 | 1 | 00011_00000_00000_00000_00000 |
| St3 | 1 | 10010_00000_00000_00000_00000 |
| St4 | 1 | 10010_00011_00000_00000_00000 |
| St5 | 1 | 10010_10010_00000_00000_00000 |
| St6 | 1 | 10010_10010_00011_00000_00000 |
| St7 | 1 | 10010_10010_10010_00000_00000 |
| St8 | 1 | 10010_10010_10010_00010_00000 |
| St9 | 1 | 10010_10010_10010_10010_00000 |
| St10 | 1 | 10010_10010_10010_10010_00011 |
| St11 | 1 | 10010_10010_10010_10010_10010 |
Figure 9Ten symmetric dispositions of multicarrier phase-disposition PWM (PD-PWM) for a sinusoidal reference signal with a positive cycle only.
Amplitude-level disposition for ten carrier waves.
| Carrier Waves | Amplitude | Triangular Amplitude |
|---|---|---|
| cw1 | cw1 = cw1 + 1 | 0–31–0 |
| cw2 | cw2 = cw1 + 25 | 25–56–25 |
| cw3 | cw3 = cw1 + 50 | 50–81–50 |
| cw4 | cw4 = cw1 + 75 | 75–106–75 |
| cw5 | cw5 = cw1 + 100 | 100–131–100 |
| cw6 | cw6 = cw1 + 125 | 125–156–125 |
| cw7 | cw7 = cw1 + 150 | 150–181–150 |
| cw8 | cw8 = cw1 + 175 | 175–206–175 |
| cw9 | cw9 = cw1 + 200 | 200–231–200 |
| cw10 | cw10 = cw1 + 224 | 224–255–224 |
Figure 10Top level of the SPWM digital switching controller.
Figure 11The internal architecture of the SPWM digital switching controller.
Figure 12Hardware-measurement setup using an Intel field-programmable gate array (FPGA) (DE2-115) board and a digital oscilloscope.
Figure 13Example of system-level hardware description language (HDL) co-simulation development for the SHE digital switching controller using five cascaded H-bridge multilevel inverter model in MATLAB Simulink.
Figure 14Schematics of the synthesised SHE digital switching controller using the Intel FPGA (Cyclone IV E) chip.
Figure 15Schematics of the synthesised SPWM digital switching controller using the Intel FPGA (Cyclone IV E) chip.
Synthesis summary report of SHE and SPWM digital switching controllers using the Intel field-programmable gate array (FPGA) (Cyclone IV E) chip.
| Items | SHE | SPWM |
|---|---|---|
| Family name | Cyclone IV E | Cyclone IV E |
| Device | EP4CE115F29C7 | EP4CE115F29C7 |
| Total logic elements | 186/114,480 (<1%) | 369/114,480 (<1%) |
| Total registers | 59 | 108 |
| Total pins | 29/529 (5%) | 36/529 (7%) |
| Total memory bits | 0/3,981,312 (0%) | 0/3,981,312 (0%) |
| Embedded multiplier 9-bit elements | 0/532 (0%) | 1/532 (<1%) |
| Total PLLs | 0/4 (4%) | 0/4 (0%) |
| Fmax (slow 1200 mV 85 °C) | 198.06 MHz | 152.25 MHz |
21-level SHE digital switching controller implemented in FPGA (Cyclone IV E) and microcontroller (PIC16F877A).
| SHE | Operating Frequency | State/Machine Cycle | Execution Time (s) |
|---|---|---|---|
| FPGA (Cyclone IV E) | FSM clock frequency = 1 MHz | 40 states | 40 µs |
| FMAX = 137.99 MHz | 40 states | 0.289 µs | |
| Microcontroller (PIC16F877A) | FOSC = 4 MHz | 868 machine cycles | 868 µs |
Comparison of design architectures of digital switching controllers for SHE and SPWM modulation techniques.
| Proposed by | Modulation | Hardware Logic | FPGA Device |
|---|---|---|---|
| Juarez Abad et al. (2021) | SPWM |
Sine wave: 1024 × 32 ROM Carrier wave: 1000 × 32-bit BRAM | Xilinx Spartan 6-SLX45 |
| Sarker et al. (2021) | HD-SPWM |
Sine wave: BRAM (Fs = 4 MHz) Carrier wave: digital pulse | Xilinx Spartan 3-3S400 |
| Sarker et al. (2020) | SPWM |
Sine wave: BRAM (256 samples) Carrier wave: 4 up-down counters | Xilinx Spartan 6-SLX9 |
| Nikhil et al. (2018) | SPWM |
Sine wave: softcore 32-bit RISC TSK-3000A and SRAM. Carrier wave: up-down counter | Xilinx Spartan 3AN |
| Atoui et al. (2018) | SPWM |
Sine wave: ROM (2000 samples) Carrier wave: up-down counter | Xilinx Spartan 6-SLX45 |
| Ranganathan et al. (2016) | SPWM |
Sine wave: 7 BRAM Softcore 32-bit RISC Microblaze | Xilinx Spartan 6-SLX4 |
| Khalil et al. (2020) | SHE |
PWM: timers Shared and distributed memories Dual softcore Microblaze | Xilinx Spartan 6 |
| Halim et al. (2014, 2015 and 2017) | SHE |
Sine wave: LUT (5000 samples) and combinational logic gates | Intel Cyclone II |
| Our Work | SPWM |
Sine wave: LUT (8 arctan angles) Carrier wave: one 6-bit up-down counter and 9 adders. | Intel Cyclone IV E |
| Our Work | SHE |
Sine wave: 4-bit FSM and 13-bit counter | Intel Cyclone IV E |
Figure 16Register transfer-level (RTL) simulation results of the SHE digital switching controller: (a) Overall operation of the SHE digital switching controller; (b) Zoomed view of marked area A.
Figure 17RTL simulation results of the SHE digital switching controller’s output gating pulses for circuits of H-Bridge 2 (S12–S52), H-Bridge 3 (S13–S53), and H-Bridge 4 (S14–S54).
Figure 18RTL simulation results for the reference sine-wave generation of the SPWM digital switching controller.
Figure 19RTL simulation result for the ten carrier-wave (cw1 to cw10) generations of the SPWM digital switching controller.
Figure 20RTL simulation result for the output gating pulses (“S45” to “S35”) of the SPWM digital switching controller.
Figure 21Hardware measurement of the SHE digital switching controller’s output gating pulses: (a) Output gating pulses for H-Bridge 1 (“S11” to “S51”) and H-Bridge 5 (“S15” to “S55”). (b) Output gating pulses for H-Bridge 2 (“S12” to “S52”), H-Bridge 3 (“S13” to “S53”), and H-Bridge 4 (“S14” to “S54”).
Figure 22Hardware measurement of the SPWM digital switching controller’s output gating pulses: (a) Output gating pulses for positive cycle (“S45” to “S11”). (b) Output gating pulses for negative cycle (“S21” to “S35”).
Figure 23Continuous stepped sine-wave output voltage of the 21-level multilevel inverter using the SHE digital switching controller.
Figure 24Percentage of THD for the 21-level multilevel inverter using the SHE digital switching controller.
Figure 25Continuous stepped sine-wave output voltage of a 21-level multilevel inverter using the SPWM digital switching controller with a carrier frequency of 20 kHz.
Figure 26Percentage of THD for the 21-level multilevel inverter using the SPWM digital switching controller with a carrier frequency of 20 kHz.
Total harmonic distortion (THD) of the 21-level inverter for the SPWM digital switching controller at different carrier-wave frequencies (1 kHz to 800 kHz).
| Carrier Wave | THD % | % THD Reduction from Carrier Wave = 1 kHz |
|---|---|---|
| 1 kHz | 6.79 | 0 |
| 3 kHz | 6.43 | 5 |
| 5 kHz | 6.41 | 6 |
| 10 kHz | 6.36 | 6 |
| 20 kHz | 6.32 | 7 |
| 40 kHz | 6.17 | 9 |
| 80 kHz | 5.94 | 13 |
| 100 kHz | 5.82 | 14 |
| 200 kHz | 5.35 | 21 |
| 400 kHz | 5.08 | 25 |
| 800 kHz | 4.73 | 30 |
THD comparison of 21-level inverters for SHE and SPWM digital switching controllers.
| Digital Switching Controller | Level | THD % |
|---|---|---|
| SHE | 21 | 3.91 |
| SPWM (cw = 40 kHz) | 21 | 6.17 |
Comparison of THD of a 21-level multilevel inverter using a low-switching-frequency modulation technique.
| Proposed by | Modulation Technique | Hardware | Software | THD % |
|---|---|---|---|---|
| Bhavani and Manoharan (2021) | GWO Algorithm | FPGA—Spartan 6 | Matlab | 7.41 |
| Hema Latha and Banakara (2018) | - | - | Matlab | 10.67 |
| Islam et al. (2018) | Equal-Phase Method | - | Matlab | 13.3 |
| Niraimathi and Seyezhai (2020) | GA Algorithm | Microcontroller (PIC16F877A) | Matlab | 4.5 |
| Khasim et al. (2021) | - | dSPACE RIT1104 Controller | Matlab | 3.49 |
| Our work (SHE) | MhyPSO Algorithm | FPGA—DE2 115 | Matlab | 3.91 |
Comparison of THD of 21-level multilevel inverter using SPWM modulation technique.
| Proposed by | Modulation Strategy | Hardware | Software | THD % |
|---|---|---|---|---|
| Agrawal and Bansal (2018) | Asymmetrical SPWM (PD) | - | Matlab | 14.52 |
| Singh et al. (2016) | SPWM (APOD) | - | Matlab | 5.61 |
| Hema Latha and Banakara (2018) | SPWM | - | Matlab | 10.45 |
| Mahato et al. (2019) | Asymmetrical SPWM (PD) | - | Matlab | 5.08 |
| Salgado et al. (2013) | SPWM | FPGA—Spartan 3E | - | - |
| Our work (SPWM) | SPWM (PD-PWM) | FPGA—DE2 115 | Matlab | 6.17 |