// Set initial condition .IC V(VOUT)=1.5
// Include a model file .INCLUDE my_transistors.lib spice circuit
.OPTIONS plotwinsize=0 ; prevents waveform compression // Set initial condition
Seeing startup, switching, or pulse responses. 4. Complete SPICE Example (LTspice Syntax) Circuit: Simple RC low-pass filter with a 10 kHz square wave input. R1 1 2 1k → Resistor R1 between nodes 1 and 2, 1 kΩ
R1 1 2 1k → Resistor R1 between nodes 1 and 2, 1 kΩ. Basic Components | Component | Prefix | Syntax Example | Meaning | |-----------|--------|----------------|---------| | Resistor | R | R1 1 2 1k | 1 kΩ | | Capacitor | C | C1 2 3 10u | 10 µF | | Inductor | L | L1 3 0 100m | 100 mH | | Voltage source | V | V1 1 0 DC 5 | 5V DC | | Current source | I | I1 2 0 DC 1m | 1 mA DC |