Root/modules/ir.fpd

Source at commit d37268a6ba7dd08f54960a03ca755dc943e3636c created 7 years 1 month ago.
By Werner Almesberger, modules/: add PAD_S_120x120; correct classification of PAD_S_150x150
1/* MACHINE-GENERATED ! */
2
3frame pin {
4    __0: vec @(hole/2, hole/2)
5    __1: vec @(-hole/2, -hole/2)
6    hole . __0
7    __2: vec @(-ratio*hole/2, ratio*hole/2)
8    __3: vec @(ratio*hole/2, -ratio*hole/2)
9    rpad "$n" __2 . bare
10}
11
12frame pin_hole {
13    set n = i+1
14
15    frame pin @
16}
17
18frame pins {
19    loop i = 0, N-1
20
21    __0: vec @(pitch*(i-(N-1)/2), 0mm)
22    __2: vec .(0mm, -(rear+thick/2))
23    frame pin_hole .
24}
25
26frame outline {
27    set w = 5mil
28
29    __0: vec @(L/2-pin_width/2, 0mm)
30    line @ . w
31    __2: vec .(0.35mm, 0mm)
32    __1: vec @(-(L/2-pin_width/2), 0mm)
33    line @ . w
34    __3: vec .(-0.35mm, 0mm)
35    __4: vec @(-L/2, -(rear+thick))
36    __5: vec @(L/2, -(rear+thick))
37    __6: vec @(L/2-pin_width/2, -front)
38    __10: vec .(0.3mm, 1.5mm)
39    line . __6 w
40    __7: vec @(-(L/2-pin_width/2), -front)
41    __11: vec .(-0.3mm, 1.5mm)
42    line . __7 w
43    __8: vec @(0mm, -surface)
44    __9: vec @(0mm, -3mm)
45    __12: vec __0(0.2mm, -0.5mm)
46    line . __0 w
47    __13: vec __1(-0.2mm, -0.5mm)
48    line . __1 w
49    __14: vec __6(-0.29mm, 0mm)
50    line __6 . w
51    __15: vec __7(0.29mm, 0mm)
52    arc __9 . __14 w
53    line __7 . w
54    line __14 . w
55}
56
57package "TSOP348"
58unit auto
59
60table
61    { N, L, front, rear, surface, thick, pin_width }
62    { 3, 6mm, 4.1mm, 1.3mm, 5.6mm, 0.5mm, 0.7mm }
63
64set hole = 0.8mm
65
66set pitch = 100mil
67
68set ratio = 2
69
70frame outline @
71frame pins @
72meas outline.__3 >> outline.__2 1mm
73meas pins.__2 -> pins.__2 2mm
74measy outline.__0 << pins.__2 -1mm
75measy outline.__0 >> outline.__6 1.5mm
76measy outline.__0 >> outline.__8 2mm
77measy pin.__1 -> pin.__0 1mm
78measy pin.__3 -> pin.__2 3mm
79measx outline.__9 >> pins.__2 -0.5mm
80

Archive Download this file

Branches:
master



interactive