]> git.gag.com Git - hw/altusmetrum/commitdiff
Create new TO252FET footprint for IRLR8743PbF
authorKeith Packard <keithp@keithp.com>
Thu, 24 Dec 2015 03:38:03 +0000 (19:38 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 24 Dec 2015 03:46:49 +0000 (19:46 -0800)
This uses the same geometry as the LD29150DT50R, but with a different
pin label and numbering scheme.

This also reverts the pin renumbering in the n-fet symbol.

Signed-off-by: Keith Packard <keithp@keithp.com>
packages/Makefile
packages/TO252FET.5c [new file with mode: 0644]
preferred-parts
symbols/common/n-fet.sym

index 7dc89bdd03fa15c2e1f3ae66863793db3373f55e..6e6c3fb845038f1ab2753d3f5da2bc1a2f66e2ff 100644 (file)
@@ -90,6 +90,7 @@ FOOTPRINTS= \
        BU2032SM.fp \
        TO252AA.fp \
        TO252.fp \
+       TO252FET.fp \
        SD.fp \
        microSD.fp \
        v-bite.fp \
diff --git a/packages/TO252FET.5c b/packages/TO252FET.5c
new file mode 100644 (file)
index 0000000..fe75df8
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+ * Copyright © 2015 Keith Packard <keithp@keithp.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+
+/* TO-252/DPAK footprint from ST */
+
+load "footprint.5c";
+import Footprint;
+
+real gnd_width = 6.3;
+real gnd_height = 6.1;
+
+real pad_width = 1.5;
+real pad_height = 2.8;
+real pad_space = 4.572;
+
+real total_height = 10.7;
+real gnd_y = pad_height / 2 + gnd_height / 2 - total_height;
+
+real pkg_width = 6.5;
+real pkg_height = 6.1;
+real pkg_center_y = 1.5/2 - 2.8 - pkg_height/2;
+
+element_start("TO252");
+
+pad_mm(-pad_space/2, 0,
+       pad_width, pad_height,
+       "G", "3");
+
+pad_mm(0, gnd_y,
+       gnd_width, gnd_height,
+       "D", "1");
+
+pad_mm(pad_space/2, 0,
+       pad_width, pad_height,
+       "S", "2");
+
+rect(-pkg_width / 2, pkg_center_y - pkg_height/2, pkg_width, pkg_height);
+
+element_end();
index ede39346a90d4b154e183b759d7491212c88131d..ee2589be7bb425ca63810ff52aee31539a2fecb5 100644 (file)
@@ -120,7 +120,7 @@ LED orange  topled  smt     no      LO T67K-L1M2-24-Z       digikey 475-1178-1-ND
 LED    red     0603diode       smt     no      LTST-C190KAKT   digikey 160-1433-1-ND
 LED    yellow  0603diode       smt     no      LTST-C191KSKT   digikey 160-1448-1-ND
 MOSFET Si7232DN        1212-8  smt     no      SI7232DN-T1-GE3 mouser  781-SI7232DN-GE3
-MOSFET IRLR8743PbF     TO252AA smt     no      IRLR8743PbF     digikey IRLR8743PBF-ND
+MOSFET IRLR8743PbF     TO252FET        smt     no      IRLR8743PbF     digikey IRLR8743PBF-ND
 NPN_TRANSISTOR MMBT2222A       SOT23   smt     no      MMBT2222A       digikey MMBT2222AFSCT-ND
 PHOTORESISTOR  PDV-P8103       100mil2pin      throughhole     no      PDV-P8103       digikey PDV-P8103-ND
 RELAY  G5RL-1(A)       g5rl1ae throughhole     no      G5RL-1A-E-HR-DC5        mouser  653-G5RL-1AEHR-DC5
index 3a6f90612c87a786b52a905d0b44c28fe0b1fe5a..95080d143084c3059edbdc4906ebcf858d5f0ba3 100644 (file)
@@ -12,33 +12,33 @@ L 399 251 349 351 3 0 0 0 -1 -1
 P 600 0 600 200 1 0 0
 {
 T 700 150 5 10 1 1 180 6 1
-pinnumber=1
+pinnumber=3
 T 550 100 9 10 1 1 180 0 1
 pinlabel=G
 T 500 0 5 10 0 0 90 0 1
-pinseq=1
+pinseq=3
 T 500 0 5 10 0 0 90 0 1
 pintype=pas
 }
 P 200 500 0 500 1 0 1
 {
 T 105 545 5 10 1 1 0 6 1
-pinnumber=2
+pinnumber=1
 T 55 295 9 10 1 1 0 0 1
 pinlabel=D
 T 100 300 5 10 0 0 90 0 1
-pinseq=2
+pinseq=1
 T 100 300 5 10 0 0 90 0 1
 pintype=pas
 }
 P 600 500 800 500 1 0 1
 {
 T 695 545 5 10 1 1 0 0 1
-pinnumber=3
+pinnumber=2
 T 745 295 9 10 1 1 0 6 1
 pinlabel=S
 T 800 300 5 10 0 0 90 0 1
-pinseq=3
+pinseq=2
 T 800 300 5 10 0 0 90 0 1
 pintype=pas
 }
@@ -50,5 +50,3 @@ L 525 250 675 250 3 0 0 0 -1 -1
 L 200 200 600 200 3 0 0 0 -1 -1
 L 400 250 400 400 3 0 0 0 -1 -1
 L 400 400 600 400 3 0 0 0 -1 -1
-T -5 -30 8 10 0 1 0 0 1
-footprint=TO252