Root/modules/stqfn20.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 pads {
4    table
5        { n, long, rx, ry, py }
6        { 1, 1, -1, 3, pys }
7        { 2, 1, -1, 2, pys }
8        { 3, 1, -1, 1, pyl }
9        { 4, 1, -1, 0, pym }
10        { 5, 1, -1, -1, pym }
11        { 6, 1, -1, -2, pys }
12        { 7, 1, -1, -3, pys }
13        { 8, 0, -1, -1, pym }
14        { 9, 0, 0, -1, pym }
15        { 10, 0, 1, -1, pym }
16        { 11, 1, 1, -3, pys }
17        { 12, 1, 1, -2, pys }
18        { 13, 1, 1, -1, pym }
19        { 14, 1, 1, 0, pym }
20        { 15, 1, 1, 1, pym }
21        { 16, 1, 1, 2, pys }
22        { 17, 1, 1, 3, pys }
23        { 18, 0, 1, 1, pym }
24        { 19, 0, 0, 1, pym }
25        { 20, 0, -1, 1, pym }
26
27    table
28        { ?long, dx, dy }
29        { 0, 0, -ry }
30        { 1, -rx, 0 }
31
32    table
33        { ?long, x, y }
34        { 0, e*rx-dy*px/2, (cy/2+b)*ry }
35        { 1, (cx/2+b)*rx, e*ry-dx*px/2 }
36
37    set vx = dx*py+dy*px
38
39    set vy = dx*px+dy*py
40
41    __0: vec @(x, y)
42    __1: vec .(vx, vy)
43    pad "$n" __0 .
44}
45
46frame outline {
47    set w = 0.1mm
48
49    table
50        { x, y, dx }
51        { -cx/2, cy/2, 1 }
52        { cx/2, cy/2, -1 }
53        { -cx/2, -cy/2, 1 }
54        { cx/2, -cy/2, -1 }
55
56    __0: vec @(x, y)
57    __1: vec .(dx*(0.325mm-w/2), 0mm)
58    line __0 . w
59}
60
61package "STQFN-20"
62unit mm
63
64table
65    { e, px, pys, pym, pyl, pxo }
66    { 0.4mm, 0.23mm, 0.485mm, 0.775mm, 0.975mm, 0.15mm }
67
68table
69    { cx, cy }
70    { 2mm, 3mm }
71
72set b = (3.3mm-cy)/2
73
74frame pads @
75frame outline @
76measy pads.__1 >> pads.__1 2.5mm
77measx outline.__0 -> outline.__0 -1mm
78measy pads.__1 -> pads.__0 -1mm
79measx pads.__0 -> pads.__1 0.5mm
80

Archive Download this file

Branches:
master



interactive