Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Transient Analysis of Low Pass Filter (RC)

Program:
Transient response of lpf
Vs 1 0 pulse(0V 10V 0s 100ms 100ms 900ms 2s)
Rs 1 2 10K
Cs 2 0 100uf IC=0V
.tran 5ms 3s 0s 5ms UIC
.probe
.end

Output:
Circuit: Transient response of lpf

*** Expanding subcircuits ...


*** Subcircuit expansion done.
*** Checking topology ...
*** Topology check done, 3 nodes in circuit.
Executing commands ...

TEMP=27 deg C
WARNING: Vs: no DC value, transient time 0 value used
WARNING: TRAN: setting DELMIN=1e-99

Transient analysis ... 100%


Command execution done.
WinSpice 18 -> plot v(2)

Plot of V2:
AC Analysis and Transient Analysis using Control Loop Statements
Program:
Transient response of lpf
Vs 1 0 AC 10V pulse(0V 10V 0s 100ms 100ms 900ms 2s)
Rs 1 2 10K
Cs 2 0 100uf IC=0V
.end
.control
ac dec 10 10Hz 10kHz
plot vdb(2)
tran 5ms 3s 0s 5ms UIC
plot vdb(2)
probe
.endc

Plot:
Inverting Amplifier using OP-Amp (Transient Analysis)
Program:
inverting amplifier using opamp
.subckt opamp P_in N_in COM OUT
Ri P_in N_in 500K
Ro int OUT 50
Ex int COM P_in N_in 1e5
.ends
Vin 1 0 SIN(0 10mV 1kHz)
Rg 1 2 5K
Rc 2 3 50K
RL 3 0 20K
X1 0 2 0 3 opamp
.end
.control
tran 10ns 1ms
plot v(3) v(1)
.endc

Output:
Circuit: inverting amplifier using opamp

*** Expanding subcircuits ...


*** Subcircuit expansion done.
*** Checking topology ...
*** Topology check done, 5 nodes in circuit.
Executing commands ...

TEMP=27 deg C
WARNING: Vin: no DC value, transient time 0 value used
WARNING: TRAN: setting DELMIN=1e-99

Transient analysis ... 100%


Command execution done.

Plot v(3) v(1)


AC and Transient Analysis using Control Loop Statement (RC Low Pass Filter)
Program:
Transient response of lpf
Vs 1 0 AC 10V pulse(0V 10V 0s 100ms 100ms 900ms 2s)
Rs 1 2 10K
Cs 2 0 100uf IC=0V
.probe
.end
.control
ac dec 10 10Hz 10KHz
plot vdb(2)
tran 5ms 3s 0s 5ms UIC
plot v(2)
plot v(1)
.endc

Output:
Circuit: Transient response of lpf

*** Expanding subcircuits ...


*** Subcircuit expansion done.
*** Checking topology ...
*** Topology check done, 3 nodes in circuit.
Executing commands ...
TEMP=27 deg C
WARNING: Vs: no DC value, transient time 0 value used
AC analysis ... 100%

TEMP=27 deg C
WARNING: Vs: no DC value, transient time 0 value used
WARNING: TRAN: setting DELMIN=1e-99

Transient analysis ... 100%


Command execution done.
WinSpice 45 ->

You might also like