qucs_s/library/VoltageReferences.lib
2024-01-12 15:56:58 +03:00

500 lines
12 KiB
Plaintext

<Qucs Library 24.1.0 "VoltageReferences">
<Component AD581>
<Description>
10V precison reference
</Description>
<Model>
.Def:VoltageReferences_AD581 _net0 _net1 _net2
Sub:X1 _net0 _net1 _net2 gnd Type="AD581_cir"
.Def:End
</Model>
<Spice>* Qucs 24.1.0 VoltageReferences_AD581.sch
.SUBCKT AD581_AD 1 4 8
*
* BANDGAP REFERENCE
*
I1 4 10 DC 1.21485E-3
R1 10 4 1E3 TC=30E-6
EN 10 11 41 0 1
G1 4 11 8 4 2.430243E-8
F1 4 11 POLY(2) VS1 VS2 (0,2.43024E-5,2.43024E-5)
*
* NOISE VOLTAGE GENERATOR
*
VN1 40 0 DC 2
DN1 40 41 DEN
CN 41 0 50E-12
DN2 41 42 DEN
VN2 0 42 DC 2
*
* INTERNAL OP AMP AND DOMINANT POLE @ 5 Hz
*
G2 4 7 11 6 1E-3
R2 7 4 1E8
C1 7 4 3.1831E-10
D1 7 12 DX
V1 8 12 DC 1.5
*
* SECONDARY POLE @ 1 MHz
*
G3 4 13 7 4 1E-6
R3 13 4 1E6
C2 13 4 1.5915E-13
*
* OUTPUT STAGE
*
ISY 8 4 3.5027E-4
FSY 8 4 V1 -1
*
G4 4 14 13 4 20E-6
R4 14 4 50E3
FSC 14 4 VSC 1
Q1 4 14 5 QP
I2 8 5 DC 100E-6
VSC 8 15 DC 0
QSC 15 8 16 QN
RSC 8 16 24.5
Q2 16 5 17 QN
VS1 19 17 DC 0
Q3 4 5 18 QP
VS2 18 19 DC 0
R5 19 2 16.667E3
R6 2 3 8.3333E3
R7 3 6 4.2827E3
R8 6 4 4.05E3
LO 19 1 1E-7
*
.MODEL QN NPN(IS=1E-15 BF=1E3)
.MODEL QP PNP(IS=1E-15 BF=1E3)
.MODEL DX D(IS=1E-15)
.MODEL DEN D(IS=1E-12 RS=4.56436E5 AF=1 KF=2.81234E-17)
.ENDS
.SUBCKT VoltageReferences_AD581 gnd _net0 _net1 _net2
X1 _net0 _net1 _net2 AD581_AD
.ENDS
</Spice>
<Symbol>
<Line 0 50 0 -20 #000080 2 1>
<Line -40 30 80 0 #000080 2 1>
<.ID -30 -86 X>
<.PortSym 0 50 2 0>
<Line -40 -30 0 60 #000080 2 1>
<Line -60 -10 20 0 #000080 2 1>
<.PortSym -60 -10 3 0>
<Line 40 -30 0 60 #000080 2 1>
<Line 40 -10 20 0 #000080 2 1>
<.PortSym 60 -10 1 180>
<Line -40 -30 80 0 #000080 2 1>
<Text 10 -20 12 #000000 0 "10V">
<Text -40 -20 12 #000000 0 " VIN">
<Text -20 10 12 #000000 0 "GND">
</Symbol>
</Component>
<Component REF191>
<Description>
2.048V precision micropower low-drop reference
</Description>
<Model>
.Def:VoltageReferences_REF191 _net0 _net1 _net2 _net3
Sub:X1 _net0 _net1 _net2 _net3 gnd Type="REF191_ckt"
.Def:End
</Model>
<Spice>* Qucs 24.1.0 VoltageReferences_REF191.sch
.SUBCKT REF191_AD 2 3 4 6
*
* 1.23V REFERENCE
*
I1 4 10 DC 5.8088E-8
R1 10 4 21.18E6 TC=1.04E-6
GLR 4 10 2 4 1.1615E-13
GLDR 4 10 22 6 2.785E-10
C1 4 10 4.7214E-13
*
* OPEN-LOOP GAIN
*
G2 4 11 10 21 1E-4
R2 4 11 1E6
*
* 3 POLES AT 2 MHZ
*
G3 4 12 11 4 1E-6
R3 4 12 1E6
C2 4 12 0.0796E-12
*
G4 4 13 12 4 1E-6
R4 4 13 1E6
C3 4 13 0.0796E-12
*
GX5 4 17 13 4 1E-6
RX5 4 17 1E6
CX3 4 17 0.0796E-12
*
* SHORT CIRCUIT LIMIT
*
G5 14 4 17 4 1E-4
R10 14 4 1E4
D1 4 14 DX
G6 15 4 4 14 100E-6
GSC 4 15 22 6 54E-6
D2 16 15 DX
V1 4 16 DC 0
D3 15 4 DX
F1 4 15 V3 100
*
* SHUTDOWN CIRCUIT
*
R12 2 3 10E6
Q2 2 3 30 QN
V2 30 31 DC 0
R11 31 4 1.97E5
F3 4 32 POLY(1) V2 5E-6 -1000
D4 32 33 DX
V3 33 4 DC 0
D5 4 32 DX
*
* OUTPUT STAGE
*
ISY 2 4 DC 14.67E-6
F2 20 4 V1 1
R5 2 20 200E3
Q1 22 20 2 QP 80
R6 6 21 56.528E3
R7 21 4 85E3
RDO 22 6 27
*
.MODEL QP PNP(IS=1E-15 BF=10000)
.MODEL QN NPN(BF=100000)
.MODEL DX D(IS=1E-15)
.ENDS
.SUBCKT VoltageReferences_REF191 gnd _net0 _net1 _net2 _net3
X1 _net0 _net1 _net2 _net3 REF191_AD
.ENDS
</Spice>
<Symbol>
<Line -60 30 120 0 #000080 2 1>
<Line -60 -30 120 0 #000080 2 1>
<Line -20 50 0 -20 #000080 2 1>
<Line -60 -30 0 60 #000080 2 1>
<Line -80 -10 20 0 #000080 2 1>
<Text -60 -20 12 #000000 0 " VIN">
<Line 60 -30 0 60 #000080 2 1>
<Line 60 -10 20 0 #000080 2 1>
<Text -40 10 12 #000000 0 "GND">
<Line 30 50 0 -20 #000080 2 1>
<Text 10 10 12 #000000 0 "SHDN">
<.PortSym -80 -10 1 0>
<.PortSym 30 50 2 0>
<.PortSym -20 50 3 0>
<.PortSym 80 -10 4 180>
<Text 20 -20 12 #000000 0 "OUT">
<.ID -50 -76 X>
</Symbol>
</Component>
<Component TL431>
<Description>
2.5V precision programmable reference
</Description>
<Model>
.Def:VoltageReferences_TL431 _net0 _net1 _net2
Sub:X1 _net0 _net1 _net2 gnd Type="TL431_cir"
.Def:End
</Model>
<Spice>* Qucs 24.1.0 VoltageReferences_TL431.sch
* TL431 Current Regulator
.subckt nTL431 CATHODE ANODE REF
Q1 N004 N003 N001 0 P
Q2 ANODE N002 N001 0 P
Q3 CATHODE N005 ANODE 0 N
R1 N002 ANODE 600k
R2 REF N002 648k
I1 CATHODE N001 5u
V1 N003 ANODE 1.2V
Q4 CATHODE N004 N005 0 N
R6 N004 ANODE 640k
.model N NPN(BF=250 Cje=.5p Cjc=.5p Rb=500)
.model P PNP(BF=120 Cje=.3p Cjc=1.5p Rb=250)
.ends TL431
.SUBCKT VoltageReferences_TL431 gnd _net0 _net1 _net2
X1 _net0 _net1 _net2 nTL431
.ENDS
</Spice>
<Symbol>
<Line 80 0 0 90 #000080 2 1>
<Line 40 50 10 0 #000080 2 1>
<.PortSym 80 0 1 0>
<.PortSym 80 90 2 0>
<.PortSym 40 50 3 0>
<Line 100 60 -20 -30 #00007f 2 1>
<Line 80 30 -20 30 #00007f 2 1>
<Line 60 60 40 0 #00007f 2 1>
<Line 60 30 40 0 #00007f 2 1>
<Rectangle 50 20 60 50 #00007f 2 1 #c0c0c0 1 0>
<Line 60 40 0 -10 #00007f 2 1>
<.ID 120 24 X>
</Symbol>
</Component>
<Component LM334>
<Description>
Adjustable Current Source
By Helmut Sennewald
</Description>
<Model>
.Def:VoltageReferences_LM334 _net0 _net1 _net2
Sub:X1 _net0 _net1 _net2 gnd Type="LM334_cir"
.Def:End
</Model>
<ModelIncludes "LM334.cir.lst">
<Spice>* Qucs 24.1.0 VoltageReferences_LM334.sch
* LM334 Adjustable Current Source
*
* Helmut Sennewald
*
* Pin order: v+ v- R
.SUBCKT LM334 v+ v- R
Q4 N002 N001 v+ 0 pnp1
Q5 N003 N001 v+ 0 pnp1
Q6 R N001 v+ 0 pnp1 16
Q1 N003 N003 R 0 npn1 12
Q2 N002 N003 N004 0 npn1
Q3 N001 N002 R 0 npn1
C1 N002 N004 50p
R2 N004 v- 1?
R8 v+ v- 1G
C2 v+ v- 10p
C3 N003 v- 1p
C4 R v- 1p
.model npn1 NPN(Is=1e-15 BF=200 TF=1e-9 Cjc=0.5e-12 Cje=1e-12 VAF=100 Rb=100 Re=5)
.model pnp1 PNP(Is=1e-15 BF=100 TF=1e-7 Cjc=0.5e-12 Cje=1e-12 VAF=100 Rb=100 Re=5)
.ENDS
.SUBCKT VoltageReferences_LM334 gnd _net0 _net1 _net2
X1 _net0 _net1 _net2 LM334
.ENDS
</Spice>
<Symbol>
<Line 0 15 0 15 #000080 2 1>
<Ellipse -10 -15 20 20 #000080 3 1 #c0c0c0 1 0>
<Ellipse -10 -5 20 20 #000080 3 1 #c0c0c0 1 0>
<Line 9 0 21 0 #000080 2 1>
<Line 0 -30 0 15 #000080 2 1>
<.PortSym 0 30 2 0>
<.PortSym 30 0 3 180>
<.PortSym 0 -30 1 0>
<.ID 20 -36 REF>
<Line -8 22 4 0 #000000 2 1>
<Line -8 -20 4 0 #ff0000 2 1>
<Line -6 -18 0 -4 #ff0000 2 1>
</Symbol>
</Component>
<Component LM4041_1>
<Description>
1.225 Volt Voltage Reference
</Description>
<Model>
.Def:VoltageReferences_LM4041_1_2 _net0 _net1
Sub:X1 _net0 _net1 gnd Type="LM4041_1_2_cir"
.Def:End
</Model>
<ModelIncludes "LM4041_1.2.cir.lst">
<Spice>* Qucs 24.1.0 VoltageReferences_LM4041_1.2.sch
* LM4041_1.2 1.225 Volt Voltage Reference
*
.SUBCKT LM4041_NB1P2 V+ V- PARAMS: TOL=1
C_Cstart V- START 1nF
Q_Q22 N03098 N01931 V- NPN1X
Q_Q7 N02184 VC_Q2 N01786 NPN1X
Q_Q12 N02229 N03098 N04190 NPN1X
Q_Q13 N04160 N04160 N04190 NPN1X 10
Q_Q3 VC_Q3 VB_Q3 VE NPN1X 10
Q_Q5 VC_Q3 N01129 N01136 PNPL1X 1.8
Q_Q6 N01129 N01129 N01136 PNPL1X 1.8
C_C3 N03098 N01136 3pF
Q_Q23 N01136 N01136 N08107 NPN1X
R_R10 N01129 N01786 60K
Q_Q15 N04160 N02229 N01136 PNPL1X 10
R_R1toR5 N07686 N01136 30.5K
R_R15 N01931 Q20B 66K
Q_Q14 N02229 N02229 N01136 PNPL1X 1
Q_Q20 N01533 Q20B V- NPN1X
R_R6 VB_Q2 N07686 20K
C_Cx V- N01136 10pF
C_C2 VC_Q3 N02514 6pF
E_Estart N30465 V- VALUE { max(0.4*(1-V(VB_Q2, VB_Q3)/.05), 0)+V(Q20B) }
Q_Q1 V- FB_TEMP Q1E PNPV1X 5
Q_Q17 N01533 FB_TEMP Q1E PNPL1X 1
R_Rx6 V+ N01136 1000
Q_Q19 Q20B VE N08426 PNPL1X 1
R_R8 Q1E VB_Q3 45K
Q_Q16 N01136 N04160 V- NPN1X 10
Q_Q4 VC_Q2 N01129 N01136 PNPL1X 1.8
R_R13 Q20B N01533 40K
R_Rstart0 START N30465 1
R_R11 N02514 N02184 100K
R_R14 N01755 V- 3.3K
Q_Q11 N03098 N02514 N01136 PNPL1X 1.8
Q_Q21 N01786 Q20B N01755 NPN1X 6.75
Q_Q24 N01136 N07686 N08116 NPN1X
Q_Q8 N02514 VC_Q3 N01786 NPN1X
Q_Q2 VC_Q2 VB_Q2 VE NPN1X
Q_Q10 N02514 N02184 N01136 PNPL1X 3.1
Q_Q9 N02184 N02184 N01136 PNPL1X 3.1
R_R18 Q1E N08116 69K
R_R59 N01136 N08426 51K
R_R12 N01505 V- 6K
L_Lx1 N01136 V+ 10uH
R_R16 N04190 V- 1K
Q_Q18 VE Q20B N01505 NPN1X
R_Rstart1 Q20B START 20K
R_R17 N08116 N08107 130K
R_R7 VB_Q3 VB_Q2 10K
C_C1 VC_Q2 N03098 3pF
R_R19 V+ FB_TEMP {({TOL}>0?225K:670K)}
R_R20 FB_TEMP V- 1k
*
.model Menable NMOS LEVEL 1 VTO=0 KP=20E-06 PHI=0.6 IS=10E-15 PB=0.8 PBSW=0.8 UCRIT=10E+03 DIOMOD=1 VDD=5 XPART=0
*
.model NPN1X NPN Is=13.84e-18 Bf=130 TR=8ns
*+ ne=3 CJE=.2pF CJC=4pF TF=8ns Bf=40
*
.model PNPV1X PNP Is=261.8e-18 Bf=222
*
.model PNPL1X PNP Is=48e-18 Bf=63
*+ CJE=1pF
*
.model Dideal D Is=0.001p N=0.01 Rs=0 Ikf=0 Xti=2 Eg=1.11 Cjo=0 M=0.33 Vj=1 Fc=0.5 Isr=0.1n Nr=2 Bv=75 Ibv=1e-10 Tt=0
*
.ENDS
.SUBCKT VoltageReferences_LM4041_1 gnd _net0 _net1
X1 _net0 _net1 LM4041_NB1P2
.ENDS
</Spice>
<Symbol>
<Line 9 -6 -18 0 #000080 2 1>
<Line 9 6 -18 0 #000080 2 1>
<Line 0 -20 0 14 #000080 2 1>
<Line 0 6 0 14 #000080 2 1>
<Line -9 -6 -3 6 #000080 2 1>
<Line 9 -6 3 -6 #000080 2 1>
<Line 0 -6 -9 12 #000080 2 1>
<Line 0 -6 9 12 #000080 2 1>
<.PortSym 0 20 2 0>
<.PortSym 0 -20 1 0>
<.ID 20 -26 REF>
</Symbol>
</Component>
<Component LM4041_ADJ>
<Description>
Adjustable Voltage Reference
</Description>
<Model>
.Def:VoltageReferences_LM4041_ADJ _net0 _net1 _net2
Sub:X1 _net0 _net1 _net2 gnd Type="LM4041_ADJ_cir"
.Def:End
</Model>
<ModelIncludes "LM4041_ADJ.cir.lst">
<Spice>* Qucs 24.1.0 VoltageReferences_LM4041_ADJ.sch
* LM4041_ADJ Adjustable Voltage Reference
*
.SUBCKT LM4041_ADJ_sub FB V+ V- PARAMS: TOL=1
C_Cstart V- START 60nF
Q_Q22 N03098 N01931 V- NPN1X
Q_Q7 N02184 VC_Q2 N01786 NPN1X
Q_Q12 N02229 N03098 N04190 NPN1X
Q_Q13 N04160 N04160 N04190 NPN1X 10
Q_Q3 VC_Q3 VB_Q3 VE NPN1X 10
Q_Q5 VC_Q3 N01129 N01136 PNPL1X 1.8
Q_Q6 N01129 N01129 N01136 PNPL1X 1.8
C_C3 N03098 N01136 3pF
Q_Q23 N01136 N01136 N08107 NPN1X
R_R10 N01129 N01786 60K
Q_Q15 N04160 N02229 N01136 PNPL1X 10
R_R1toR5 N07686 N01136 30.5K
R_R15 N01931 Q20B 66K
Q_Q14 N02229 N02229 N01136 PNPL1X 1
Q_Q20 N01533 Q20B V- NPN1X
R_R6 VB_Q2 N07686 20K
C_Cx V- N01136 150pF
C_C2 VC_Q3 N02514 6pF
E_Estart N30465 V- VALUE { max(0.4*(1-V(VB_Q2, VB_Q3)/.05), 0)+V(Q20B) }
Q_Q1 V- FB Q1E PNPV1X 5
Q_Q17 N01533 FB Q1E PNPL1X 1
R_Rx6 V+ N01136 40
Q_Q19 Q20B VE N08426 PNPL1X 1
R_R8 Q1E VB_Q3 45K
Q_Q16 N01136 N04160 V- NPN1X 10
Q_Q4 VC_Q2 N01129 N01136 PNPL1X 1.8
R_R13 Q20B N01533 40K
R_Rstart0 START N30465 100
R_R11 N02514 N02184 100K
R_R14 N01755 V- {({TOL}>0?7K:4.95K)}
Q_Q11 N03098 N02514 N01136 PNPL1X 1.8
Q_Q21 N01786 Q20B N01755 NPN1X 6.75
Q_Q24 N01136 N07686 N08116 NPN1X
Q_Q8 N02514 VC_Q3 N01786 NPN1X
Q_Q2 VC_Q2 VB_Q2 VE NPN1X
Q_Q10 N02514 N02184 N01136 PNPL1X 3.1
Q_Q9 N02184 N02184 N01136 PNPL1X 3.1
R_R18 Q1E N08116 138K
R_R59 N01136 N08426 51K
R_R12 N01505 V- 6K
L_Lx1 N01136 V+ 10uH
R_R16 N04190 V- 1K
Q_Q18 VE Q20B N01505 NPN1X
R_Rstart1 Q20B START 20K
R_R17 N08116 N08107 260K
R_R7 VB_Q3 VB_Q2 10K
C_C1 VC_Q2 N03098 3pF
*
.model Menable NMOS LEVEL 1 VTO=0 KP=20E-06 PHI=0.6 IS=10E-15 PB=0.8 PBSW=0.8 UCRIT=10E+03 DIOMOD=1 VDD=5 XPART=0
*
.model NPN1X NPN Is=13.84e-18 Bf=130 TR=8ns
*+ ne=3 CJE=.2pF CJC=4pF TF=8ns Bf=40
*
.model PNPV1X PNP Is=261.8e-18 Bf=222
*
.model PNPL1X PNP Is=48e-18 Bf=63
*+ CJE=1pF
*
.model Dideal D Is=0.001p N=0.01 Rs=0 Ikf=0 Xti=2 Eg=1.11 Cjo=0 M=0.33 Vj=1 Fc=0.5 Isr=0.1n Nr=2 Bv=75 Ibv=1e-10 Tt=0
*
.ENDS LM4041_ADJ_sub
*
.SUBCKT VoltageReferences_LM4041_ADJ gnd _net0 _net1 _net2
X1 _net0 _net1 _net2 LM4041_ADJ_sub
.ENDS
</Spice>
<Symbol>
<Line 9 -6 -18 0 #000080 2 1>
<Line 9 6 -18 0 #000080 2 1>
<Line 0 -20 0 14 #000080 2 1>
<Line 0 6 0 14 #000080 2 1>
<Line -9 -6 -3 6 #000080 2 1>
<Line 9 -6 3 -6 #000080 2 1>
<Line 0 -6 -9 12 #000080 2 1>
<Line 0 -6 9 12 #000080 2 1>
<Line 5 0 15 0 #000080 2 1>
<.PortSym 0 -20 2 0>
<.PortSym 20 0 1 180>
<.PortSym 0 20 3 0>
<.ID 10 -46 REF>
</Symbol>
</Component>