LTSpice model LM7805

OP #1965003
Lesenswert?

hat keiner eine Idee?

Ich hab jetzt mal das hier gefunden:
1
..SUBCKT x_LM78XX Input Output Ground PARAMS:
2
+ Av_feedback=1665, R1_Value=1020
3
*
4
* SERIES 3-TERMINAL POSITIVE REGULATOR
5
*
6
* Note: This regulator is based on the LM78XX series of
7
* regulators (also the LM140 and LM340). The model
8
* will cause some current to flow to Node 0 which
9
* is not part of the actual voltage regulator circuit.
10
*
11
* Band-gap voltage source:
12
*
13
* The source is off when Vin<3V and fully on when Vin>3.7V.
14
* Line regulation and ripple rejection) are set with
15
* Rreg= 0.5 * dVin/dVbg. The temperature dependence of this
16
* circuit is a quadratic fit to the following points:
17
*
18
* T Vbg(T)/Vbg(nom)
19
* --- ---------------
20
* 0 .999
21
* 37.5 1
22
* 125 .990
23
*
24
* The temperature coefficient of Rbg is set to 2 * the band gap
25
* temperature coefficient. Tnom is assumed to be 27 deg. C and
26
* Vnom is 3.7V
27
*
28
Vbg 100 0 DC 7.4V
29
Sbg (100,101),(Input,Ground) Sbg1
30
Rbg 101 0 1 TC=1.612E-5,-2.255E-6
31
Ebg (102,0),(Input,Ground) 1
32
Rreg 102 101 7k
33
..MODEL Sbg1 VSWITCH (Ron=1 Roff=1MEG Von=3.7 Voff=3)
34
*
35
* Feedback stage
36
*
37
* Diodes D1,D2 limit the excursion of the amplifier
38
* outputs to being near the rails. Rfb, Cfb Set the
39
* corner frequency for roll-off of ripple rejection.
40

41
*
42
* The opamp gain is given by: Av = (Fores/Freg) * (Vout/Vbg)
43
* where Fores = output impedance corner frequency
44
* with Cl=0 (typical value about 1MHz)
45
* Freg = corner frequency in ripple rejection
46
* (typical value about 600 Hz)
47
* Vout = regulator output voltage (5,12,15V)
48
* Vbg = bandgap voltage (3.7V)
49
*
50
* Note: Av is constant for all output voltages, but the
51
* feedback factor changes. If Av=2250, then the
52
* Av*Feedback factor is as given below:
53
*
54
* Vout Av*Feedback factor
55
* ---- ------------------
56
* 5 1665
57
* 12 694
58
* 15 550
59
*
60
Rfb 9 8 1MEG
61
Cfb 8 Ground 265PF
62
Eopamp 105 0 VALUE={2250*v(101,0)+Av_feedback*v(Ground,8)}
63
Vgainf 200 0 {Av_feedback}
64
Rgainf 200 0 1
65
*Eopamp 105 0 POLY(3),(101,0),(Ground,8),(200,0) 0 2250 0 0 0 0 0 0 1
66
Ro 105 106 1k
67
D1 106 108 Dlim
68
D2 107 106 Dlim
69
..MODEL Dlim D (Vj=0.7)
70
Vl1 102 108 DC 1
71
Vl2 107 0 DC 1
72
*
73
* Quiescent current modelling
74
*
75
* Quiescent current is set by Gq, which draws a current
76
* proportional to the voltage drop across the regulator and
77
* R1 (temperature coefficient .1%/deg C). R1 must change
78
* with output voltage as follows: R1 = R1(5v) * Vout/5v.
79
*
80
Gq (Input,Ground),(Input,9) 2.0E-5
81
R1 9 Ground {R1_Value} TC=0.001
82
*
83
* Output Stage
84
*
85
* Rout is used to set both the low frequency output impedence
86
* and the load regulation.
87
*
88
Q1 Input 5 6 Npn1
89
Q2 Input 6 7 Npn1 10
90
..MODEL Npn1 NPN (Bf=50 Is=1E-14)
91
* Efb Input 4 VALUE={v(Input,Ground)+v(0,106)}
92
Efb Input 4 POLY(2),(Input,Ground),(0,106) 0 1 1
93
Rb 4 5 1k TC=0.003
94
Re 6 7 2k
95
Rsc 7 9 0.275 TC=1.136E-3,-7.806E-6
96
Rout 9 Output 0.008
97
*
98
* Current Limit
99
*
100
Rbcl 7 55 290
101
Qcl 5 55 9 Npn1
102
Rcldz 56 55 10k
103
Dz1 56 Input Dz
104
..MODEL Dz D (Is=0.05p Rs=3 Bv=7.11 Ibv=0.05u)
105
..ENDS
106
*$

und versuche daraus mir jetzt was zu pasteln, aber iwie komme ich nicht 
wirklich vorran.
Gast #1965048
Lesenswert?

Wenn Du die Doppelpunkte vor den Spice-Befehlen durch einfache ersetzt 
(".MODEL" etc), dann klappt das auch.

Wie man so ein Modell einbindet steht im FAQ-Teil der Onlinehilfe von 
LTspice. Wichtig ist, im Schaltzeichen (*.asy) müssen die Pins in der 
gleichen Reihenfolge definiert sein wie im Modell. Die Namen zählen 
nicht, sondern die Reihenfolge!



Patrick
#6601270
Lesenswert?

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren