Root/modules/to.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 outline {
4    __0: vec @(D/2, E/2+offset)
5    __1: vec @(D/2, -(E/2-offset))
6    line __0 . w
7    __2: vec @(-D/2, E/2+offset)
8    __3: vec @(-D/2, -(E/2-offset))
9    line . __2 w
10    __4: vec @(gx/2, 0mm)
11    __5: vec @(-gx/2, 0mm)
12}
13
14frame pad {
15    set x = dx*e
16
17    set y = dy*cy/2
18
19    __2: vec @(x, y)
20    __0: vec .(index*px/2+ground*gx/2, index*py/2+ground*gy/2)
21    __1: vec __2(-(index*px/2+ground*gx/2), -(index*py/2+ground*gy/2))
22    pad "$n" . __0
23    __3: vec __2(-(index*px/2+ground*gx/2), index*py/2+ground*gy/2)
24    __4: vec __2(index*px/2+ground*gx/2, -(index*py/2+ground*gy/2))
25}
26
27frame pads263 {
28    table
29        { n, index, ground, dx, dy }
30        { 1, 1, 0, -2, -1 }
31        { 2, 1, 0, -1, -1 }
32        { 3, 1, 0, 0, -1 }
33        { 4, 1, 0, 1, -1 }
34        { 5, 1, 0, 2, -1 }
35        { 6, 0, 1, 0, 1 }
36
37    loop if = sqrt((N-6)*(N-6)), 0
38
39    frame outline @
40    frame pad @
41}
42
43frame pads252 {
44    table
45        { n, index, ground, dx, dy }
46        { 1, 1, 0, -1, -1 }
47        { 3, 1, 0, 1, -1 }
48        { 4, 0, 1, 0, 1 }
49
50    loop if = sqrt((N-3)*(N-3)), 0
51
52    frame outline @
53    frame pad @
54}
55
56package "TO-$Name"
57unit mm
58
59table
60    { Name, N, D, E, e, cy, px, py, offset, gx, gy }
61    { "252", 3, 6.58mm, 9.91mm, 2.285mm, 6.44mm, 1.3mm, 1.7mm, 1mm, 5.5mm, 5.7mm }
62    { "263", 6, 10.16mm, 14.01mm, 1.7mm, 9.225mm, 1.07mm, 2.41mm, 1mm, 5.59mm, 6.35mm }
63
64set w = 5mil
65
66frame pads252 @
67frame pads263 @
68measy outline.__3 >> outline.__2 3.5mm
69measx pad.__1 -> pad.__0 -1mm
70measx pad.__2 -> pad.__2 1.5mm
71measy pad.__2 >> pad.__2 3mm
72measy pad.__2 -> pad.__3 2mm
73measy pad.__4 -> pad.__2 2.5mm
74meas outline.__3 >> outline.__1 -2.5mm
75measx outline.__5 >> outline.__4 8mm
76measy pad.__2 >> pad.__3 4mm
77measx pad.__2 >> pad.__2 -2.5mm
78

Archive Download this file

Branches:
master



interactive