Root/modules/inductor-2p.fpd

Source at commit 83fc1ab657c62255bc9e3ffac88d0f160f4a71ba created 6 years 8 months ago.
By Werner Almesberger, modules/qfn.fpd (QFN32-CC2543): experimental footprint with large center hole (for DIY)
1/* MACHINE-GENERATED ! */
2
3frame pads {
4    set y = (2*i-1)*(py+gap)/2
5
6    set name = i+1
7
8    loop i = 0, 1
9
10    __0: vec @(0mm, y)
11    __1: vec .(px/2, py/2)
12    __2: vec __0(-px/2, -py/2)
13    pad "$name" . __1
14}
15
16frame outline {
17    __0: vec @(sizex/2, sizey/2)
18    __1: vec .(clear, clear)
19    __2: vec @(sizex/2, -sizey/2)
20    __3: vec .(clear, -clear)
21    line . __1 w
22    __4: vec @(-sizex/2, sizey/2)
23    __5: vec .(-clear, clear)
24    __6: vec @(-sizex/2, -sizey/2)
25    __7: vec .(-clear, -clear)
26    line . __5 w
27}
28
29package "INDUCTOR-2P-${sizex}x${sizey}"
30unit mm
31
32table
33    { sizex, sizey, px, py, gap }
34    { 3mm, 3mm, 2.7mm, 1mm, 1.2mm }
35
36set clear = 0.1mm+w/2
37
38set w = 5mil
39
40frame pads @
41frame outline @
42measy pads.__2 >> pads.__1 1.5mm
43measx pads.__2 -> pads.__1 -1mm
44measy pads.__2 -> pads.__1 1mm
45measy pads.__1 >> pads.__2 px+1mm
46measx outline.__6 >> outline.__2 -1.5mm
47measy outline.__2 >> outline.__0 -1mm
48

Archive Download this file

Branches:
master



interactive