Root/modules/rj45.fpd

Source at commit 7f3f9267cb007e13eca0af273f9eedad0c6c5659 created 1 year 6 months ago.
By Werner Almesberger, components/stm32.lib: add STM32L052x6/8 in QFN32 (KxU) package
1/* MACHINE-GENERATED ! */
2
3frame pShield {
4    set rin = 1.63mm/2
5
6    set rout = ratio*rin
7
8    set n = i+13
9
10    loop i = 0, 1
11
12    __0: vec @(i*Shieldx, 0mm)
13    __1: vec .(rin, rin)
14    __2: vec __0(-rin, -rin)
15    hole . __1
16    __3: vec __0(rout, -rout)
17    __4: vec __0(-rout, rout)
18    rpad "$n" __3 . bare
19}
20
21frame hNPTH {
22    set r = 3.18mm/2
23
24    __0: vec @(r, r)
25    __1: vec @(-r, -r)
26    hole . __0
27}
28
29frame pNPTH {
30    table
31        { px, dx, n }
32        { NPTHx/2, 1, 13 }
33        { NPTHx/2, -1, 14 }
34
35    __0: vec @(dx*px, 0mm)
36    frame hNPTH .
37}
38
39frame pins {
40    set rin = 0.89mm/2
41
42    set rout = ratio*rin
43
44    set n = i*2+1
45
46    set m = i*2+2
47
48    loop i = 0, 3
49
50    __0: vec @(i*pitchP, 0mm)
51    __1: vec .(rin, rin)
52    __2: vec __0(-rin, -rin)
53    hole . __1
54    __3: vec __0(rout, -rout)
55    __4: vec __0(-rout, rout)
56    rpad "$n" . __3 bare
57    __5: vec @(0mm, pitchP)
58    __6: vec .(pitchP/2, 0mm)
59    __7: vec .(i*pitchP, 0mm)
60    __8: vec .(rin, rin)
61    __9: vec __7(-rin, -rin)
62    hole . __8
63    __10: vec __7(rout, -rout)
64    __11: vec __7(-rout, rout)
65    rpad "$m" __10 . bare
66}
67
68frame pLed {
69    set rin = 1.02mm/2
70
71    set n = i+9
72
73    set m = i+11
74
75    set rout = ratio*rin
76
77    loop i = 0, 1
78
79    __0: vec @(i*pitchP, 0mm)
80    __1: vec .(rout, -rout)
81    __2: vec __0(rin, rin)
82    __3: vec __0(-rin, -rin)
83    hole . __2
84    __4: vec __0(-rout, rout)
85    rpad "$n" __1 . bare
86    __5: vec @(pitchP+LEDx, 0mm)
87    __6: vec .(i*pitchP, 0mm)
88    __7: vec .(rin, rin)
89    __8: vec __6(-rin, -rin)
90    hole . __7
91    __9: vec __6(rout, -rout)
92    __10: vec __6(-rout, rout)
93    rpad "$m" __9 . bare
94}
95
96frame outline {
97    __0: vec @(W/2, -NPTHy)
98    __1: vec @(-W/2, L-NPTHy)
99    rect . __0 w
100}
101
102package "RJ45-8-LED"
103unit mm
104
105set NPTHx = 11.43mm
106
107set NPTHy = 10.8mm
108
109set L = 25.4mm
110
111set W = 16.2mm
112
113set ydiffShield = 3.3mm
114
115set Shieldx = 15.74mm
116
117set ratio = 1.6
118
119set yP1dist = 6.35mm
120
121set yShield = yP1dist-ydiffShield
122
123set pitchP = 2.54mm
124
125set ydiffLed = 7.37mm
126
127set LEDx = 5.84mm
128
129set w = 5mil
130
131__0: vec @(0mm, yP1dist)
132__1: vec .(-(2*pitchP-pitchP/4), 0mm)
133frame pins .
134__2: vec __0(0mm, ydiffLed)
135__3: vec .(-(LEDx/2+pitchP), 0mm)
136frame pLed .
137__4: vec @(0mm, yP1dist-ydiffShield)
138__5: vec .(-Shieldx/2, 0mm)
139frame pShield .
140frame pNPTH @
141frame outline @
142measy pNPTH.__0 >> __1 4mm
143measy __1 >> pins.__6 4mm
144measy __1 >> __3 5.3mm
145meas pNPTH.__0 >> pNPTH.__0 -2mm
146meas __5 >> pShield.__0 -6mm
147meas pLed.__5 >> pLed.__6 1.3mm
148meas pLed.__5 << pLed.__0 1.3mm
149meas pins.__6 -> pins.__7 1.3mm
150measx __1 >> pins.__6 4mm
151measy outline.__0 >> outline.__1 -1.5mm
152measx outline.__1 >> outline.__0 1.5mm
153measy hNPTH.__1 -> hNPTH.__0 -3.18mm-0.5mm
154measy pShield.__2 -> pShield.__1 -1.63mm-1mm
155measy pins.__2 -> pins.__1 -0.89mm-0.5mm
156measy pins.__9 -> pins.__8 -0.89mm-0.5mm
157measy pLed.__3 -> pLed.__2 -1.02mm-0.5mm
158

Archive Download this file

Branches:
master



interactive