Switching Audio Power Amplifier

This example shows a switching audio power amplifier circuit. Switching audio power amplifiers are more efficient than conventional power amplifiers as switching devices are operating only in the fully-on and fully-off states. This audio power amplifier uses a 1MHz switching frequency and has a PI feedback controller to ensure that output voltage tracks the 2kHz and 2.5kHz sine wave inputs. The power spectrum is plotted in the Spectrum Analyzer, and can be used to inform selection of controller and filter parameters.

Model

Simulation Results from Simscape Logging

The plot below shows the output voltage as compared to the reference voltage. It also shows the dissipated power of the two MOSFETS averaged over 100 PWM cycles.

Warning: The file containing block diagram 'ee_amp_audio' is shadowed by a file
of the same name higher on the MATLAB path. This can cause unexpected behavior.
For more information see <a href="matlab:helpview([docroot
'/toolbox/simulink/helptargets.map'], 'shadowing')">"Avoiding Problems with
Shadowed Files"</a> in the Simulink documentation.

The file containing the block diagram is:
/mathworks/devel/bat/Bdoc20a/build/matlab/toolbox/physmod/elec/eedemos/ee_amp_audio.slx.
The file higher on the MATLAB path is:
/mathworks/devel/bat/Bdoc20a/build/matlab/toolbox/physmod/elec/eedemos/html/ee_amp_audio.m 

Simulation Results from Scopes

The power spectrum plotted in the Spectrum Analyzer shows peaks at 2kHz and 2.5kHz, the two components of the reference voltage.

Warning: The file containing block diagram 'ee_amp_audio' is shadowed by a file
of the same name higher on the MATLAB path. This can cause unexpected behavior.
For more information see <a href="matlab:helpview([docroot
'/toolbox/simulink/helptargets.map'], 'shadowing')">"Avoiding Problems with
Shadowed Files"</a> in the Simulink documentation.

The file containing the block diagram is:
/mathworks/devel/bat/Bdoc20a/build/matlab/toolbox/physmod/elec/eedemos/ee_amp_audio.slx.
The file higher on the MATLAB path is:
/mathworks/devel/bat/Bdoc20a/build/matlab/toolbox/physmod/elec/eedemos/html/ee_amp_audio.m