Skip to main content

Class-D Amplifier

CI

CircuitSim

·

Created Oct 3, 2026

·

Updated Oct 3, 2026

Preview will appear once the owner saves the schematic
Details

Components

6


Schematic

Yes


Simulation

Transient analysis


Copies

Not copied yet

About this circuit

Encode a signal as pulse width, then recover its amplified shape with an LC filter.

Circuit notes

Class-D Amplifier

Encode a signal as pulse width, then recover its amplified shape with an LC filter.

V1 is a 0.5 V peak, 100 Hz signal. VT supplies a ±1 V, 20 kHz triangle. A1 compares them and produces an approximately ±12 V pulse-width-modulated output. L1 = 10 mH, C1 = 1 µF and RL = 100 Ω form a reconstruction filter.

D≈12(1+Vsignal1 V)D\approx\frac12\left(1+\frac{V_{\mathrm{signal}}}{1\,\mathrm{V}}\right) VPWM‾≈12VsignalfLC=12πLC≈1.59 kHz\begin{aligned}\overline{V_{\mathrm{PWM}}}&\approx12V_{\mathrm{signal}}\\f_{LC}&=\frac{1}{2\pi\sqrt{LC}}\approx1.59\,\mathrm{kHz}\end{aligned}

Signal is green, recovered Audio red, PWM teal and load current blue. The recovered signal is about 6 V peak with residual switching ripple. This is a functional modulation example: the limited-output amplifier represents an idealized switching stage. It does not model a transistor half-bridge, dead time, switching loss or efficiency.

Read the results. The saved transient chart uses separate voltage and current panels; the table provides numerical samples. The first voltage probe is green and the second red. The first current probe is blue; a second current probe is purple.

Model limits. The three-terminal op-amp model has implicit ±12 V output limits, 200,000 low-frequency gain and 10 MHz gain-bandwidth product. Supply pins are intentionally absent in this functional model. In Schmitt-trigger and relaxation/integrator oscillator examples, the switching amplifier uses a 100 kHz gain-bandwidth setting to resolve transitions cleanly at the saved time step. It omits detailed slew-rate, input common-mode, output-current and thermal limits.

Try it. Set V1 peak voltage to 0.25 V; the recovered output amplitude approximately halves. Restore the original values after comparing the results.

Components used

Components used
6 components
NameManufacturerMPNCountType

AC Voltage Source

Generic

—

1

Official

Capacitor

Generic

—

1

Official

Inductor

Generic

—

1

Official

Resistor

Generic

—

1

Official

Triangle Voltage Source

Generic

—

1

Official

Try this circuit yourself

Free to get started. No download — runs in your browser with a full SPICE engine.