Ronak 1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Experiment No.

1
Name: Ronak Sharma
Roll No. : U22EC094

AIM: Introduction to spice and plot transient characteristics of RC


circuit.

APPARATUS: NGSPICE Software

CIRCUIT DIAGRAM:

THEORY:

ngspice is the open sourcee spice simulator for electric and electronic
circuits.Such a circuit may comprise of JFETs, bipolar and MOS
transistors, passive elements like R, L, or C, diodes, transmission lines
and other devices, all interconnected in a netlist. Digital circuits are
simulated as well, event driven and fast, from single gates to complex
circuits. And you may enter the combination of both analog and digital
as a mixed-signal circuit.

CODE:
*<Netlist>

R A B 1K

C B 0 4u

*Stimulus

V A 0 PULSE 0 5 50ms 20ms 20ms 30ms 100ms

*trans

.tran 1ms 500ms

*Control

.control

run

plot V(B) V(A)

.endc

.END

Result:

You might also like