Root/modules/mdip.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 pin {
4    __0: vec @(-Px/2, Py/2)
5    __1: vec @(Px/2, -Py/2)
6    pad "$n" __0 .
7    __2: vec @(Px/2, Py/2)
8    __3: vec @(-Px/2, -Py/2)
9}
10
11frame pin_top {
12    set n = N-i
13
14    frame pin @
15}
16
17frame pin_bottom {
18    set n = i+1
19
20    frame pin @
21}
22
23frame pins {
24    loop i = 0, side-1
25
26    __0: vec @(pitch*(i-(side-1)/2), 0mm)
27    __1: vec .(0mm, width/2)
28    frame pin_top .
29    __2: vec __0(0mm, -width/2)
30    frame pin_bottom .
31}
32
33frame marker {
34    set r = (side*pitch-x)/2-w
35
36    set clear = 0.3mm
37
38    __0: vec @(-x/2-r-clear, -y/2+r)
39    __1: vec .(0mm, r)
40    circ __0 . 5mil
41}
42
43frame outline {
44    set x = (side-1)*pitch+Px
45
46    set y = width-pitch
47
48    set w = 5mil
49
50    __0: vec @(x/2, y/2)
51    __1: vec @(-x/2, -y/2)
52    rect . __0 w
53    frame marker @
54}
55
56package "MDIP-$N-${width}"
57unit mil
58
59set N = 2*side
60
61set width = 355mil
62
63set pitch = 100mil
64
65set Px = 70mil
66
67set Py = 60mil
68
69loop side = 2, 6
70
71frame outline @
72frame pins @
73measy pins.__2 -> pins.__1 4mm
74measy pin.__1 >> pin.__0 6mm
75measy pin.__0 -> pin.__1 2mm
76measy pin.__1 -> pin.__0 7mm
77measx pin.__3 -> pin.__1 -1mm
78measx pin.__1 -> pin.__3 -1mm
79measx pins.__1 >> pins.__1 2mm
80

Archive Download this file

Branches:
master



interactive