SNOAAA7 April   2024 LMG3522R030

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Overview of Inverter Model
    1. 2.1 Power Stage
    2. 2.2 Control and Modulation Method
  6. 3Realization of Digital Control Using C-Script Block
    1. 3.1 Overview of Project Structure
    2. 3.2 AC Voltage Sampling and True RMS Value Calculation
    3. 3.3 Multiple Loop Control
      1. 3.3.1 Voltage Loop With Notch Filter
      2. 3.3.2 Current Loop With PI Compensator Anti-Windup
      3. 3.3.3 Sinusoidal and Sawtooth Wave Generator
      4. 3.3.4 Totem-Pole Modulation and Dead-Time Control
  7. 4Simulation Results
  8. 5Summary
  9. 6References

Abstract

Simulation is an effective method for studying the feasibility and performance of systems, including converter and control algorithms. Using code to realize digital control in simulation tools can be more flexible and similar to using C2000™ control. This application note introduces how to implement a single-phase, off-grid inverter with all digital control in a simulation tool and provides a verification method for off-grid control in the PMP23338 TI reference design. Voltage and current loops with a PI compensator are used in the control algorithm. A true RMS calculation block is configured in the voltage loop as the input sample signal. Totem-pole modulation is used to increase the efficiency of the GaN-based inverter or in power factor correction (PFC) circuits like PMP23338. A detailed implementation and code for each block are included in this application note, and the simulation results verify the correctness of the code and simulation model.