Root/modules/sod.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, dx }
6        { 1, -1 }
7        { 2, 1 }
8
9    set x = dx*Cx/2
10
11    __0: vec @(x, 0mm)
12    __1: vec .(Px/2, Py/2)
13    __2: vec __0(-Px/2, -Py/2)
14    pad "$n" . __1
15}
16
17frame outline {
18    set _ = 0
19
20    loop i = 0, 1
21
22    __0: vec @(-H/2, B*(i-0.5))
23    __1: vec .(H, 0mm)
24    line __0 . w
25}
26
27frame symbol {
28    set s = S-w*2
29
30    __0: vec @(-s, s)
31    __1: vec @(-s, -s)
32    line . __0 w
33    __2: vec @(s, 0mm)
34    line __0 . w
35    line __1 . w
36    __3: vec .(0mm, s)
37    __4: vec __2(0mm, -s)
38    line __3 . w
39}
40
41package "SOD-$name"
42unit mm
43
44table
45    { name, B, H, Cx, Px, Py, S }
46    { "123", 1.8mm, 3mm, 3.3mm, 1mm, 1.2mm, B/2 }
47    { "323", 1.3mm, 1.7mm, 2.4mm, 0.6mm, 0.6mm, B/2 }
48    { "523", 0.8mm, 1.2mm, 1.7mm, 0.8mm, 0.5mm, B*0.6 }
49
50set w = 5mil
51
52frame pads @
53frame outline @
54frame symbol @
55measy outline.__0 >> outline.__0 1mm
56measx outline.__1 << outline.__0 0.5mm
57measx pads.__0 >> pads.__0 -B/2-0.5mm
58measy pads.__2 -> pads.__1 0.2mm
59measx pads.__2 -> pads.__1 -0.2mm
60measx pads.__1 >> pads.__2 (B-Py)/2+0.7mm
61measx pads.__2 >> pads.__1 -(B-Py)/2-0.7mm
62

Archive Download this file

Branches:
master



interactive