1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-05 09:56:17 +02:00
ben-wpan/modules/qfn.fpd
Werner Almesberger 8703fc1a0b qfn.fpd: added measurements and improved design of the central pad
- qfn.fpd: where were no measurements at all - added them
- qfn.fpd: parametrize 0.1 mm border between central pad and land pattern
  and increase it from 0.1 mm to 5 mil (recommended by Adam Wang)
- qfn.fpd: define solder paste of central pad separately and give it a 5
  mil border to the pad edge, 10 mil to the copper edge (parameters
  recommended by Adam Wang)
2011-01-21 21:59:34 -03:00

121 lines
1.7 KiB
Plaintext

/* MACHINE-GENERATED ! */
frame center {
set pin = pins+1
set x = D2+2*go
set y = E2+2*go
set go = 5mil
set gi = 5mil
set spx = D2-2*gi
set spy = E2-2*gi
__0: vec @(x/2, y/2)
__1: vec @(-x/2, -y/2)
pad "$pin" . __0 bare
__2: vec @(spx/2, -spy/2)
__3: vec @(-spx/2, spy/2)
pad "$pin" . __2 paste
}
frame pad {
set px = (dx*X1+dy*Y1)/2
set py = (dy*X1+dx*Y1)/2
set pin = side*pins/4+i+1
__0: vec @(px, py)
__1: vec @(-px, -py)
pad "$pin" __0 .
__2: vec @(px, -py)
}
frame side {
set pos = i-(pins/4-1)/2
loop i = 0, pins/4-1
__0: vec @(E*pos*dx, E*pos*dy)
frame pad .
}
frame pads {
table
{ side, dx, dy }
{ 0, 0, -1 }
{ 1, 1, 0 }
{ 2, 0, 1 }
{ 3, -1, 0 }
__0: vec @(dy*C1/2, -dx*C2/2)
frame side .
}
frame index {
}
frame outline {
table
{ index, dx, _, dy }
{ 1, -1, 0, 0 }
{ 0, 0, 0, -1 }
{ 0, 1, 0, 0 }
{ 0, 0, 0, 1 }
set mx = dx*C1/2
set my = dy*C2/2
set cx = mx+my
set cy = my-mx
set ax = -Y1/2*dx
set ay = -Y1/2*dy
set bx = -Y1/2*dy
set by = Y1/2*dx
__0: vec @(cx, cy)
w: vec .(ax, ay)
line __0 . w
__2: vec __0(bx, by)
line __0 . w
__1: vec .(index*(ax-bx), index*(ay-by))
line __2 . w
}
package "QFN$pins"
unit mm
table
{ pins, X1, Y1, E, C1, C2, D2, E2 }
{ 28, 0.25mm, 0.9mm, 0.5mm, 4.8mm, 4.8mm, 3.15mm, 3.15mm }
{ 32, 0.29mm, 0.9mm, 0.5mm, 5.1mm, 5.1mm, 3.3mm, 3.3mm }
set X2 = X1+(pins/4-1)*E
set Y2 = X2
set w = 5mil
__0: vec @(D2/2, E2/2)
frame pads @
frame center @
frame outline @
measy side.__0 >> side.__0 3mm
meas side.__0 -> side.__0 -1mm
measy center.__1 >> center.__0 2mm
measy pad.__1 >> pad.__1 3.5mm
measy pad.__1 -> pad.__0 1mm
meas pad.__1 -> pad.__2 -1mm
measy center.__2 >> center.__3 -2mm