<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article">
 <front>
  <journal-meta>
   <journal-id journal-id-type="publisher-id">
    jpee
   </journal-id>
   <journal-title-group>
    <journal-title>
     Journal of Power and Energy Engineering
    </journal-title>
   </journal-title-group>
   <issn pub-type="epub">
    2327-588X
   </issn>
   <issn publication-format="print">
    2327-5901
   </issn>
   <publisher>
    <publisher-name>
     Scientific Research Publishing
    </publisher-name>
   </publisher>
  </journal-meta>
  <article-meta>
   <article-id pub-id-type="doi">
    10.4236/jpee.2025.139008
   </article-id>
   <article-id pub-id-type="publisher-id">
    jpee-145460
   </article-id>
   <article-categories>
    <subj-group subj-group-type="heading">
     <subject>
      Articles
     </subject>
    </subj-group>
    <subj-group subj-group-type="Discipline-v2">
     <subject>
      Engineering
     </subject>
    </subj-group>
   </article-categories>
   <title-group>
    Design and Implementation of a Closed-Loop Single-Phase Transistor-Clamped H-Bridge Multilevel Inverter Using FPGA
   </title-group>
   <contrib-group>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Wahidah Abd
      </surname>
      <given-names>
       Halim
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff1"> 
      <sup>1</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Nurul Ain Mohd
      </surname>
      <given-names>
       Said
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff1"> 
      <sup>1</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Maaspaliza
      </surname>
      <given-names>
       Azri
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff1"> 
      <sup>1</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Azrita
      </surname>
      <given-names>
       Alias
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff1"> 
      <sup>1</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Siti Rohani Sheikh
      </surname>
      <given-names>
       Raihan
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff2"> 
      <sup>2</sup>
     </xref>
    </contrib>
   </contrib-group> 
   <aff id="aff1">
    <addr-line>
     aFaculty of Electrical Technology and Engineering, Universiti Teknikal Malaysia Melaka, Melaka, Malaysia
    </addr-line> 
   </aff> 
   <aff id="aff2">
    <addr-line>
     aHigher Institution Centre of Excellence (HICoE), UM Power Energy Dedicated Advanced Centre (UMPEDAC), Universiti Malaya, Kuala Lumpur, Malaysia
    </addr-line> 
   </aff> 
   <pub-date pub-type="epub">
    <day>
     29
    </day> 
    <month>
     08
    </month>
    <year>
     2025
    </year>
   </pub-date> 
   <volume>
    13
   </volume> 
   <issue>
    09
   </issue>
   <fpage>
    117
   </fpage>
   <lpage>
    132
   </lpage>
   <history>
    <date date-type="received">
     <day>
      13,
     </day>
     <month>
      August
     </month>
     <year>
      2025
     </year>
    </date>
    <date date-type="published">
     <day>
      6,
     </day>
     <month>
      August
     </month>
     <year>
      2025
     </year> 
    </date> 
    <date date-type="accepted">
     <day>
      6,
     </day>
     <month>
      September
     </month>
     <year>
      2025
     </year> 
    </date>
   </history>
   <permissions>
    <copyright-statement>
     © Copyright 2014 by authors and Scientific Research Publishing Inc. 
    </copyright-statement>
    <copyright-year>
     2014
    </copyright-year>
    <license>
     <license-p>
      This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/
     </license-p>
    </license>
   </permissions>
   <abstract>
    This paper presents the performance evaluation of a single-phase five-level transistor-clamped H-bridge (TCHB) inverter, which is a modified circuit based on H-bridge inverter topology involving closed-loop control. The modulation technique used here is multicarrier sinusoidal pulse-width modulation. The single-phase five-level TCHB inverter simulation model is constructed using MATLAB/Simulink software. In addition, a single-phase conventional H-bridge inverter simulation model using bipolar and unipolar switching schemes, which generates both two levels and three levels of output voltage, is also constructed in MATLAB/Simulink. The total harmonic distortion (THD) results for the two-level, three-level, and five-level inverters are analysed and compared; it is found that the THD for the higher-level inverter is lower. The obtained simulation results are then analysed and discussed. The hardware prototype of the single-phase five-level TCHB inverter is constructed, and analysis is carried out using field programmable gate array (FPGA). The results show that the presented five-level TCHB inverter can produced a sinusoidal output voltage with low harmonic distortion as the amplitude modulation ratio increases.
   </abstract>
   <kwd-group> 
    <kwd>
     Multilevel Inverter
    </kwd> 
    <kwd>
      Multicarrier Sinusoidal Pulse-Width Modulation
    </kwd> 
    <kwd>
      Total Harmonic Distortion
    </kwd> 
    <kwd>
      Field Programmable Gate Array
    </kwd>
   </kwd-group>
  </article-meta>
 </front>
 <body>
  <sec id="s1">
   <title>1. Introduction</title>
   <p>The inverter is a power electronic device which converts DC power to AC power. Inverters are widely used in many types of applications, including renewable energies—especially photovoltaic (PV) and fuel cells <xref ref-type="bibr" rid="scirp.145460-1">
     [1]
    </xref> <xref ref-type="bibr" rid="scirp.145460-2">
     [2]
    </xref>—adjustable-speed drives <xref ref-type="bibr" rid="scirp.145460-3">
     [3]
    </xref>, uninterruptible power supplies (UPS) <xref ref-type="bibr" rid="scirp.145460-4">
     [4]
    </xref>, and more. The earliest inverter topology invention is a two-level inverter <xref ref-type="bibr" rid="scirp.145460-5">
     [5]
    </xref> <xref ref-type="bibr" rid="scirp.145460-6">
     [6]
    </xref>; since the output voltage is not close to a sinusoidal wave shape, this topology is only suitable for application in industrial applications and power systems which require low power quality. This topology has evolved to a multilevel inverter topology, due to its bad performance when operating in high power and medium-/high-voltage applications at high switching frequency. The idea of the “multilevel inverter” was introduced in 1975, beginning with the three-level inverter <xref ref-type="bibr" rid="scirp.145460-7">
     [7]
    </xref> <xref ref-type="bibr" rid="scirp.145460-8">
     [8]
    </xref>.</p>
   <p>Multilevel inverters have attracted the interest of researchers and academia, given that they are crucial in high-power and high-voltage applications as a result of their ability to deliver higher output voltage quality compared to traditional two-level inverter topologies. Multilevel inverters are reported to produce superior output voltage quality, as the generated output voltage takes a staircase form which closely approximates a sinusoidal waveform shape with an increasing number of levels <xref ref-type="bibr" rid="scirp.145460-7">
     [7]
    </xref>-<xref ref-type="bibr" rid="scirp.145460-16">
     [16]
    </xref>. The smoothness of the output voltage waveform can be enhanced by increasing the number of levels in the multilevel inverter, which consequently reduces the total harmonic distortion (THD) in the output waveform.</p>
   <p>Many types of multilevel inverter topologies have been introduced <xref ref-type="bibr" rid="scirp.145460-9">
     [9]
    </xref> <xref ref-type="bibr" rid="scirp.145460-10">
     [10]
    </xref>, with the three primary topologies being diode-clamped or neutral point clamped, flying capacitor, and cascaded H-bridge. Recently, attention has been directed to minimising the number of components in multilevel inverters to reduce voltage stress, lower harmonic distortion, lower switching frequency and switching losses, and improve efficiency in both single-source and multiple-source configurations, as described in <xref ref-type="bibr" rid="scirp.145460-10">
     [10]
    </xref>. However, as the number of output voltage levels increases, a greater number of switches, DC sources, gate driver circuits, heat sinks, and protective components are required; this leads to higher costs and greater control system complexity.</p>
   <p>Researchers have introduced numerous forms of modulation approaches for multilevel inverters. These modulation techniques are classified into two categories: low switching frequency modulation techniques and high switching frequency modulation techniques. Examples of low switching frequency modulation techniques include selective harmonic elimination (SHE) <xref ref-type="bibr" rid="scirp.145460-11">
     [11]
    </xref>, nearest vector control (NVC), and nearest level control (NLC) <xref ref-type="bibr" rid="scirp.145460-12">
     [12]
    </xref>, whereas high switching frequency modulation techniques include multireference or multicarrier pulse-width modulation (PWM) <xref ref-type="bibr" rid="scirp.145460-13">
     [13]
    </xref>-<xref ref-type="bibr" rid="scirp.145460-15">
     [15]
    </xref> and space vector modulation (SVM) <xref ref-type="bibr" rid="scirp.145460-16">
     [16]
    </xref>. Hybrid modulation refers to the integration of the two types of modulation techniques.</p>
   <p>
    <xref ref-type="bibr" rid="scirp.145460-"></xref>Field programmable gate arrays (FPGAs) have been widely implemented in power electronics systems due to their flexibility, high processing speed, and capability to execute complex control algorithms in real time <xref ref-type="bibr" rid="scirp.145460-17">
     [17]
    </xref>-<xref ref-type="bibr" rid="scirp.145460-25">
     [25]
    </xref>. Although FPGA-based controllers have been extensively applied in various power electronics systems—such as DC-DC converters <xref ref-type="bibr" rid="scirp.145460-18">
     [18]
    </xref> <xref ref-type="bibr" rid="scirp.145460-19">
     [19]
    </xref>, inverters <xref ref-type="bibr" rid="scirp.145460-20">
     [20]
    </xref>-<xref ref-type="bibr" rid="scirp.145460-23">
     [23]
    </xref>, rectifiers <xref ref-type="bibr" rid="scirp.145460-24">
     [24]
    </xref>, and cycloconverters <xref ref-type="bibr" rid="scirp.145460-25">
     [25]
    </xref>—limited research focuses on closed-loop single-phase transistor-clamped H-bridge (TCHB) multilevel inverter systems using FPGA. Existing studies primarily address conventional multilevel inverter topologies or emphasise simulation-based analysis, with minimal hardware validation for TCHB configurations with FPGA integration specifically. This gap highlights the need for experimental performance evaluation of single-phase TCHB multilevel inverters controlled by FPGA, to enhance their applicability in real-world power conversion systems.</p>
   <p>While FPGAs have been widely used in other power electronic applications, their role in this work extends to real-time implementation of a discrete proportional-integral (PI) controller, enabling fast dynamic response, precise switching control, and reduced harmonic distortion. Therefore, the novelty of this work lies in the integration of FPGA-based closed-loop control for the single-phase five-level TCHB inverter topology. To the best of our knowledge, this is the first reported study that experimentally validates a closed-loop TCHB multilevel inverter using FPGA, addressing a gap in prior research that has largely been limited to simulation or conventional inverter topologies.</p>
   <p>In this context, the TCHB multilevel inverter emerges as a more effective alternative to conventional multilevel topologies. The diode-clamped inverter requires a large number of clamping diodes, leading to higher switching losses and increased design complexity. The flying capacitor topology demands numerous capacitors, which not only raises system cost but also introduces reliability concerns. Similarly, the cascaded H-bridge inverter depends on multiple isolated DC sources, limiting its suitability for compact applications. In contrast, the TCHB multilevel inverter achieves the same level output with fewer switches and DC power supplies, thereby simplifying the hardware design while maintaining efficient and reliable performance.</p>
   <p>This paper presents the detailed design of a multicarrier sinusoidal pulse-width modulation (SPWM) technique in order to produce five distinct voltage levels in the TCHB multilevel inverter. The closed-loop system of the TCHB multilevel inverter is first modelled and simulated in MATLAB/Simulink; this is followed by the development and testing of a hardware prototype controlled using FPGA. The performance of the TCHB multilevel inverter, obtained from both the simulation and the experimental implementation, is then evaluated and compared with that of a conventional H-bridge inverter.</p>
  </sec><sec id="s2">
   <title>2. The Proposed Inverter Topology and Its Operation</title>
   <p>
    <xref ref-type="fig" rid="fig1">
     Figure 1
    </xref> illustrates the five-level TCHB inverter configuration, which comprises a conventional H-bridge inverter with an auxiliary switch and four diodes functioning as bidirectional switches connected to the centre of the DC capacitors. With appropriate switching management, the auxiliary switch will be capable of generating half the level of the DC supply voltage, or ±1/2 V<sub>dc</sub>.</p>
   <fig id="fig1" position="float">
    <label>Figure 1</label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.145460-"></xref>Figure 1. The five-level TCHB inverter topology.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1771277-rId13.jpeg?20250909023906" />
   </fig>
   <fig id="fig2" position="float">
    <label>Figure 2</label>
    <caption>
     <title>(a)<p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/1771277-rId15.jpeg?20250909023906" /></p>(b)<xref ref-type="bibr" rid="scirp.145460-"></xref>Figure 2. Modulation technique for the five-level TCHB inverter: (a) Multicarrier SPWM; (b) PWM signal generation.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1771277-rId14.jpeg?20250909023906" />
   </fig>
   <p>The multicarrier SPWM technique used here compares the sinusoidal reference waveform with the triangular waveform of the carrier signals to generate the PWM switching signals. Two triangular carrier signals and one reference sinusoidal signal are used for multicarrier SPWM signal generation for the five-level TCHB inverter, as illustrated in <xref ref-type="fig" rid="fig2(a)">
     Figure 2(a)
    </xref>. The reference sinusoidal signal has a frequency of 50 Hz. The negative waveform of the reference sinusoidal signal is lifted using the modulus block in MATLAB/Simulink, as illustrated in <xref ref-type="fig" rid="fig2(b)">
     Figure 2(b)
    </xref>. In a comparison of the reference sinusoidal signal with the upper and lower sides of the triangular carrier signals, the PWM switching signals are generated through the application of combinational logics.</p>
   <p>The amplitude modulation ratio M<sub>a</sub> of the proposed five-level TCHB inverter can be expressed as:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         M 
       </mi> 
       <mi>
         a 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mfrac> 
       <mrow> 
        <msub> 
         <mi>
           A 
         </mi> 
         <mi>
           M 
         </mi> 
        </msub> 
       </mrow> 
       <mrow> 
        <mn>
          2 
        </mn> 
        <msub> 
         <mi>
           A 
         </mi> 
         <mi>
           C 
         </mi> 
        </msub> 
       </mrow> 
      </mfrac> 
     </mrow> 
    </math> (1)</p>
   <p>
    <xref ref-type="bibr" rid="scirp.145460-"></xref>where A<sub>M</sub> is the reference signal’s peak value, while A<sub>C</sub> is the peak-to-peak value of the carrier signals used. The behaviour of the evaluated five-level TCHB inverter is obtained when the modulation index is more than 0.5 but less than or equal to 1 (0.5 &lt; M<sub>a</sub> ≤ 1). If the modulation index is equal to or less than 0.5 (0.5 ≤ M<sub>a</sub>), the behaviour of the proposed inverter mimics that of a three-level inverter; this was due to only the lower carrier wave being compared with the reference signal, and thus the output voltage produced is only half the DC bus voltage. When the amplitude of the reference signal exceeds the amplitude of the upper carrier wave and the modulation index is greater than 1 (M<sub>a</sub> &gt; 1), over-modulation occurs.</p>
   <table-wrap id="table1">
    <label>
     <xref ref-type="table" rid="table1">
      Table 1
     </xref></label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.145460-"></xref>Table 1. Switching states and output voltage of the five-level TCHB Inverter.</title>
    </caption>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="custom-bottom-td acenter" width="16.66%"><p style="text-align:center">S<sub>1</sub></p></td> 
      <td class="custom-bottom-td acenter" width="16.66%"><p style="text-align:center">S<sub>2</sub></p></td> 
      <td class="custom-bottom-td acenter" width="16.66%"><p style="text-align:center">S<sub>3</sub></p></td> 
      <td class="custom-bottom-td acenter" width="16.66%"><p style="text-align:center">S<sub>4</sub></p></td> 
      <td class="custom-bottom-td acenter" width="16.66%"><p style="text-align:center">S<sub>5</sub></p></td> 
      <td class="custom-bottom-td acenter" width="16.68%"><p style="text-align:center">v<sub>inv</sub></p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="16.66%"><p style="text-align:center">1</p></td> 
      <td class="custom-top-td acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="custom-top-td acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="custom-top-td acenter" width="16.66%"><p style="text-align:center">1</p></td> 
      <td class="custom-top-td acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="custom-top-td acenter" width="16.68%"><p style="text-align:center">+V<sub>dc</sub></p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">1</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">1</p></td> 
      <td class="acenter" width="16.68%"><p style="text-align:center"> 
        <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mo>
            + 
          </mo> 
          <mo> 
          </mo> 
          <mfrac> 
           <mn>
             1 
           </mn> 
           <mn>
             2 
           </mn> 
          </mfrac> 
          <mo> 
          </mo> 
          <msub> 
           <mi>
             V 
           </mi> 
           <mrow> 
            <mi>
              d 
            </mi> 
            <mi>
              c 
            </mi> 
           </mrow> 
          </msub> 
         </mrow> 
        </math></p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">1</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">1</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.68%"><p style="text-align:center">0</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="16.66%"><p style="text-align:center">1</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">1</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.68%"><p style="text-align:center">0</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">1</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">1</p></td> 
      <td class="acenter" width="16.68%"><p style="text-align:center"> 
        <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mo>
            − 
          </mo> 
          <mo> 
          </mo> 
          <mfrac> 
           <mn>
             1 
           </mn> 
           <mn>
             2 
           </mn> 
          </mfrac> 
          <mo> 
          </mo> 
          <msub> 
           <mi>
             V 
           </mi> 
           <mrow> 
            <mi>
              d 
            </mi> 
            <mi>
              c 
            </mi> 
           </mrow> 
          </msub> 
         </mrow> 
        </math></p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">1</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">1</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.66%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="16.68%"><p style="text-align:center">−V<sub>dc</sub></p></td> 
     </tr> 
    </table>
   </table-wrap>
   <p>1: ON; 0: OFF.</p>
   <p>
    <xref ref-type="bibr" rid="scirp.145460-"></xref><xref ref-type="table" rid="table1">
     Table 1
    </xref> shows the output levels of TCHB inverter based on the operational condition of the switches, which were either 1 (on) or 0 (off). This topology can generate five different levels of output voltage waveforms: +V<sub>dc</sub>, +V<sub>dc</sub>/2, 0, −V<sub>dc</sub>/2, and −V<sub>dc</sub>. Only two switches are operated at one time. Through the combinations of the on and off states of the switches (S<sub>1</sub> - S<sub>5</sub>) depicted in <xref ref-type="table" rid="table1">
     Table 1
    </xref>, the inverter output voltage v<sub>inv</sub> can be expressed as:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         v 
       </mi> 
       <mrow> 
        <mi>
          i 
        </mi> 
        <mi>
          n 
        </mi> 
        <mi>
          v 
        </mi> 
       </mrow> 
      </msub> 
      <mo>
        = 
      </mo> 
      <msub> 
       <mi>
         V 
       </mi> 
       <mrow> 
        <mi>
          d 
        </mi> 
        <mi>
          c 
        </mi> 
       </mrow> 
      </msub> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <msub> 
         <mi>
           S 
         </mi> 
         <mn>
           4 
         </mn> 
        </msub> 
        <mo>
          − 
        </mo> 
        <msub> 
         <mi>
           S 
         </mi> 
         <mn>
           2 
         </mn> 
        </msub> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mrow> 
       <mo>
         { 
       </mo> 
       <mrow> 
        <mfrac> 
         <mn>
           1 
         </mn> 
         <mn>
           2 
         </mn> 
        </mfrac> 
        <msub> 
         <mi>
           S 
         </mi> 
         <mn>
           5 
         </mn> 
        </msub> 
        <mo>
          + 
        </mo> 
        <mrow> 
         <mo>
           | 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             S 
           </mi> 
           <mn>
             1 
           </mn> 
          </msub> 
          <mo>
            − 
          </mo> 
          <msub> 
           <mi>
             S 
           </mi> 
           <mn>
             2 
           </mn> 
          </msub> 
         </mrow> 
         <mo>
           | 
         </mo> 
        </mrow> 
        <mo>
          ⋅ 
        </mo> 
        <mrow> 
         <mo>
           | 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             S 
           </mi> 
           <mn>
             3 
           </mn> 
          </msub> 
          <mo>
            − 
          </mo> 
          <msub> 
           <mi>
             S 
           </mi> 
           <mn>
             4 
           </mn> 
          </msub> 
         </mrow> 
         <mo>
           | 
         </mo> 
        </mrow> 
       </mrow> 
       <mo>
         } 
       </mo> 
      </mrow> 
     </mrow> 
    </math> (2)</p>
   <p>The proposed five-level TCHB inverter is a buck converter whose average output voltage v<sub>o</sub> is characteristically always lower than the input DC voltage V<sub>dc</sub>. Equation (3) gives the peak value of the proposed inverter’s output voltage:</p>
   <p>
    <xref ref-type="bibr" rid="scirp.145460-"></xref> 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         v 
       </mi> 
       <mi>
         o 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <msub> 
       <mi>
         M 
       </mi> 
       <mi>
         a 
       </mi> 
      </msub> 
      <msub> 
       <mi>
         V 
       </mi> 
       <mrow> 
        <mi>
          d 
        </mi> 
        <mi>
          c 
        </mi> 
       </mrow> 
      </msub> 
     </mrow> 
    </math> (3)</p>
  </sec><sec id="s3">
   <title>3. Closed-Loop Control Implementation Using FPGA</title>
   <p>The FPGA used for hardware development is the Altera DE2 Board. The advantages of DE2 FPGA include affordability, many flexible onboard features, freedom in designing both hardware and CAD tools, and the ability to implement a wide range of digital circuit designs. A Cyclone II 2C35 FPGA device is included together with the aid of various hardware resources and components incorporated on-board, including 33,216 logic elements (LE), 483,840 RAM bits, 35 embedded multipliers, and 475 user I/O pins.</p>
   <p>The main goal of the control strategy for the proposed TCHB multilevel inverter is the production of sinusoidal output voltage with low harmonic distortion under proper control techniques. A proportional–integral (PI) control algorithm is implemented as the feedback controller for the proposed inverter. A basic closed-loop feedback system with a PI controller for the inverter may include a sensor, an analog-to-digital converter (ADC), and a digital PWM as shown in <xref ref-type="fig" rid="fig3">
     Figure 3
    </xref>. The PI controller feeds on the error between the reference voltage and the measured output voltage. If y(t) is the measured variable and r(t) is the reference variable, the error e(t) is:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        e 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         t 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mi>
        r 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         t 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        − 
      </mo> 
      <mi>
        y 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         t 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math> (4)</p>
   <p>In continuous time, the input e(t) and the output u(t) of the PI algorithm relate as follows:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        u 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         t 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <msub> 
       <mi>
         K 
       </mi> 
       <mi>
         p 
       </mi> 
      </msub> 
      <mi>
        e 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         t 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        + 
      </mo> 
      <msub> 
       <mi>
         K 
       </mi> 
       <mi>
         i 
       </mi> 
      </msub> 
      <mstyle displaystyle="true"> 
       <mrow> 
        <munderover> 
         <mo>
           ∫ 
         </mo> 
         <mn>
           0 
         </mn> 
         <mi>
           t 
         </mi> 
        </munderover> 
        <mrow> 
         <mi>
           e 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            t 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mtext>
           d 
         </mtext> 
         <mi>
           τ 
         </mi> 
        </mrow> 
       </mrow> 
      </mstyle> 
     </mrow> 
    </math> (5)</p>
   <p>where K<sub>p</sub> and K<sub>i</sub> are the proportional gain and the integral gain, respectively.</p>
   <fig id="fig3" position="float">
    <label>Figure 3</label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.145460-"></xref>Figure 3. Closed-loop system with PI controller.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1771277-rId30.jpeg?20250909023906" />
   </fig>
   <p>The PI control algorithm is designed in a discrete form to enable implementation on FPGA. By applying the Tustin approximation, the integral term is discretized, and the discrete PI controller can be expressed as:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        U 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         z 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        − 
      </mo> 
      <mi>
        U 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         z 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <msup> 
       <mi>
         z 
       </mi> 
       <mrow> 
        <mo>
          − 
        </mo> 
        <mn>
          1 
        </mn> 
       </mrow> 
      </msup> 
      <mo>
        = 
      </mo> 
      <msub> 
       <mi>
         K 
       </mi> 
       <mn>
         1 
       </mn> 
      </msub> 
      <mi>
        E 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         z 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        + 
      </mo> 
      <msub> 
       <mi>
         K 
       </mi> 
       <mn>
         2 
       </mn> 
      </msub> 
      <mi>
        E 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         z 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <msup> 
       <mi>
         z 
       </mi> 
       <mrow> 
        <mo>
          − 
        </mo> 
        <mn>
          1 
        </mn> 
       </mrow> 
      </msup> 
     </mrow> 
    </math> (6)</p>
   <p>
    <xref ref-type="bibr" rid="scirp.145460-"></xref>where 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         K 
       </mi> 
       <mn>
         1 
       </mn> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <msub> 
         <mi>
           K 
         </mi> 
         <mi>
           p 
         </mi> 
        </msub> 
        <mo>
          + 
        </mo> 
        <mfrac> 
         <mrow> 
          <msub> 
           <mi>
             K 
           </mi> 
           <mi>
             i 
           </mi> 
          </msub> 
          <msub> 
           <mi>
             T 
           </mi> 
           <mi>
             s 
           </mi> 
          </msub> 
         </mrow> 
         <mn>
           2 
         </mn> 
        </mfrac> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math> and 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         K 
       </mi> 
       <mn>
         2 
       </mn> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mfrac> 
         <mrow> 
          <msub> 
           <mi>
             K 
           </mi> 
           <mi>
             i 
           </mi> 
          </msub> 
          <msub> 
           <mi>
             T 
           </mi> 
           <mi>
             s 
           </mi> 
          </msub> 
         </mrow> 
         <mn>
           2 
         </mn> 
        </mfrac> 
        <mo>
          − 
        </mo> 
        <msub> 
         <mi>
           K 
         </mi> 
         <mi>
           p 
         </mi> 
        </msub> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math></p>
   <p>The desired output response is achieved by tuning the K<sub>p</sub> and K<sub>i</sub> gains of the PI controller. After the tuning process is done, with K<sub>p</sub> = 10, K<sub>i</sub> = 1 using T<sub>s</sub> = 1 μs sampling time, the discrete PI controller is implemented as:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        u 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         n 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mi>
        u 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          n 
        </mi> 
        <mo>
          − 
        </mo> 
        <mn>
          1 
        </mn> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        + 
      </mo> 
      <mn>
        10.0000005 
      </mn> 
      <mi>
        e 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         n 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        − 
      </mo> 
      <mn>
        9.9999995 
      </mn> 
      <mi>
        e 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          n 
        </mi> 
        <mo>
          − 
        </mo> 
        <mn>
          1 
        </mn> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math> (7)</p>
   <p>To ensure stable operation, the PI controller must be protected against integral windup which is undesired condition by preventing the integral value from exceeding the required limit.</p>
   <p>An appropriate ADC must be chosen to convert the analogue voltage signal into digital, as there is no integrated ADC on the DE2 FPGA board, and the selected ADC chip should be inexpensive. The feedback signal from the inverter or the measured voltage is sensed by a voltage sensor (LV25-P) and then fed at an 8-kHz sampling rate to an ADC0808 (8-bit). The measured (digital) voltage is then compared with the sinusoidal lookup table (LUT) (the sine-wave reference), with the resultant signal subsequently fed to the digital PI controller. The implementation of digital PI controller using FPGA is illustrated in <xref ref-type="fig" rid="fig4">
     Figure 4
    </xref>.</p>
   <fig id="fig4" position="float">
    <label>Figure 4</label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.145460-"></xref>Figure 4. Implementation of closed-loop system with PI controller using FPGA.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1771277-rId39.jpeg?20250909023906" />
   </fig>
   <p>To prevent a short circuit across the input voltage source, the dead-time t<sub>dead</sub> is included in the gating signals of the switches. (Dead-time is usually called delay time or blanking time.) For practicality, these signals are given to the gate driver circuit to trigger the switching devices (insulated gate bipolar transistors, or IGBTs). The magnitude of t<sub>dead</sub> is set to 1 µs and applied between the PWM signals.</p>
   <p>The FPGA-based PWM generator is designed using Verilog HDL and through schematic design entries. The design, synthesis, and simulation are conducted on Quartus Prime software. Five PWM output signals with dead-time are assigned and sent to the gate drive circuit to trigger the proposed inverter circuit. In addition, the Quartus Prime software includes a tool for the designer to view the designed circuit in schematic diagram through register transfer level (RTL) Viewer; the RTL graphics are presented for the design of the PWM generator with a PI control algorithm—shown in <xref ref-type="fig" rid="fig5(a)">
     Figure 5(a)
    </xref>—and the PWM logic module—illustrated in <xref ref-type="fig" rid="fig5(b)">
     Figure 5(b)
    </xref>.</p>
   <fig id="fig5" position="float">
    <label>Figure 5</label>
    <caption>
     <title>(a)<p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/1771277-rId41.jpeg?20250909023906" /></p>(b)<xref ref-type="bibr" rid="scirp.145460-"></xref>Figure 5. FPGA implementation: (a) Top-level design of PWM generation with the PI controller; (b) RTL design of the PWM logic block.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1771277-rId40.jpeg?20250909023906" />
   </fig>
  </sec><sec id="s4">
   <title>4. Results and Discussion</title>
   <sec id="s4_1">
    <title>4.1. Simulation Results</title>
    <p>In order to compare the THD of two-level, three-level, and five-level inverters, a conventional H-bridge inverter with bipolar and unipolar switching schemes is constructed in MATLAB/Simulink. In addition, the conventional H-bridge inverter is improved by adding a bidirectional switch, comprising one switch (S<sub>5</sub>) and four diodes located at the midpoint of the DC-link capacitors for a TCHB inverter topology. The parameters used for the two-level and three-level conventional H-bridge inverter, and for the five-level TCHB inverter, are shown in <xref ref-type="table" rid="table2">
      Table 2
     </xref>.</p>
    <table-wrap id="table2">
     <label>
      <xref ref-type="table" rid="table2">
       Table 2
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.145460-"></xref>Table 2. The parameters of the five-level TCHB inverter configuration.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="44.75%"><p style="text-align:center">Parameters</p></td> 
       <td class="custom-bottom-td acenter" width="28.02%"><p style="text-align:center">Values</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="44.75%"><p style="text-align:center">DC voltage source, V<sub>dc</sub></p></td> 
       <td class="custom-top-td acenter" width="28.02%"><p style="text-align:center">400 V</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="44.75%"><p style="text-align:center">Switching frequency, f<sub>sw</sub></p></td> 
       <td class="acenter" width="28.02%"><p style="text-align:center">20 kHz</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="44.75%"><p style="text-align:center">Amplitude modulation ratio M<sub>a</sub></p></td> 
       <td class="acenter" width="28.02%"><p style="text-align:center">0.4 - 1.0</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="44.75%"><p style="text-align:center">Capacitors, C<sub>1</sub>, C<sub>2</sub></p></td> 
       <td class="acenter" width="28.02%"><p style="text-align:center">2200 µF</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="44.75%"><p style="text-align:center">Inductor filter, L<sub>f</sub></p></td> 
       <td class="acenter" width="28.02%"><p style="text-align:center">12 mH</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="44.75%"><p style="text-align:center">Resistor load, R</p></td> 
       <td class="acenter" width="28.02%"><p style="text-align:center">100 Ω</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>
     <xref ref-type="fig" rid="fig6">
      Figure 6
     </xref> presents the PWM gating signal results generated from Quartus Prime software, with switching patterns for the five-level TCHB inverter observed at an amplitude modulation ratio M<sub>a</sub> of 0.85. The result shows that switches S<sub>1</sub>, S<sub>3</sub>, and S<sub>5</sub> function at carrier-signal frequency, while switches S<sub>2</sub> and S<sub>4</sub> function at reference frequency as designed (see <xref ref-type="fig" rid="fig2(b)">
      Figure 2(b)
     </xref>). <xref ref-type="fig" rid="figFigures 7(a)-(c)">
      Figures 7(a)-(c)
     </xref> illustrate the inverter output waveforms, with an amplitude modulation ratio M<sub>a</sub> of 0.85 for the two-level inverter, three-level inverter, and five-level TCHB inverter, respectively.</p>
    <fig id="fig6" position="float">
     <label>Figure 6</label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.145460-"></xref>Figure 6. Switching pattern for the five-level TCHB inverter.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1771277-rId42.jpeg?20250909023907" />
    </fig>
    <p>A bipolar single-phase conventional H-bridge inverter generates two output voltage levels: 400 V and −400 V; it is often referred to as a two-level inverter. At the same time, a unipolar single-phase conventional H-bridge inverter generates three output voltage levels: 400 V, 0 V, and −400 V; due to these three levels of output, it is referred to as a three-level inverter. The simulation results reveal that the TCHB inverter voltage waveform exhibits five distinct levels: 400 V, 200 V, 0 V, −200 V, and −400 V.</p>
    <fig id="fig7" position="float">
     <label>Figure 7</label>
     <caption>
      <title>(a)<p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/1771277-rId44.jpeg?20250909023907" /></p>(b)<p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/1771277-rId45.jpeg?20250909023907" /></p>(c)<xref ref-type="bibr" rid="scirp.145460-"></xref>Figure 7. Inverter output voltage for (a) two-level inverter (b) three-level inverter (c) five-level TCHB inverter.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1771277-rId43.jpeg?20250909023907" />
    </fig>
    <p>
     <xref ref-type="fig" rid="fig8">
      Figure 8
     </xref> shows the FFT analysis result for the five-level TCHB inverter voltage waveform without a filter. The voltage THD is equal to 36.35% when the amplitude modulation ratio is 0.85. The harmonic spectrum is efficiently shifted by the high switching frequency, which lowers the filter size needed for sufficient ripple attenuation. The graphs of inverter output voltage THD in relation to the amplitude modulation ratio for the two-level, three-level, and five-level inverters without a filter are depicted in <xref ref-type="fig" rid="fig9">
      Figure 9
     </xref>. The results indicate that the evaluated five-level TCHB inverter demonstrates a reduced THD. As the number of levels increases, the THD decreases, indicating enhancement in the quality of the inverter output waveform.</p>
    <fig id="fig8" position="float">
     <label>Figure 8</label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.145460-"></xref>Figure 8. FFT analysis result of five-level TCHB inverter voltage waveform for M<sub>a</sub> = 0.85.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1771277-rId46.jpeg?20250909023907" />
    </fig>
    <fig id="fig9" position="float">
     <label>Figure 9</label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.145460-"></xref>Figure 9. THD versus amplitude modulation ratio of two-level, three-level and five-level inverters without filter.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1771277-rId47.jpeg?20250909023907" />
    </fig>
   </sec>
   <sec id="s4_2">
    <title>4.2. Hardware Results</title>
    <p>
     <xref ref-type="bibr" rid="scirp.145460-"></xref>The single-phase five-level TCHB inverter hardware is developed and constructed for hardware analysis. In order to obtain sinusoidal output voltage in the adopted multilevel inverter appropriate filter, switching frequency, and control strategy must be selected. The closed-loop control algorithm verification is programmed into the Altera DE2 board and tested on a five-level TCHB inverter prototype to validate the proposed switching scheme. The prototype circuit employs IGBTs of the ultrafast soft recovery diode type (IRG4PC50UD) as switching devices, along with 30CPF12PBF power diodes. The DC bus voltage is set to 120 V. The five-level TCHB inverter with a switching frequency of 20 kHz is set up with an inductive low-pass filter (L<sub>f</sub> = 12 mH). The selected inductance, when interfaced with a 100 Ω resistive load, guarantees adequate harmonic suppression and voltage quality, prevents needless voltage loss, and maintains the system’s dynamic response.</p>
    <p>The five-level TCHB inverter output waveforms are observed when M<sub>a</sub> = 0.4 and M<sub>a</sub> = 0.8. <xref ref-type="fig" rid="fig10(a)">
      Figure 10(a)
     </xref> and <xref ref-type="fig" rid="fig10(b)">
      Figure 10(b)
     </xref> give the experiment results for the unfiltered inverter output and filtered load voltages (v<sub>inv</sub> and v<sub>o</sub>) and the filtered load current (i<sub>o</sub>) waveforms for the two mentioned modulation index values. When M<sub>a</sub> = 0.4, only three levels of output voltages are obtained for the TCHB inverter circuit, whereas for M<sub>a</sub> = 0.8, five levels of output voltages are produced for the TCHB inverter. The filtered load current i<sub>o</sub> is in-phase with the filtered load voltage v<sub>o</sub>.</p>
    <fig id="fig10" position="float">
     <label>Figure 10</label>
     <caption>
      <title>(a)<p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/1771277-rId49.jpeg?20250909023908" /></p>(b)<xref ref-type="bibr" rid="scirp.145460-"></xref>Figure 10. Inverter output voltage (v<sub>inv</sub>), filtered load voltage (v<sub>o</sub>), and filtered load current (i<sub>o</sub>) for: (a) M<sub>a</sub> = 0.4; (b) M<sub>a</sub> = 0.8.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1771277-rId48.jpeg?20250909023908" />
    </fig>
    <p>
     <xref ref-type="bibr" rid="scirp.145460-"></xref>The experiment results of evaluating for a dynamic change from M<sub>a</sub> = 0.4 to M<sub>a</sub> = 0.6 and vice versa are presented in <xref ref-type="fig" rid="fig11(a)">
      Figure 11(a)
     </xref> and <xref ref-type="fig" rid="fig11(b)">
      Figure 11(b)
     </xref>. The filtered load currents i<sub>o</sub> are below 5%, while 3.0% and 2.2% THDs are observed when M<sub>a</sub> = 0.4 (<xref ref-type="fig" rid="fig12(a)">
      Figure 12(a)
     </xref>) and M<sub>a</sub> = 0.8 (<xref ref-type="fig" rid="fig12(b)">
      Figure 12(b)
     </xref>), respectively, proving that THD decreases when 0.5 &lt; M<sub>a</sub> ≤ 1. The experiment is further extended by testing with various M<sub>a</sub> values, resulting total harmonic distortion of the load voltage (THD<sub>v</sub>) and load current (THD<sub>i</sub>), as illustrated in <xref ref-type="fig" rid="fig13">
      Figure 13
     </xref>. For the THD<sub>v</sub>, it is ranged between 1.4% and 1.6%, while the THD<sub>i</sub> is ranged between 2.2% and 2.6% when 0.5 &lt; M<sub>a</sub> ≤ 1. As the M<sub>a</sub> increased, both the load voltage and current became more sinusoidal, accompanied by a corresponding reduction in THD.</p>
    <fig id="fig11" position="float">
     <label>Figure 11</label>
     <caption>
      <title>(a)<p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/1771277-rId51.jpeg?20250909023908" /></p>(b)<xref ref-type="bibr" rid="scirp.145460-"></xref>Figure 11. Experiment results: (a) dynamic change of M<sub>a</sub> = 0.4 to M<sub>a</sub> = 0.6; (b) dynamic change of M<sub>a</sub> = 0.6 to M<sub>a</sub> = 0.4.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1771277-rId50.jpeg?20250909023908" />
    </fig>
    <fig id="fig12" position="float">
     <label>Figure 12</label>
     <caption>
      <title>(a) (b)<xref ref-type="bibr" rid="scirp.145460-"></xref>Figure 12. THD of filtered load current i<sub>o</sub> at: (a) M<sub>a</sub> = 0.4; (b) M<sub>a</sub> = 0.8.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1771277-rId52.jpeg?20250909023908" />
    </fig>
    <fig id="fig13" position="float">
     <label>Figure 13</label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.145460-"></xref>Figure 13. THD<sub>v</sub> and THD<sub>i</sub> against various modulation indices.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1771277-rId54.jpeg?20250909023908" />
    </fig>
   </sec>
  </sec><sec id="s5">
   <title>5. Conclusion</title>
   <p>This paper presents the design and implementation of a single-phase five-level TCHB inverter using FPGA. This topology uses a multicarrier PWM technique consisting of two carrier signals and one reference signal to generate the PWM switching signal. The simulation results show that the THD decreases when the number of inverter levels increase; thus, the proposed five-level inverter is better than two-level and three-level inverters. By integrating a suitable filter, operating at an appropriate switching frequency, and applying an effective control strategy, the adopted inverter produces sinusoidal output voltage and current. Additionally, using only an inductive low-pass filter, the overall THD for both load voltage and load current waveforms remains below 3% for modulation indices in the range of 0.5 &lt; M<sub>a</sub> ≤ 1. When the amplitude modulation ratio is set to be less than or equal to 0.5, the proposed inverter will act like a three-level inverter.</p>
  </sec><sec id="s6">
   <title>Acknowledgements</title>
   <p>The authors thank Universiti Teknikal Malaysia Melaka for supporting this work.</p>
  </sec>
 </body><back>
  <ref-list>
   <title>References</title>
   <ref id="scirp.145460-ref1">
    <label>1</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Teoh, W.Y., Tan, C.W. and Ngan, M.S. (2016) A Study of Islanding Mode Control in Grid-Connected Photovoltaic Systems. In: Green Energy and Technology, Springer, 169-214. &gt;https://doi.org/10.1007/978-3-662-50521-2_7
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref2">
    <label>2</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Liu, W.H., Li, Y., Luo, L.T. and Du, P.X. (2025) Research on Hybrid Energy Storage Technology with Supercapacitors and Batteries in Parallel. Journal of Power and Energy Engineering, 13, 138-146. &gt;https://doi.org/10.4236/jpee.2025.136009
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref3">
    <label>3</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Cengelci, E., Sulistijo, S.U., Woo, B.O., Enjeti, P., Teoderescu, R. and Blaabjerg, F. (1999) A New Medium-Voltage PWM Inverter Topology for Adjustable-Speed Drives. IEEE Transactions on Industry Applications, 35, 628-637. &gt;https://doi.org/10.1109/28.767014 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref4">
    <label>4</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Prado, E.O., Bolsi, P.C., Sartori, H.C. and Pinheiro, J.R. (2024) Design and Management of Photovoltaic Energy in Uninterruptible Power Supplies. Energy Conversion and Management, 301, Article 118038. &gt;https://doi.org/10.1016/j.enconman.2023.118038 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref5">
    <label>5</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Rashid, M.H. (2004) Power Electronics: Circuits, Devices, and Applications. 3rd Edition, Pearson Prentice Hall.
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref6">
    <label>6</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Hart, D.W. (2010) Power Electronics. McGraw-Hill Companies Inc.
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref7">
    <label>7</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Nabae, A., Takahashi, I. and Akagi, H. (1981) A New Neutral-Point-Clamped PWM Inverter. IEEE Transactions on Industry Applications, 17, 518-523. &gt;https://doi.org/10.1109/tia.1981.4503992
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref8">
    <label>8</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Baker, R.H. and Bannister, L.H. (1975) U.S. Patent No. 3,867,643. U.S. Patent and Trademark Office.
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref9">
    <label>9</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Rodriguez, J., Lai, J.S. and Peng, F.Z. (2002) Multilevel Inverters: A Survey of Topologies, Controls, and Applications. IEEE Transactions on Industrial Electronics, 49, 724-738. &gt;https://doi.org/10.1109/tie.2002.801052
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref10">
    <label>10</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Hossain, M.S., Hasan, M.A., Said, N.A.M., Halim, W.A. and Jidin, A. (2023) Reduced Device Count Multilevel Inverter Topology for Renewable Energy Applications: A Brief Review. 2023 IEEE Conference on Energy Conversion (CENCON), Kuching, 23-24 October 2023, 41-46. &gt;https://doi.org/10.1109/cencon58932.2023.10369138 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref11">
    <label>11</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Halim, W.A., Rahim, N.A. and Azri, M. (2015) Generalized Selective Harmonic Elimination Modulation for Transistor-Clamped H-Bridge Multilevel Inverter. Journal of Power Electronics, 15, 964-973. &gt;https://doi.org/10.6113/jpe.2015.15.4.964 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref12">
    <label>12</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Said, N.A.M., Saleh, W.A.A. and Halim, W.A. (2020) Voltage Harmonics Reduction in Single Phase 9-Level Transistor Clamped H-Bridge Inverter Using Nearest Level Control Method. Indonesian Journal of Electrical Engineering and Computer Science, 20, 1725-1732. &gt;https://doi.org/10.11591/ijeecs.v20.i3.pp1725-1732
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref13">
    <label>13</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Park, S.J., Kang, F.S., Lee, M.H. and Kim, C.U. (2003) A New Single-Phase Five-Level PWM Inverter Employing a Deadbeat Control Scheme. IEEE Transactions on Power Electronics, 18, 831-843. &gt;https://doi.org/10.1109/tpel.2003.810837
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref14">
    <label>14</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Selvaraj, J. and Rahim, N.A. (2009) Multilevel Inverter for Grid-Connected PV System Employing Digital PI Controller. IEEE Transactions on Industrial Electronics, 56, 149-158. &gt;https://doi.org/10.1109/tie.2008.928116 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref15">
    <label>15</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Kar, S., Patel, R. and Mishra, S.K. (2021) Performance Analysis of Transistor Clamped H-Bridge Multi-Reference Multi-Level Inverter for Standalone PV System. In: Lecture Notes in Electrical Engineering, Springer, 93-105. &gt;https://doi.org/10.1007/978-981-15-7511-2_9 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref16">
    <label>16</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Ahmad Tarusan, S.A., Jidin, A., Mohd Jamil‬, M.L., Abdul Karim, K. and Sutikno, T. (2020) A Review of Direct Torque Control Development in Various Multilevel Inverter Applications. International Journal of Power Electronics and Drive Systems, 11, 1675-1688. &gt;https://doi.org/10.11591/ijpeds.v11.i3.pp1675-1688 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref17">
    <label>17</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Sahu, N., Londhe, N.D. and Kshirsagar, G.B. (2017) FPGA Applications in Inverter and Converter Circuits: A Review on Technology, Benefits and Challenges. 2017 International Conference on Innovations in Information, Embedded and Communication Systems (ICIIECS), Coimbatore, 17-18 March 2017, 1-5. &gt;https://doi.org/10.1109/iciiecs.2017.8276170 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref18">
    <label>18</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Taeed, F., Salam, Z. and Ayob, S. (2011) FPGA Implementation of a Single-Input Fuzzy Logic Controller for Boost Converter with the Absence of an External Analog-to-Digital Converter. IEEE Transactions on Industrial Electronics, 59, 1208-1217. &gt;https://doi.org/10.1109/tie.2011.2161250 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref19">
    <label>19</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Nanjappan, V., Ramasamy, S., Gatto, G. and Kumar, A. (2024) Solar Powered High Gain DC-DC Converter with FPGA Controller for Portable Devices. e-Prime—Advances in Electrical Engineering, Electronics and Energy, 9, Article 100699. &gt;https://doi.org/10.1016/j.prime.2024.100699 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref20">
    <label>20</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Puyal, D., Barragan, L.A., Acero, J., Burdio, J.M. and Millan, I. (2006) An FPGA-Based Digital Modulator for Full-or Half-Bridge Inverter Control. IEEE Transactions on Power Electronics, 21, 1479-1483. &gt;https://doi.org/10.1109/tpel.2006.880234 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref21">
    <label>21</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Duan, B., Zhang, C., Guo, M. and Zhang, G. (2015) A New Digital Control System Based on the Double Closed-Loop for the Full-Bridge Inverter. The International Journal of Advanced Manufacturing Technology, 77, 241-248. &gt;https://doi.org/10.1007/s00170-014-6463-6 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref22">
    <label>22</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Singh, A.K. (2025) HIL Simulation of a Solar PV-Fed Cascaded H-Bridge Multilevel Inverter with Ac-Side Battery Storage and Power Management. Next Energy, 8, Article 100316. &gt;https://doi.org/10.1016/j.nxener.2025.100316 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref23">
    <label>23</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Cuong, T.H., Phuong, P.V., Van Phuong, T. and Minh, T.T. (2019) Experiment on Nearest Level Modulation Algorithm for FPGA Based Modular Multilevel Converters. 2019 10th International Conference on Power Electronics and ECCE Asia (ICPE 2019—ECCE Asia), Busan, 27-30 May 2019, 1221-1226. &gt;https://doi.org/10.23919/icpe2019-ecceasia42246.2019.8797205 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref24">
    <label>24</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Rahim, N.A., Islam, Z. and Raihan S.R.S. (2010) FPGA-Based PWM Control of Hybrid Single-Phase Active Power Filter for Harmonic Compensation. Journal of Scientific &amp; Industrial Research, 69, 55-61. 
    </mixed-citation>
   </ref>
   <ref id="scirp.145460-ref25">
    <label>25</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Agarwal, A. and Agarwal, V. (2012) FPGA Realization of Trapezoidal PWM for Generalized Frequency Converter. IEEE Transactions on Industrial Informatics, 8, 501-510. &gt;https://doi.org/10.1109/tii.2012.2193406
    </mixed-citation>
   </ref>
  </ref-list>
 </back>
</article>