Date:2015-05-28 07:33:17 (4 years 4 months ago)
Author:Werner Almesberger
Commit:4247b779e41c81fbcd27b92ce69321a09d08e72c
Message:modules/df40.fpd: Hirose DF40 series (unshielded, C and HC variants)

Files: AUTHORS (1 diff)
modules/HIERARCHY (1 diff)
modules/Makefile (1 diff)
modules/df40.fpd (1 diff)

Change Details

AUTHORS
119119  modules/sod.fpd
120120  modules/1059.fpd
121121  modules/0805-6.fpd
122  modules/df40.fpd
122123
123124Xiangfu <xiangfu@openmobilefree.net>
124125
modules/HIERARCHY
106106            he-shrouded-2x2pins-2mm
107107            he-shrouded-3x2pins-2mm
108108            he-shrouded-7x2pins-2mm
109        DF40
110            Male
111                DF40-10DP
112                DF40-12DP
113                DF40-20DP
114                DF40-24DP
115                DF40-30DP
116                DF40-34DP
117                DF40-40DP
118                DF40-50DP
119                DF40-60DP
120                DF40-70DP
121                DF40-80DP
122                DF40-90DP
123                DF40-100DP
124            Female
125                DF40-10DS
126                DF40-12DS
127                DF40-20DS
128                DF40-24DS
129                DF40-30DS
130                DF40-34DS
131                DF40-40DS
132                DF40-50DS
133                DF40-60DS
134                DF40-70DS
135                DF40-80DS
136                DF40-90DS
137                DF40-100DS
109138    TH
110139        Battery
111140            KS-1060
modules/Makefile
11MODULES=0805-6 1059 8_10-card 8_10-socket-ra 8_10-socket-ra-push-pull \
22    bat-clip-aa-th bga \
33    c-smd c-t-smd \
4    dcjack dfn din-5 dip dip4of6 do-214 dvi-recept-ra \
4    dcjack df40 dfn din-5 dip dip4of6 do-214 dvi-recept-ra \
55    e-switch320 er-oled-fpc30 eus evqq7 \
66        fiducial \
77    header he-2row-dip he-shrouded \
modules/df40.fpd
1/* MACHINE-GENERATED ! */
2
3frame pad {
4    set px = X/2
5
6    set py = Y/2
7
8    __0: vec @(px, py)
9    __1: vec @(-px, -py)
10    pad "$n" . __0
11}
12
13frame pads {
14    set x = e*(xi-pins/4+0.5)
15
16    set y = (Yi+Yo)/2*(yi-0.5)
17
18    set n = 2*xi+yi+1
19
20    loop xi = 0, pins/2-1
21
22    loop yi = 0, 1
23
24    __0: vec @(x, y)
25    frame pad .
26}
27
28frame outline {
29    table
30        { dx }
31        { -1 }
32        { 1 }
33
34    set x = dx*A/2
35
36    set y = Yout/2
37
38    __0: vec @(x, y)
39    __1: vec @(x, -y)
40    line __0 . w
41}
42
43frame corner_pad {
44    set py = Y/2
45
46    set x = cpx/2
47
48    set y = Y/2
49
50    __0: vec @(x, y)
51    __1: vec @(-x, -y)
52    pad "0" . __0
53}
54
55frame corner {
56    set cpx = 0.65mm
57
58    table
59        { dx }
60        { -1 }
61        { 1 }
62
63    table
64        { dy }
65        { -1 }
66        { 1 }
67
68    set x = dx*((pins/2-1)*e/2+0.3mm+cpx/2)
69
70    set y = (Yi+Yo)/4*dy
71
72    loop if = 1, corners
73
74    __0: vec @(x, y)
75    frame corner_pad .
76}
77
78frame keepout {
79    table
80        { dx }
81        { -1 }
82        { 1 }
83
84    set x = ((pins/2-1)*e+X)/2
85
86    set y = K/2*dx
87
88    loop if = 1, keepout
89
90    __0: vec @(-x, y)
91    __1: vec @(x, y)
92    line __0 . w
93}
94
95package "DF40-${pins}${type}"
96unit mm
97
98table
99    { pins }
100    { 10 }
101    { 12 }
102    { 20 }
103    { 24 }
104    { 30 }
105    { 34 }
106    { 40 }
107    { 50 }
108    { 60 }
109    { 70 }
110    { 80 }
111    { 90 }
112    { 100 }
113
114set e = 0.4mm
115
116set A = pins*e/2+side
117
118set K = 1.5mm
119
120set X = 0.2mm
121
122set Y = (Yo-Yi)/2
123
124set w = 5mil
125
126table
127    { type, Yi, Yo, Yout, side, keepout, corners }
128    { "DS", 2.38mm, 3.78mm, 2.94mm, 2.6mm, 1, 0 }
129    { "DP", 2.05mm, 3.37mm, 1.85mm, 1.52mm, 0, 1 }
130
131frame pads @
132frame keepout @
133frame outline @
134frame corner @
135measy pad.__1 -> pad.__0 side/2+0.5mm
136measx pads.__0 >> pads.__0 -Y/2-0.5mm
137measx pad.__1 -> pad.__0 Y+0.5mm
138measy keepout.__0 >> keepout.__0 0mm
139measx outline.__0 >> outline.__0 0.5mm
140measy pad.__1 >> pad.__0 side/2+1mm
141measy pad.__0 -> pad.__1 side/2+X+0.5mm
142measx corner_pad.__1 -> corner_pad.__0 -0.5mm
143measx corner_pad.__0 -> pads.__0 -Y-0.5mm
144measy outline.__1 -> outline.__0 -0.5mm

Archive Download the corresponding diff file

Branches:
master



interactive