blob: 6c5c69c83fa30323ae9338839865073c4542d1e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
* /home/saurabh/esim-workspace/precision_rectifiers_using_lm741/precision_rectifiers_using_lm741.cir
.include lm_741.sub
.include D.lib
v5 in_hwr gnd sine(0 5 50 0 0)
r2 net-_d2-pad1_ in_hwr 1k
* u2 in_hwr plot_v1
d4 net-_d2-pad2_ out_hwr 1N4148
* u3 out_hwr plot_v1
d2 net-_d2-pad1_ net-_d2-pad2_ 1N4148
r4 out_hwr net-_d2-pad1_ 1k
r7 out_hwr gnd 1k
x2 ? net-_d2-pad1_ gnd net-_x2-pad4_ ? net-_d2-pad2_ net-_x2-pad7_ ? lm_741
v2 net-_x2-pad7_ gnd 12
v4 in_fwr gnd sine(0 5 50 0 0)
* u1 in_fwr plot_v1
* u4 out_fwr plot_v1
x1 ? net-_d1-pad2_ gnd net-_x1-pad4_ ? net-_d1-pad1_ net-_x1-pad7_ ? lm_741
v1 net-_x1-pad7_ gnd 12
d1 net-_d1-pad1_ net-_d1-pad2_ 1N4148
d3 net-_d3-pad1_ net-_d1-pad1_ 1N4148
x3 ? net-_r5-pad1_ gnd net-_x3-pad4_ ? out_fwr net-_x3-pad7_ ? lm_741
r3 net-_d1-pad1_ net-_d1-pad2_ 1.135k
r1 net-_d1-pad2_ in_fwr 1k
v6 gnd net-_x2-pad4_ 12
v3 gnd net-_x1-pad4_ 12
v8 net-_x3-pad7_ gnd 12
v7 gnd net-_x3-pad4_ 12
r9 gnd out_fwr 1k
r8 out_fwr net-_r5-pad1_ 1k
r6 net-_r5-pad1_ net-_d3-pad1_ 0.5k
r5 net-_r5-pad1_ in_fwr 1k
.tran 10e-06 100e-03 0e-00
* Control Statements
.control
run
print allv > plot_data_v.txt
print alli > plot_data_i.txt
plot v(in_hwr)
plot v(out_hwr)
plot v(in_fwr)
plot v(out_fwr)
.endc
.end
|