A simple amplifier as example for Harmonic Balance.
This commit is contained in:
parent
0d4bbaeed8
commit
38a33e25d6
|
|
@ -0,0 +1,25 @@
|
|||
**************************************
|
||||
* Model Generated by MODPEX *
|
||||
*Copyright(c) Symmetry Design Systems*
|
||||
* All Rights Reserved *
|
||||
* UNPUBLISHED LICENSED SOFTWARE *
|
||||
* Contains Proprietary Information *
|
||||
* Which is The Property of *
|
||||
* SYMMETRY OR ITS LICENSORS *
|
||||
*Commercial Use or Resale Restricted *
|
||||
* by Symmetry License Agreement *
|
||||
**************************************
|
||||
* Model generated on Feb 28, 13
|
||||
* MODEL FORMAT: PSpice
|
||||
.MODEL Q2n2222a npn
|
||||
+IS=3.88184e-14 BF=929.846 NF=1.10496 VAF=16.5003
|
||||
+IKF=0.019539 ISE=1.0168e-11 NE=1.94752 BR=48.4545
|
||||
+NR=1.07004 VAR=40.538 IKR=0.19539 ISC=1.0168e-11
|
||||
+NC=4 RB=0.1 IRB=0.1 RBM=0.1
|
||||
+RE=0.0001 RC=0.426673 XTB=0.1 XTI=1
|
||||
+EG=1.05 CJE=2.23677e-11 VJE=0.582701 MJE=0.63466
|
||||
+TF=4.06711e-10 XTF=3.92912 VTF=17712.6 ITF=0.4334
|
||||
+CJC=2.23943e-11 VJC=0.576146 MJC=0.632796 XCJC=1
|
||||
+FC=0.170253 CJS=0 VJS=0.75 MJS=0.5
|
||||
+TR=1e-07 PTF=0 KF=0 AF=1
|
||||
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
.title KiCad schematic
|
||||
.include "D:/Spice_general/KiCad-1000/HB/amp2n2222/2N2222A.txt"
|
||||
.param freq=1.5Meg
|
||||
.csparam freq={freq}
|
||||
R4 Net-_Q1-B_ 0 2.2k
|
||||
C1 in Net-_Q1-B_ 10u
|
||||
R3 Net-_R1-Pad1_ Net-_Q1-B_ 10k
|
||||
V2 in 0 DC 0 SIN( 0 50m {freq} 0 0 0 ) AC 1
|
||||
R1 Net-_R1-Pad1_ out1 560
|
||||
V1 Net-_R1-Pad1_ 0 DC 12
|
||||
R5 out2 0 3.3k
|
||||
C2 out1 out2 10u
|
||||
R2 Net-_Q1-E_ 0 180
|
||||
Q1 out1 Net-_Q1-B_ Net-_Q1-E_ Q2n2222a
|
||||
|
||||
.control
|
||||
*tran 1n 10u
|
||||
*pyplot in out2
|
||||
*ac dec 10 1 100Meg
|
||||
*pyplot db(out2)
|
||||
*destroy all
|
||||
*set hb_verbose
|
||||
hb $&freq 8
|
||||
display
|
||||
set xbrushwidth=3
|
||||
plot db(out2) combplot ylimit -200 0
|
||||
*pyplot db(out1) db(out2) combplot
|
||||
*gnuplot gout db(out1) db(out2) combplot
|
||||
print hbfrequency db(out1) db(out2)
|
||||
*quit
|
||||
.endc
|
||||
|
||||
.end
|
||||
Loading…
Reference in New Issue