From a8d0c40d7f9d634d0d266186399c4fe78826bc49 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 14 Aug 2011 04:49:36 -0300 Subject: [PATCH] Moved sot-323.fpd from ben-wpan to kicad-libs (incoming) --- AUTHORS | 1 + modules/INFO | 4 +++ modules/Makefile | 2 +- modules/sot-323.fpd | 70 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 modules/sot-323.fpd diff --git a/AUTHORS b/AUTHORS index 6d2a357..2ec1870 100644 --- a/AUTHORS +++ b/AUTHORS @@ -31,3 +31,4 @@ Werner Almesberger modules/qfp.fpd modules/usb-a-pcb.fpd modules/usb_a_plug_smt.fpd + modules/sot-323.fpd diff --git a/modules/INFO b/modules/INFO index 16a1133..5b94be3 100644 --- a/modules/INFO +++ b/modules/INFO @@ -89,3 +89,7 @@ F: usb_a_plug_smt # USB 2.0 from usb_20_040908, page 99 F: usb-a-pcb + +# SOT-323 package with counter-clockweise or clockwise pin assignment +F: sot-323 +N: mmst3904 diff --git a/modules/Makefile b/modules/Makefile index fb564be..d144f15 100644 --- a/modules/Makefile +++ b/modules/Makefile @@ -1,4 +1,4 @@ -MODULES=8_10-card fiducial mini-usb pads qfn qfp stdpass \ +MODULES=8_10-card fiducial mini-usb pads qfn qfp sot-323 stdpass \ usb-a-pcb usb_a_plug_smt .SUFFIXES: .fpd .mod diff --git a/modules/sot-323.fpd b/modules/sot-323.fpd new file mode 100644 index 0000000..e0fa037 --- /dev/null +++ b/modules/sot-323.fpd @@ -0,0 +1,70 @@ +/* MACHINE-GENERATED ! */ + +frame pad { + __0: vec @(w/2, h/2) + __1: vec @(-w/2, -h/2) + pad "$n" . __0 +} + +frame pads { + table + { n, x, y } + { 1, -e*ccw, -f/2 } + { 2, e*ccw, -f/2 } + { 3, 0mm, f/2 } + + __0: vec @(x, y) + frame pad . +} + +frame outline { + set lw = 5mil + + set clear = lw/2+0.1mm + + set s = (A-w)/2-clear + + set m2 = e-w/2-clear + + __0: vec @(A/2, B/2) + __2: vec @(-A/2, B/2) + __3: vec .(0mm, -B) + line __2 . lw + __1: vec __0(0mm, -B) + line . __0 lw + __4: vec __2(s, 0mm) + line __2 . lw + __5: vec __0(-s, 0mm) + line . __0 lw + __6: vec @(0mm, -B/2) + __7: vec .(m2, 0mm) + __8: vec __6(-m2, 0mm) + line . __7 lw +} + +package "SOT-323$suffix" +unit mm + +table + { A, B } + { 2.2mm, 1.35mm } + +set e = 0.65mm + +table + { f, h, w } + { 1.9mm, 0.9mm, 0.7mm } + +table + { suffix, ccw } + { "", 1 } + { "-CW", -1 } + +frame outline @ +frame pads @ +measx outline.__2 >> outline.__0 1.5mm +measy outline.__3 >> outline.__2 0.5mm +measx pads.__0 -> pads.__0 1.7mm+f/2 +measy pads.__0 >> pads.__0 1.5mm +measy pad.__1 -> pad.__0 0.5mm +measx pad.__1 -> pad.__0 -0.5mm