You are on page 1of 6

ASSIGNMENT NO : 00

DEVICE MODELLING LAB


NAME: ABHISHEK DESHMUKH
ENROLLMENT NO: BT21ECE102
DATE OF SUBMISSION : 16/01/24
QUESTION :

For the given first Order RC circuit Take


R=(Rollno*15)ohms C=(Rollno*12)micro Farads
Do the
1.Transient Analysis
2.Dc Analysis
3.Ac Analysis

CIRCUIT :

THERIOTICAL CALCULATIONS :
Roll number:BT21ECE102

R=(102*15)=1530 ohms

C=(102*12)=1224 micro Farads

T= R*C =(1530)(1224 micro) = 1.87

CODE :
For Transient Analysis:
r 1 2 1530

c 2 0 1244uF

vin 1 0 PULSE(0 1 0 1n 1n 10 20 30)

.tran 0.1s 80s

.control
run

set color0 = white

set color1 = black

set xbrushwidth = 4

plot v(1) v(2)

.endc

.end

For DC Analysis:

r1 1 2 1530

c1 2 0 1244u

vin 1 0 PULSE(0 1 0 1n 1n 10 20 30)

.dc vin 0 1 0.1

.control

run

set color0=white

set color1=black

set xbrushwidth=3

plot v(1), v(2)

.endc

.end

For AC analysis:

R1 1 2 1530

C1 2 0 1244uF
V1 1 0 AC 1V

.ac dec 10 1Hz 10kHz

.control

run

plot db(v(1))db(v(2))

set color0 = white

set color1 = black

.endc

.end

OUTPUT

For Transient Analysis:

For DC Analysis:
For AC Analysis:
CONCLUSION
The circuit consists of an RC (resistor-capacitor) circuit excited by a pulsed
voltage source. The transient analysis will show how the voltages across the
resistor v(1) and capacitor v(2) change over time in response to the pulsed
input. The plot will display the waveforms for v(1) and v(2) over the
simulation period. similarily for ac and dc analysis

You might also like