From 86ce0c06e63c0bbf60ec4011e1543b2d2dfb553f Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sat, 9 Jun 2012 20:09:36 -0300 Subject: [PATCH] modules/pads-array.fpd: like pads.fpd, but in a array formations (WIP) For now, it only has the 2 mm pad with a 50 mil raster, suitable for ribbon cables. --- modules/INFO | 3 +++ modules/Makefile | 2 +- modules/pads-array.fpd | 29 +++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 modules/pads-array.fpd diff --git a/modules/INFO b/modules/INFO index f38f9cf..83e3067 100644 --- a/modules/INFO +++ b/modules/INFO @@ -111,6 +111,9 @@ F: mini_usb_b # Solder pads and test points F: pads +# "pads" in typical array formations +F: pads-array + # "Generic" simple QFN F: qfn # diff --git a/modules/Makefile b/modules/Makefile index cf08229..d95688d 100644 --- a/modules/Makefile +++ b/modules/Makefile @@ -1,5 +1,5 @@ MODULES=8_10-card bat-clip-aa-th \ - fiducial mini-usb pads qfn qfp sot sot-323 ssop stdpass \ + fiducial mini-usb pads pads-array qfn qfp sot sot-323 ssop stdpass \ usb-a-pcb usb_a_plug_smt .SUFFIXES: .fpd .mod diff --git a/modules/pads-array.fpd b/modules/pads-array.fpd new file mode 100644 index 0000000..f50b1ab --- /dev/null +++ b/modules/pads-array.fpd @@ -0,0 +1,29 @@ +/* MACHINE-GENERATED ! */ + +frame pad { + __0: vec @(x/2, y/2) + __1: vec @(-x/2, -y/2) + rpad "$n" . __0 bare +} + +package "PAD_${name}_${N}x$e" +unit mm + +table + { name, x, y } + { "2mm", 2mm, 0.5mm } + { "60x60", 60mil, 60mil } + { "80x80", 80mil, 80mil } + { "120x60", 120mil, 60mil } + +table + { ?name, e, N } + { "2mm", 50mil, 20 } + { "60x60", 0mm, 1 } + { "80x80", 0mm, 1 } + { "120x60", 0mm, 1 } + +loop n = 1, N + +__0: vec @(0mm, e*(n-1)) +frame pad .