PWM Controller (Copy)
BR
Britt-Espinosa
·
Created Aug 5, 2026
·
Updated Aug 5, 2026
Preview will appear once the owner saves the schematic
Details
Components
3
Schematic
Yes
Simulation
Interactive
Copies
Not copied yet
Tags
No tags yet.
About this circuit
Voltage controlled PWM duty cycle.
Components used
Components used
3 components
NameManufacturerMPNCountType
SPICE netlist
* **************************************************
* Generated from CircuitSim Schematic
**************************************************
R_RLOAD N2 0 10k
X_U1 N1 N2 PWM_4065ea6a Frequency=100 OutputVoltage=5 TriangleMin=0 TriangleMax=1
V_VCTRL N1 0 dc 820m ac 0 0 distof1 0 0 distof2 0 0
E_W_OUTPUT_PROBE W_OUTPUT_PROBE 0 N2 0 1
E_VP1 VP1 0 N1 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
* The small phase offset and plateaus avoid terminal-timestep events while preserving a 99.8% linear triangle period.
Vtriangle triangle 0 PULSE({TriangleMin} {TriangleMax} {0.0001/Frequency} {0.499/Frequency} {0.499/Frequency} {0.001/Frequency} {1/Frequency})
Bout out 0 V={(V(in)>V(triangle)) ? OutputVoltage : 0}
.ends
**************************************************
* Simulation settings
**************************************************
.tran 200u 1e12 0 200u
.save V(VP1) V(W_OUTPUT_PROBE)
.endTry this circuit yourself
Free to get started. No download — runs in your browser with a full SPICE engine.