Date:2012-05-23 08:47:24 (8 years 2 months ago)
Author:Adam Wang
Commit:ba2a95bf4b94081800d80d1b66784310fd401512
Message:mdip.fpd: added.

Files: modules/mdip.fpd (1 diff)

Change Details

modules/mdip.fpd
1/* MACHINE-GENERATED ! */
2
3frame pin {
4    __0: vec @(-Px/2, Py/2)
5    __1: vec @(Px/2, -Py/2)
6    pad "$n" __0 .
7}
8
9frame pin_top {
10    set n = N-i
11
12    frame pin @
13}
14
15frame pin_bottom {
16    set n = i+1
17
18    frame pin @
19}
20
21frame pins {
22    loop i = 0, side-1
23
24    __0: vec @(pitch*(i-(side-1)/2), 0mm)
25    __1: vec .(0mm, width/2)
26    frame pin_top .
27    __2: vec __0(0mm, -width/2)
28    frame pin_bottom .
29}
30
31frame marker {
32    set r = (side*pitch-x)/2-w
33
34    set clear = 0.3mm
35
36    __0: vec @(-x/2-r-clear, -y/2+r)
37    __1: vec .(0mm, r)
38    circ __0 . 5mil
39}
40
41frame outline {
42    set x = (side-1)*pitch+Px
43
44    set y = width-pitch
45
46    set w = 5mil
47
48    __0: vec @(x/2, y/2)
49    __1: vec @(-x/2, -y/2)
50    rect . __0 w
51    frame marker @
52}
53
54package "MDIP-$N-${width}"
55unit mm
56
57set N = 2*side
58
59set width = 300mil
60
61set pitch = 100mil
62
63set Px = 1.78mm
64
65set Py = 1.52mm
66
67loop side = 2, 6
68
69frame outline @
70frame pins @

Archive Download the corresponding diff file

Branches:
master



interactive