Root/modules/he-2row-dip.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 @(d/2, d/2)
5    __1: vec @(d/2*aspect, d/2*aspect)
6    __2: vec @(-d/2, -d/2)
7    hole . __0
8    __3: vec @(-d/2*aspect, -d/2*aspect)
9    rpad "$n" . __1 bare
10}
11
12frame pins {
13    table
14        { n, y }
15        { 2*nx+1, -py/2 }
16        { 2*nx+2, py/2 }
17
18    set x = (nx-(N-2)/4)*px
19
20    loop nx = 0, N/2-1
21
22    __0: vec @(x, y)
23    frame pin .
24}
25
26frame marker {
27    __0: vec @(-(x+px/2), -py/2)
28    __1: vec .(0mm, 1.6*d/2)
29    circ __0 . 2*w
30}
31
32frame outline {
33    set x = (N/2*px-0.08mm)/2
34
35    set y = py
36
37    __0: vec @(-x, y)
38    __1: vec @(x, -y)
39    rect __0 . w
40    frame marker @
41}
42
43package "HE-${n}x2-${px}"
44unit auto
45
46table
47    { N }
48    { 2 }
49    { 4 }
50    { 6 }
51    { 8 }
52    { 10 }
53    { 12 }
54    { 14 }
55    { 16 }
56    { 18 }
57    { 20 }
58    { 40 }
59
60table
61    { px, py }
62    { 100mil, 100mil }
63
64set d = 0.8mm
65
66set aspect = 2.5
67
68set w = 5mil
69
70set n = N/2
71
72frame pins @
73frame outline @
74measy outline.__1 >> outline.__0 -2mm
75measx outline.__0 >> outline.__1 1mm
76measy pins.__0 -> pins.__0 -N/2*px
77

Archive Download this file

Branches:
master



interactive