SNOAAA7 April 2024 LMG3522R030
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.