Root/modules/tswa.fpd

Source at commit dc5ce7a31aedb968753878e2cbaa857ffd79c5c8 created 9 years 21 days ago.
By Werner Almesberger, components/aat1217.lib: Skyworks AAT1217 step-up converter
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}
47
48package "TSWA-${d}"
49unit mm
50
51set d = 22mm
52
53frame pins @
54frame outline @
55frame holes @
56measx pins.__0 >> pins.__0 5mm
57measx holes.__0 >> holes.__0 4mm
58measx holes.__2 -> holes.__1 -1mm
59measx pins.__2 -> pins.__1 -1mm
60measy pins.__0 >> pins.__0 14mm
61measy pins.__0 >> holes.__0 13mm
62

Archive Download this file

Branches:
master



interactive