PWM Controller

CI

CircuitSim

·

Created Jul 25, 2026

·

Updated Jul 25, 2026

Schematic preview for PWM Controller
Details

Components

3


Schematic

Yes


Simulation

Interactive


Copies

Not copied yet

About this circuit

Voltage controlled PWM duty cycle.

Components used

Components used
3 components
NameManufacturerMPNCountType

DC Voltage Source

Generic

1

Official

PWM Controller

Generic

PWM

1

Official

Resistor

Generic

1

Official

SPICE netlist

* **************************************************
* Generated from CircuitSim Schematic
**************************************************
R_RLOAD N1 0 10k
xU1 N2 N1 PWM_4065ea6a PARAMS: Frequency=100 TriangleMin=0 TriangleMax=1 OutputVoltage=5 PwmMode=1
V_VCTRL N2 0 dc 820m ac 0 0 distof1 0 0 distof2 0 0
E_W_OUTPUT_PROBE W_OUTPUT_PROBE 0 N1 0 1
E_VP1 VP1 0 N2 0 1

**************************************************
* Models and supporting definitions follow
**************************************************
.model Resistor_1d9c8cf9a r(tc1=0 tc2=0 tnom=27)
.subckt PWM_4065ea6a in out params: Frequency=10K TriangleMin=0 TriangleMax=1 OutputVoltage=5 PwmMode=1
    Vtriangle triangle 0 PULSE({TriangleMin} {TriangleMax} 0 {1/2/Frequency} {1/2/Frequency} 0 {1/Frequency})
    Bout out 0 V={(PwmMode>0.5) ? ((V(in)>V(triangle)) ? OutputVoltage : 0) : ((V(in)>V(triangle)) ? 0 : OutputVoltage)}
.ends

**************************************************
* Simulation settings
**************************************************
.tran 20u 1e12 0 20u
.save V(VP1) V(W_OUTPUT_PROBE)
.end

Try this circuit yourself

Free during Open Beta. No download — runs in your browser with a full SPICE engine.