Root/modules/usb-a-dual-recept-r.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 Spad {
4    __0: vec @(sr/2, sr/2)
5    __1: vec @(-sr/2, -sr/2)
6    hole . __0
7    __2: vec @(-factor*sr/2, factor*sr/2)
8    __3: vec @(factor*sr/2, -factor*sr/2)
9    rpad "S$n" __2 . bare
10}
11
12frame Spads {
13    table
14        { n, dx, dy }
15        { 1, -1, 1 }
16        { 2, 1, 1 }
17        { 3, -1, -1 }
18        { 4, 1, -1 }
19
20    __0: vec @(dx*spadx/2, dy*spady/2)
21    frame Spad .
22}
23
24frame pin2 {
25    set m = n+1
26
27    __0: vec @(pr/2, pr/2)
28    __1: vec @(-pr/2, -pr/2)
29    hole . __0
30    __2: vec @(-factor*pr/2, factor*pr/2)
31    __3: vec @(factor*pr/2, -factor*pr/2)
32    rpad "$m" __2 . bare
33}
34
35frame pin1 {
36    __0: vec @(pr/2, pr/2)
37    __1: vec @(-pr/2, -pr/2)
38    hole . __0
39    __2: vec @(factor*pr/2, -factor*pr/2)
40    __3: vec @(-factor*pr/2, factor*pr/2)
41    rpad "$n" . __2 bare
42}
43
44frame pins {
45    table
46        { n, ctl, ctr, dx, dy }
47        { 1, 1, 0, -1, 1 }
48        { 3, 0, 1, 1, 1 }
49        { 5, 1, 0, -1, -1 }
50        { 7, 0, 1, 1, -1 }
51
52    __0: vec @(0mm, (padsrow1y-padsrow2y)/2)
53    __1: vec .(ctl*dx*(outterpitch+innerpitch/2)+ctr*dx*innerpitch/2, dy*(padsrow1y-padsrow2y)/2)
54    frame pin1 .
55    __2: vec .(outterpitch, 0mm)
56    frame pin2 .
57}
58
59frame outline {
60    __0: vec @(0mm, -(spady/2+fronty))
61    __1: vec @(0mm, L-fronty-spady/2)
62    __2: vec __0(W/2, 0mm)
63    __6: vec .(0mm, fronty-factor*sr/2-0.5mm)
64    line . __2 w
65    __3: vec __0(-W/2, 0mm)
66    line __2 . w
67    __7: vec .(0mm, fronty-factor*sr/2-0.5mm)
68    line . __3 w
69    __4: vec __1(W/2-factor*sr/2, 0mm)
70    __5: vec __1(-(W/2-factor*sr/2), 0mm)
71    line __4 . w
72    __8: vec @(W/2, 0mm)
73    __9: vec @(-W/2, 0mm)
74    __10: vec __8(0mm, factor*pr/2)
75    __11: vec __8(0mm, -factor*pr/2)
76    line __10 . w
77    __12: vec __9(0mm, factor*pr/2)
78    __13: vec __9(0mm, -factor*pr/2)
79    line __12 . w
80}
81
82package "USB-A-DUAL-RECEPT-RA"
83unit mm
84
85set spadx = 13.14mm
86
87set spady = 5.68mm
88
89set factor = 1.6
90
91set sr = 2.3mm
92
93set padsrow1y = 5.33mm
94
95set padsrow2y = 2.71mm
96
97set innerpitch = 2mm
98
99set outterpitch = 2.5mm
100
101set pr = 0.92mm
102
103set fronty = 10.28mm
104
105set W = 13.9mm
106
107set L = 17.3mm
108
109set w = 5mil
110
111__0: vec @(0mm, -(spady/2-padsrow2y))
112frame pins .
113frame Spads @
114frame outline @
115measy Spads.__0 -> Spads.__0 factor*sr/2+1.5mm
116meas Spads.__0 -> Spads.__0 -(factor*sr/2+0.5mm)
117measx pins.__1 -> pins.__2 -(factor*pr/2+0.5mm)
118measx pins.__2 -> pins.__1 -(factor*pr/2+0.5mm)
119measy Spads.__0 -> pins.__1 -(factor*sr/2+0.25mm)
120measy Spads.__0 >> pins.__1 -(spadx/2+factor*pr+0.75mm)
121measy pin1.__1 -> pin1.__0 factor*pr/2
122measy outline.__3 >> outline.__5 3.5mm
123meas outline.__3 >> outline.__2 -0.8mm
124measx pins.__1 >> pins.__2 spady/2+2mm
125measy Spad.__1 -> Spad.__0 1mm
126

Archive Download this file

Branches:
master



interactive