Root/modules/tswa.fpd

Source at commit 83fc1ab657c62255bc9e3ffac88d0f160f4a71ba created 6 years 8 months ago.
By Werner Almesberger, modules/qfn.fpd (QFN32-CC2543): experimental footprint with large center hole (for DIY)
1/* MACHINE-GENERATED ! */
2
3frame holes {
4    set xi = 9mm
5
6    set d = 1.6mm
7
8    loop i = 0, 1
9
10    __0: vec @(xi*(i-0.5), 0mm)
11    __1: vec .(d/2, d/2)
12    __2: vec __0(-d/2, -d/2)
13    hole . __1
14}
15
16frame pins {
17    table
18        { pin, x, y }
19        { "NO", 0mm, y2-y1 }
20        { "A", -xo/2, 0mm }
21        { "B", 0mm, -y1 }
22        { "COM", xo/2, 0mm }
23
24    table
25        { xo, y1, y2 }
26        { 18.52mm, xo/2, 10.83mm }
27
28    set d = 1.3mm
29
30    set aspect = 2
31
32    __0: vec @(x, y)
33    __1: vec .(d/2, d/2)
34    __2: vec __0(-d/2, -d/2)
35    hole . __1
36    __3: vec __0(d/2*aspect, -d/2*aspect)
37    __4: vec __0(-d/2*aspect, d/2*aspect)
38    rpad "$pin" __3 .
39}
40
41frame outline {
42    set w = 5mil
43
44    __0: vec @(0mm, d/2)
45    circ @ . w
46    __1: vec @(0mm, -d/2)
47}
48
49package "TSWA-${d}"
50unit mm
51
52set d = 22mm
53
54frame pins @
55frame outline @
56frame holes @
57measx pins.__0 >> pins.__0 5mm
58measx holes.__0 >> holes.__0 4mm
59measx holes.__2 -> holes.__1 -1mm
60measx pins.__2 -> pins.__1 -1.5mm
61measy pins.__0 >> pins.__0 14mm
62measy pins.__0 >> holes.__0 13mm
63measx pins.__4 -> pins.__3 -4.5mm
64measy outline.__1 >> outline.__0 -d/2-1.5mm
65

Archive Download this file

Branches:
master



interactive