RC Charge/Discharge

CI

CircuitSim

·

Created Apr 19, 2026

·

Updated Jun 30, 2026

Preview will appear once the owner saves the schematic
Details

Components

—


Schematic

Yes


Simulation

Transient analysis


Copies

Not copied yet

About this circuit

The author hasn't added a description yet.

Components used

No component metadata available.

SPICE netlist

* **************************************************
* Generated from CircuitSim Schematic
**************************************************
C_C1 VP2 0 1u
R_R1 N2 N1 1K
X_U1 VP1 0 CLOCK DUTY=50 VHIGH=5 VLOW=0 PERIOD=1m
V_VP1 VP1 N1 0
V_IP1 VP2 N2 0

**************************************************
* Models and supporting definitions follow
**************************************************
* Clock generator with duty cycle in percent (0–100)
.subckt CLOCK OUT GND VHIGH=5 VLOW=0 PERIOD=1m DUTY=50
    .param DUTY_FRAC = { DUTY / 100 } * Convert percent to fraction
    .param TON  = { PERIOD * DUTY_FRAC }
    VCLK OUT 0 PULSE( VLOW VHIGH 0 1n 1n {TON} {PERIOD} )
.ends CLOCK

**************************************************
* Simulation settings
**************************************************
.tran 0.00009999999999999999 0.02 0
.save V(VP1) V(VP2) I(V_IP1)
.end

Try this circuit yourself

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