blob: ee87daaecc0be47aab8e2c22a3f798957d9f06d9 (
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
|
* /home/fossee/downloads/esim-master/examples/bjt_amplifier/bjt_amplifier.cir
.include NPN.lib
v1 net-_r2-pad1_ gnd dc 10
v2 net-_r1-pad2_ gnd ac 0.5 0
r1 net-_c1-pad1_ net-_r1-pad2_ 50
r2 net-_r2-pad1_ net-_c1-pad2_ 200k
c1 net-_c1-pad1_ net-_c1-pad2_ 40u
r3 net-_c1-pad2_ gnd 50k
r6 out gnd 1k
c2 gnd net-_c2-pad2_ 100u
c3 out net-_c3-pad2_ 40u
r5 net-_r2-pad1_ net-_c3-pad2_ 2k
r4 net-_c2-pad2_ gnd 1.5k
q1 net-_c3-pad2_ net-_c1-pad2_ net-_c2-pad2_ Q2N2222
* u1 out plot_phase
* u2 out plot_log
.ac dec 100 100Hz 10KHz
* Control Statements
.control
run
print allv > plot_data_v.txt
print alli > plot_data_i.txt
plot phase(out)
plot log(out)
.endc
.end
|