From 458be1a82e763d2b8421d864f51a2a7be44ee1c9 Mon Sep 17 00:00:00 2001 From: dwarning Date: Sun, 23 Jul 2017 20:08:32 +0200 Subject: [PATCH] bjt and diode: examples for plotting small signal parameters in a dc sweep --- examples/various/bjt_ac_par.sp | 30 ++++++++++++++++++++++++++++++ examples/various/diode_ac_par.sp | 28 ++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 examples/various/bjt_ac_par.sp create mode 100644 examples/various/diode_ac_par.sp diff --git a/examples/various/bjt_ac_par.sp b/examples/various/bjt_ac_par.sp new file mode 100644 index 000000000..048eb6f3c --- /dev/null +++ b/examples/various/bjt_ac_par.sp @@ -0,0 +1,30 @@ +Plot inner small signal parameter + +v1 1 0 dc 10.0 +rc 1 c 2k +vb b 0 dc 0.6 +q1 c b 0 bfs17 + +.MODEL BFS17 NPN (level=1 IS=0.48F NF=1.008 BF=99.655 VAF=90.000 IKF=0.190 ++ ISE=7.490F NE=1.762 NR=1.010 BR=38.400 VAR=7.000 IKR=93.200M ++ ISC=0.200F NC=1.042 ++ RB=1.500 IRB=0.100M RBM=1.200 ++ RE=0.500 RC=2.680 ++ CJE=1.325P VJE=0.700 MJE=0.220 FC=0.890 ++ CJC=1.050P VJC=0.610 MJC=0.240 XCJC=0.400 ++ TF=56.940P TR=1.000N PTF=21.000 ++ XTF=68.398 VTF=0.600 ITF=0.700 ++ XTB=1.600 EG=1.110 XTI=3.000 ++ KF=1.000F AF=1.000) + +.control +save @q1[gm] @q1[pi] @q1[go] +save @q1[qbe] @q1[qbc] +save @q1[cmu] @q1[cpi] +dc vb 0.4 1 0.01 +plot @q1[gm] @q1[gpi] @q1[go] +plot @q1[qbe] @q1[qbc] +plot @q1[cmu] @q1[cpi] +.endc + +.end diff --git a/examples/various/diode_ac_par.sp b/examples/various/diode_ac_par.sp new file mode 100644 index 000000000..bd13435a6 --- /dev/null +++ b/examples/various/diode_ac_par.sp @@ -0,0 +1,28 @@ +Plot inner small signal parameter + +v1 1 0 dc 0 +d1 1 0 myd +.model myd D(IS = 1.50E-07 ++ N = 1.0 ++ RS = 9 ++ TT = 100n ++ CJ0 = 1.01p ++ VJ = 0.44 ++ M = 0.5 ++ EG = 1.11 ++ XTI = 3 ++ KF = 0 ++ AF = 1 ++ FC = 0.5 ++ BV = 22 ++ IBV = 10u) + +.control +save @d1[gd] @d1[cd] @d1[charge] +dc v1 -5 .1 0.01 +plot @d1[gd] +plot @d1[cd] +plot @d1[charge] +.endc +* +.END