-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCrystals.lib
498 lines (471 loc) · 10.8 KB
/
Crystals.lib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
<Qucs Library 24.4.1 "Crystals">
<Component XTAL>
<Description>
10 MHZ Quartz Crystal with Parameters
Lm Motional Inductnce
Cm Motional Capacitance
Rs Series Resistance
C0 Parallel Capacitance
R0 Simulator Shunt Resistance
</Description>
<Model>
.Def:Crystals_XTAL _net0 _net1 Lm="2.54647909m" Cm="99.4718394f" Rs="6.4" C0="24.8679599p" R0="50MEG"
C:Cm _net0 _net2 C="Cm" V=""
L:Lm _net2 _net3 L="Lm" I=""
C:C0 _net0 _net1 C="C0" V=""
R:Rs _net3 _net1 R="Rs" Temp="26.85" Tc1="0.0" Tc2="0.0" Tnom="26.85"
R:R0 _net0 _net1 R="R0" Temp="26.85" Tc1="0.0" Tc2="0.0" Tnom="26.85"
.Def:End
</Model>
<Spice>
.SUBCKT Crystals_XTAL gnd _net0 _net1 Lm=2.54647909m Cm=99.4718394f Rs=6.4 C0=24.8679599p R0=50MEG
Cm _net0 _net2 {CM}
Lm _net2 _net3 {LM}
C0 _net0 _net1 {C0}
Rs _net3 _net1 {RS} tc1=0.0 tc2=0.0
R0 _net0 _net1 {R0} tc1=0.0 tc2=0.0
.ENDS
</Spice>
<Symbol>
<Line 10 0 30 0 #000080 2 1>
<.PortSym -40 0 1 0 P1>
<.PortSym 40 0 2 180 P2>
<Line 10 -20 0 40 #000080 2 1>
<Line -40 0 30 0 #000080 2 1>
<Line -10 -20 0 40 #000080 2 1>
<Rectangle -5 -30 10 60 #000080 0 1 #c0c0c0 1 0>
<.ID -40 34 Y "1=Lm=2.54647909m=Crystal Motional Inductance=" "1=Cm=99.4718394f=Crystal Motional Capacitance=" "1=Rs=6.4=Crystal Series Resistance=" "1=C0=24.8679599p=Crystal Parallel Capacitance=" "1=R0=50MEG=Simulator Shunt Resistance=">
</Symbol>
</Component>
<Component 32768>
<Description>
32.768 KHz Tuning Fork Quartz Crystal
</Description>
<Model>
.Def:Crystals_32768 _net0 _net1
Sub:X1 _net0 _net1 gnd Type="n32768_cir"
.Def:End
</Model>
<ModelIncludes "32768.cir.lst">
<Spice>
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* 32.768 KHz Tuning Fork Quartz Crystal
.subckt QZ32768 1 2
*
lm 1 11 4448.72259
cm 11 12 5.3027978f
rs 12 2 11200
c0 1 2 1.84pf
.ends
*
.SUBCKT Crystals_32768 gnd _net0 _net1
X1 _net0 _net1 QZ32768
.ENDS
</Spice>
<Symbol>
<Line 10 0 30 0 #000080 2 1>
<Line 10 -20 0 40 #000080 2 1>
<Line -40 0 30 0 #000080 2 1>
<Line -10 -20 0 40 #000080 2 1>
<Rectangle -5 -30 10 60 #000080 0 1 #c0c0c0 1 0>
<.PortSym -40 0 1 0 P1>
<.PortSym 40 0 2 180 P2>
<.ID 20 14 Y>
</Symbol>
</Component>
<Component 100K>
<Description>
100 KHZ Tuning Fork Quartz Crystal
</Description>
<Model>
.Def:Crystals_100K _net0 _net1
Sub:X1 _net0 _net1 gnd Type="n100K_cir"
.Def:End
</Model>
<ModelIncludes "100K.cir.lst">
<Spice>
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* 100.000 KHz Tuning Fork Quartz Crystal
.subckt QZ100K 1 2
*
lm 1 11 1101.32
cm 11 12 2.3f
rs 12 2 50k
c0 1 2 1.35p
.ends
*
.SUBCKT Crystals_100K gnd _net0 _net1
X1 _net0 _net1 QZ100K
.ENDS
</Spice>
<Symbol>
<Line 10 0 30 0 #000080 2 1>
<Line 10 -20 0 40 #000080 2 1>
<Line -40 0 30 0 #000080 2 1>
<Line -10 -20 0 40 #000080 2 1>
<Rectangle -5 -30 10 60 #000080 0 1 #c0c0c0 1 0>
<.PortSym -40 0 1 0 P1>
<.PortSym 40 0 2 180 P2>
<.ID 20 14 Y>
</Symbol>
</Component>
<Component 1M>
<Description>
1.000 MHz Quartz Crystal
</Description>
<Model>
.Def:Crystals_1M _net0 _net1
Sub:X1 _net0 _net1 gnd Type="n1M_cir"
.Def:End
</Model>
<ModelIncludes "1M.cir.lst">
<Spice>
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* 1.000 MHz Quartz Crystal
.subckt QZ1M 1 2
*
lm 1 11 2.54647909
cm 11 12 9.95357648f
rs 12 2 640
c0 1 2 2.48839412p
.ends
*
.SUBCKT Crystals_1M gnd _net0 _net1
X1 _net0 _net1 QZ1M
.ENDS
</Spice>
<Symbol>
<Line 10 0 30 0 #000080 2 1>
<Line 10 -20 0 40 #000080 2 1>
<Line -40 0 30 0 #000080 2 1>
<Line -10 -20 0 40 #000080 2 1>
<Rectangle -5 -30 10 60 #000080 0 1 #c0c0c0 1 0>
<.PortSym -40 0 1 0 P1>
<.PortSym 40 0 2 180 P2>
<.ID 20 14 Y>
</Symbol>
</Component>
<Component 3_58M>
<Description>
3.579545MHz Quartz Crystal
</Description>
<Model>
.Def:Crystals_3_58M _net0 _net1
Sub:X1 _net0 _net1 gnd Type="n3_58M_cir"
.Def:End
</Model>
<ModelIncludes "3_58M.cir.lst">
<Spice>
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* 3.579545MHz Quartz Crystal
.subckt QZ358 1 2
*
lm 1 11 0.0555779237
cm 11 12 35.6169600f
rs 12 2 50
c0 1 2 8.9p
.ends
*
.SUBCKT Crystals_3_58M gnd _net0 _net1
X1 _net0 _net1 QZ358
.ENDS
</Spice>
<Symbol>
<Line 10 0 30 0 #000080 2 1>
<Line 10 -20 0 40 #000080 2 1>
<Line -40 0 30 0 #000080 2 1>
<Line -10 -20 0 40 #000080 2 1>
<Rectangle -5 -30 10 60 #000080 0 1 #c0c0c0 1 0>
<.PortSym -40 0 1 0 P1>
<.PortSym 40 0 2 180 P2>
<.ID 20 14 Y>
</Symbol>
</Component>
<Component 4M>
<Description>
4.000 MHz Quartz Crystal
</Description>
<Model>
.Def:Crystals_4M _net0 _net1
Sub:X1 _net0 _net1 gnd Type="n4M_cir"
.Def:End
</Model>
<ModelIncludes "4M.cir.lst">
<Spice>
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* 4.000 MHz Quartz Crystal
.subckt QZ4M 1 2
*
lm 1 11 165m
cm 11 12 0.009616p
rs 12 2 30.3
c0 1 2 3.10p
.ends
*
.SUBCKT Crystals_4M gnd _net0 _net1
X1 _net0 _net1 QZ4M
.ENDS
</Spice>
<Symbol>
<Line 10 0 30 0 #000080 2 1>
<Line 10 -20 0 40 #000080 2 1>
<Line -40 0 30 0 #000080 2 1>
<Line -10 -20 0 40 #000080 2 1>
<Rectangle -5 -30 10 60 #000080 0 1 #c0c0c0 1 0>
<.PortSym -40 0 1 0 P1>
<.PortSym 40 0 2 180 P2>
<.ID 20 14 Y>
</Symbol>
</Component>
<Component 4_92M>
<Description>
4.9152 MHz Quartz Crystal
</Description>
<Model>
.Def:Crystals_4_92M _net0 _net1
Sub:X1 _net0 _net1 gnd Type="n4_92M_cir"
.Def:End
</Model>
<ModelIncludes "4_92M.cir.lst">
<Spice>
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* 4.9152 MHz Quartz Crystal
.subckt QZ49152 1 2
*
lm 1 11 73m
cm 11 12 0.0144p
rs 12 2 14.3
c0 1 2 3.57p
.ends
*
.SUBCKT Crystals_4_92M gnd _net0 _net1
X1 _net0 _net1 QZ49152
.ENDS
</Spice>
<Symbol>
<Line 10 0 30 0 #000080 2 1>
<Line 10 -20 0 40 #000080 2 1>
<Line -40 0 30 0 #000080 2 1>
<Line -10 -20 0 40 #000080 2 1>
<Rectangle -5 -30 10 60 #000080 0 1 #c0c0c0 1 0>
<.PortSym -40 0 1 0 P1>
<.PortSym 40 0 2 180 P2>
<.ID 20 14 Y>
</Symbol>
</Component>
<Component 8M>
<Description>
8.000 MHz Quartz Crystal
</Description>
<Model>
.Def:Crystals_8M _net0 _net1
Sub:X1 _net0 _net1 gnd Type="n8M_cir"
.Def:End
</Model>
<ModelIncludes "8M.cir.lst">
<Spice>
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* 8.000 MHz Quartz Crystal
.subckt QZ8M 1 2
*
lm 1 11 23.5m
cm 11 12 0.01685p
rs 12 2 10.1
c0 1 2 3.63p
.ends
*
.SUBCKT Crystals_8M gnd _net0 _net1
X1 _net0 _net1 QZ8M
.ENDS
</Spice>
<Symbol>
<Line 10 0 30 0 #000080 2 1>
<Line 10 -20 0 40 #000080 2 1>
<Line -40 0 30 0 #000080 2 1>
<Line -10 -20 0 40 #000080 2 1>
<Rectangle -5 -30 10 60 #000080 0 1 #c0c0c0 1 0>
<.PortSym -40 0 1 0 P1>
<.PortSym 40 0 2 180 P2>
<.ID 20 14 Y>
</Symbol>
</Component>
<Component 10M>
<Description>
10.000 MHz Quartz Crystal
</Description>
<Model>
.Def:Crystals_10M _net0 _net1
Sub:X1 _net0 _net1 gnd Type="n10M_cir"
.Def:End
</Model>
<ModelIncludes "10M.cir.lst">
<Spice>
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* 10.000 MHz Quartz Crystal
.subckt QZ10M 1 2
*
lm 1 11 2.54647909m
cm 11 12 99.4718394f
rs 12 2 6.4
c0 1 2 24.8679599p
.ends
*
.SUBCKT Crystals_10M gnd _net0 _net1
X1 _net0 _net1 QZ10M
.ENDS
</Spice>
<Symbol>
<Line 10 0 30 0 #000080 2 1>
<Line 10 -20 0 40 #000080 2 1>
<Line -40 0 30 0 #000080 2 1>
<Line -10 -20 0 40 #000080 2 1>
<Rectangle -5 -30 10 60 #000080 0 1 #c0c0c0 1 0>
<.PortSym -40 0 1 0 P1>
<.PortSym 40 0 2 180 P2>
<.ID 20 14 Y>
</Symbol>
</Component>
<Component 12M>
<Description>
12.000 MHz Quartz Crystal
</Description>
<Model>
.Def:Crystals_12M _net0 _net1
Sub:X1 _net0 _net1 gnd Type="n12M_cir"
.Def:End
</Model>
<ModelIncludes "12M.cir.lst">
<Spice>
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* 12.000 MHz Quartz Crystal
.subckt QZ12M 1 2
*
lm 1 11 12.4m
cm 11 12 0.01422p
rs 12 2 8.5
c0 1 2 4.68p
.ends
*
.SUBCKT Crystals_12M gnd _net0 _net1
X1 _net0 _net1 QZ12M
.ENDS
</Spice>
<Symbol>
<Line 10 0 30 0 #000080 2 1>
<Line 10 -20 0 40 #000080 2 1>
<Line -40 0 30 0 #000080 2 1>
<Line -10 -20 0 40 #000080 2 1>
<Rectangle -5 -30 10 60 #000080 0 1 #c0c0c0 1 0>
<.PortSym -40 0 1 0 P1>
<.PortSym 40 0 2 180 P2>
<.ID 20 14 Y>
</Symbol>
</Component>
<Component 16M>
<Description>
16.000 MHz Quartz Crystal
</Description>
<Model>
.Def:Crystals_16M _net0 _net1
Sub:X1 _net0 _net1 gnd Type="n16M_cir"
.Def:End
</Model>
<ModelIncludes "16M.cir.lst">
<Spice>
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* 16.000 MHz Quartz Crystal
.subckt QZ16M 1 2
*
lm 1 11 55.51m
cm 11 12 0.00178p
rs 12 2 20.6
c0 1 2 0.87p
.ends
*
.SUBCKT Crystals_16M gnd _net0 _net1
X1 _net0 _net1 QZ16M
.ENDS
</Spice>
<Symbol>
<Line 10 0 30 0 #000080 2 1>
<Line 10 -20 0 40 #000080 2 1>
<Line -40 0 30 0 #000080 2 1>
<Line -10 -20 0 40 #000080 2 1>
<Rectangle -5 -30 10 60 #000080 0 1 #c0c0c0 1 0>
<.PortSym -40 0 1 0 P1>
<.PortSym 40 0 2 180 P2>
<.ID 20 14 Y>
</Symbol>
</Component>
<Component 24M>
<Description>
24.000 MHz Quartz Crystal
</Description>
<Model>
.Def:Crystals_24M _net0 _net1
Sub:X1 _net0 _net1 gnd Type="n24M_cir"
.Def:End
</Model>
<ModelIncludes "24M.cir.lst">
<Spice>
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*
.subckt QZ24M 1 2
*
lm 1 11 13.96m
cm 11 12 0.00315p
rs 12 2 8.23
c0 1 2 1.06p
.ends
*
.SUBCKT Crystals_24M gnd _net0 _net1
X1 _net0 _net1 QZ24M
.ENDS
</Spice>
<Symbol>
<Line 10 0 30 0 #000080 2 1>
<Line 10 -20 0 40 #000080 2 1>
<Line -40 0 30 0 #000080 2 1>
<Line -10 -20 0 40 #000080 2 1>
<Rectangle -5 -30 10 60 #000080 0 1 #c0c0c0 1 0>
<.PortSym -40 0 1 0 P1>
<.PortSym 40 0 2 180 P2>
<.ID 20 14 Y>
</Symbol>
</Component>
<Component 40M>
<Description>
40.000 MHz Quartz Crystal
</Description>
<Model>
.Def:Crystals_40M _net0 _net1
Sub:X1 _net0 _net1 gnd Type="n40M_cir"
.Def:End
</Model>
<ModelIncludes "40M.cir.lst">
<Spice>
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* 40.000 MHz Quartz Crystal
.subckt QZ40M 1 2
*
lm 1 11 3.06m
cm 11 12 0.00517p
rs 12 2 6.37
c0 1 2 1.59p
.ends
*
.SUBCKT Crystals_40M gnd _net0 _net1
X1 _net0 _net1 QZ40M
.ENDS
</Spice>
<Symbol>
<Line 10 0 30 0 #000080 2 1>
<Line 10 -20 0 40 #000080 2 1>
<Line -40 0 30 0 #000080 2 1>
<Line -10 -20 0 40 #000080 2 1>
<Rectangle -5 -30 10 60 #000080 0 1 #c0c0c0 1 0>
<.PortSym -40 0 1 0 P1>
<.PortSym 40 0 2 180 P2>
<.ID 20 14 Y>
</Symbol>
</Component>