Root/modules/lp2032sm.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 minus {
4    __0: vec @(Rx, PNy/2)
5    __1: vec .(-PNx, -PNy)
6    pad "1" . __0
7    __2: vec __0(-PNx/2, -PNy/2)
8}
9
10frame plus {
11    __0: vec @(Rx-PNx/2-Cx, 0mm)
12    __1: vec .(PPx/2, PPy/2)
13    __2: vec __0(-PPx/2, -PPy/2)
14    pad "2" . __1
15}
16
17frame base {
18    set bx = sqrt(Br*Br-By*By/4)
19
20    set bxi = sqrt(Br*Br-Ny*Ny/4)
21
22    __0: vec @(bx, By/2)
23    __1: vec @(bx, -By/2)
24    arc @ . __0 w
25    __2: vec @(-bx, By/2)
26    line . __0 w
27    __3: vec @(-bx, -By/2)
28    line . __1 w
29    __4: vec @(-bxi, Ny/2)
30    arc @ __2 . w
31    __5: vec @(-bxi, -Ny/2)
32    arc @ . __3 w
33    __6: vec @(-Nx, Ny/2)
34    line . __4 w
35    __7: vec @(-Nx, -Ny/2)
36    line . __5 w
37    __8: vec @(Br, 0mm)
38    __9: vec @(0mm, 9mm)
39}
40
41package "BAT-$name"
42unit mm
43
44table
45    { name, Br, By, Nx, Ny, PPx, PPy, PNx, PNy, Rx, Cx }
46    { "BLP2032SM", 11mm, 15.1mm, 12.2mm, 9.94mm, 3.2mm, 2.75mm, 3.2mm, 3.75mm, 10.87mm, 21.26mm }
47    { "LP2032SM", 11mm, 15mm, 12.2mm, 7.53mm, 3mm, 3.45mm, 3mm, 2.8mm, 10.5mm, 20.5mm+3mm }
48
49set w = 5mil
50
51frame base @
52frame plus @
53frame minus @
54measx plus.__0 >> minus.__2 3.5mm
55measx plus.__1 >> minus.__1 1mm
56measx plus.__2 >> plus.__1 -1mm
57measx minus.__1 >> minus.__0 -1mm
58measy plus.__2 >> plus.__1 1mm
59measy minus.__1 >> minus.__0 -PNx-1mm
60measy base.__1 >> base.__0 -5mm
61measx base.__6 >> base.__8 10mm-Ny/2
62measy base.__7 >> base.__6 3mm
63measx base.__9 >> minus.__0
64measx base.__6 >> base.__9 9mm-Ny/2
65

Archive Download this file

Branches:
master



interactive