blob: 257b2d2dfcebd405c792ddac3ce2821ccf8515fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
* /home/fossee/esim-workspace/bjt_biascircuit/bjt_biascircuit.cir
.include NPN.lib
q1 net-_q1-pad1_ net-_q1-pad2_ gnd Q2N2222
v1 vce gnd dc 12
r1 net-_r1-pad1_ net-_q1-pad1_ 1k
r2 net-_q1-pad2_ ib 1k
* u1 vce net-_r1-pad1_ plot_i2
i1 ib gnd dc 20m
v_u1 vce net-_r1-pad1_ 0
.dc v1 0e-00 10e-00 0.05e-00 i1 0e-03 5e-03 1e-03
* Control Statements
.control
run
print allv > plot_data_v.txt
print alli > plot_data_i.txt
plot i(v_u1)
.endc
.end
|