Root/modules/soic.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, C/2)
5    __1: vec @(-D/2, -C/2)
6    pad "$n" . __0
7}
8
9frame pins_top {
10    set n = N-i
11
12    __0: vec @(x, 0mm)
13    frame pin .
14}
15
16frame pins_bottom {
17    set n = i+1
18
19    __0: vec @(x, 0mm)
20    frame pin .
21}
22
23frame pins {
24    set y = (A+B)/4
25
26    set x = (i-(N/2-1)/2)*Pitch
27
28    loop i = 0, N/2-1
29
30    __0: vec @(0mm, y)
31    frame pins_top .
32    __1: vec @(0mm, -y)
33    frame pins_bottom .
34}
35
36frame marker {
37    set r = ((N/2-1)*Pitch-x)/2-w
38
39    __0: vec @(-x/2-D+w, -(A-C)/2)
40    __1: vec .(-r/3, 0mm)
41    circ __0 . w
42}
43
44frame outline {
45    set w = 5mil
46
47    set x = H
48
49    set y = A+2*w
50
51    __0: vec @(x/2, y/2)
52    __1: vec @(-x/2, -y/2)
53    rect . __0 w
54    frame marker @
55}
56
57package "$name-$N"
58unit mm
59
60set Pitch = 1.27mm
61
62set D = 0.6mm
63
64table
65    { name, N, A, B, C, H }
66    { "SOIC", 8, 6.8mm, 2.8mm, 2mm, 4.9mm }
67    { "SOIC", 14, 6.8mm, 2.8mm, 2mm, 8.65mm }
68    { "SOIC", 16, 6.8mm, 2.8mm, 2mm, 9.9mm }
69
70frame outline @
71frame pins @
72measy pin.__1 -> pin.__0 1.5mm
73measy pin.__1 >> pin.__0 -H-2mm
74measy pin.__0 >> pin.__1 -H
75measx pin.__1 -> pin.__0 -1mm
76measx pins_top.__0 -> pins_top.__0 -2mm
77measy pins.__0 << pins_bottom.__0 -2mm
78measy outline.__0 >> outline.__1 -H-C
79measx outline.__1 >> outline.__0 8mm
80

Archive Download this file

Branches:
master



interactive