1
0
mirror of git://projects.qi-hardware.com/kicad-libs.git synced 2024-11-28 20:36:16 +02:00

he-shrouded.fpd: added NPTH frame

This commit is contained in:
Adam Wang 2012-06-12 19:10:20 +08:00
parent c2feac59f7
commit 8ea31aa083
2 changed files with 36 additions and 10 deletions

View File

@ -74,7 +74,7 @@ F: fiducial
# Header with outline for shrouded wafer for example, SMD type # Header with outline for shrouded wafer for example, SMD type
F: he-shrouded F: he-shrouded
# #
# - ${n}x2pins-${pitch}: for example Molex: the 87832-1420 data sheet, package drawing # - he-shrouded-${n}x2pins-${pitch}: for example Molex: the 87832-1420 data sheet, package drawing
# http://www.molex.com/pdm_docs/sd/878321420_sd.pdf # http://www.molex.com/pdm_docs/sd/878321420_sd.pdf
# #

View File

@ -20,6 +20,14 @@ frame pins_bottom {
frame pin . frame pin .
} }
frame npth {
set r = 1mm
__0: vec @(r/2, r/2)
__1: vec @(-r/2, -r/2)
hole . __0
}
frame pins { frame pins {
set y = (gap+py)/2 set y = (gap+py)/2
@ -31,9 +39,10 @@ frame pins {
frame pins_top . frame pins_top .
__1: vec @(0mm, -y) __1: vec @(0mm, -y)
frame pins_bottom . frame pins_bottom .
} __2: vec @(-(N/2-1)/2*pitch+0.5*pitch, 0mm)
frame npth .
frame npth { __3: vec @((N/2-1)/2*pitch-0.5*pitch, 0mm)
frame npth .
} }
frame outline { frame outline {
@ -47,24 +56,41 @@ frame outline {
circ __2 . w circ __2 . w
} }
package "${n}x2pins-${pitch}" package "he-shrouded-${n}x2pins-${pitch}"
unit auto unit auto
table table
{ N, n, pitch, px, py, gap, H, base, W } { N, n }
{ 4, N/2, 2mm, 1mm, 2.75mm, 1.5mm, 6.3mm, 6.65mm, base+(N-4)*1mm } { 4, N/2 }
{ 14, N/2, 2mm, 1mm, 2.75mm, 1.5mm, 6.3mm, 6.65mm, base+(N-4)*1mm } { 6, N/2 }
{ 14, N/2 }
set w = 5mil set w = 5mil
set px = 1mm
set py = 2.75mm
set pitch = 2mm
set gap = 1.5mm
set H = 6.3mm
set base = 6.65mm
set W = base+(N-4)*1mm
frame outline @ frame outline @
frame pins @ frame pins @
measy outline.__1 >> outline.__0 -(W+px) measy outline.__1 >> outline.__0 -(W+px)
measx outline.__1 >> outline.__0 H+py/2+4*w measx outline.__1 >> outline.__0 H+py/2+6*w
measy pin.__1 -> pin.__0 px/2 measy pin.__1 -> pin.__0 px/2
measy pin.__1 >> pin.__0 -(W/2+pitch) measy pin.__1 >> pin.__0 -(W/2+pitch)
measy pin.__0 >> pin.__1 -(pitch+px/2) measy pin.__0 >> pin.__1 -(pitch+px/2)
measx pins_top.__0 -> pins_top.__0 px/2 measx pins_top.__0 -> pins_top.__0 px/2
measy pins.__0 << pins_bottom.__0 -3*px/2 measy pins.__0 << pins_bottom.__0 -3*px/2
measx pin.__1 -> pin.__0 -4*w measx pin.__1 -> pin.__0 -4*w
meas pins_top.__0 >> pins_top.__0 py/2+4*w meas pins_top.__0 >> pins_top.__0 py/2+7*w
measy npth.__1 -> npth.__0 0.5mm
meas pins.__2 >> pins.__3 gap/2+py+4*w