From fae1ebfa48a7e21ad1cbc6ebe6a56ca4726a92c4 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Tue, 26 Nov 2024 22:16:05 -0500 Subject: [PATCH] stuff needed as I update QuantiMotor --- packages/.gitignore | 1 + packages/Makefile | 1 + packages/hvqfn33_7x7.5c | 109 ++++++++++++++++++++++++ packages/pizero.py | 8 +- symbols/ti/{ADS8684.sym => ADS868X.sym} | 35 ++++---- 5 files changed, 133 insertions(+), 21 deletions(-) create mode 100644 packages/hvqfn33_7x7.5c rename symbols/ti/{ADS8684.sym => ADS868X.sym} (92%) diff --git a/packages/.gitignore b/packages/.gitignore index 4e2d25e..5a8f578 100644 --- a/packages/.gitignore +++ b/packages/.gitignore @@ -14,6 +14,7 @@ MS5607.fp uson-8.fp wson6x5.fp hvqfn33.fp +hvqfn33_7x7.fp ZX62-B-5PA.fp TDK_PS12.fp ABM3B.fp diff --git a/packages/Makefile b/packages/Makefile index f200c5b..58d528e 100644 --- a/packages/Makefile +++ b/packages/Makefile @@ -30,6 +30,7 @@ FOOTPRINTS= \ uson-8.fp \ wson6x5.fp \ hvqfn33.fp \ + hvqfn33_7x7.fp \ ZX62-B-5PA.fp \ TDK_PS12.fp \ ABM3B.fp \ diff --git a/packages/hvqfn33_7x7.5c b/packages/hvqfn33_7x7.5c new file mode 100644 index 0000000..db6408e --- /dev/null +++ b/packages/hvqfn33_7x7.5c @@ -0,0 +1,109 @@ +/* + * Copyright © 2024 Bdale Garbee + * + * Footprint variation for the 11u12 in 7x7mm package + * + * 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. + */ + +load "footprint.5c" +import Footprint; + +process_clearance = 0.26; + +real package_width = 7; +real package_height = 7; +real pad_spacing = 0.65; /* P */ +real pad_height = 0.85; /* C */ +real pad_width = 0.28; /* D */ +real pad_center_x = 7.25 / 2; /* Gx/2 */ +real pad_center_y = 7.25 / 2; /* Gy/2 */ + +real center_width = 4.7; /* SLx */ +real center_height = 4.7; /* SLy */ + +real center_drill = process_drill; +real center_copper = process_ring; +real center_mask = 0.60 / 2; + +real center_space = 1.1; + +int num_pad = 8; /* per side */ + +real pad_off(int n) { + return pad_spacing * (n - (num_pad - 1) / 2); +} + +element_start("hvqfn33"); + +for (int pad = 0; pad < num_pad; pad++) { + /* left side (1-8) */ + + pad_mm(-pad_center_x, + pad_off(pad), + pad_height, + pad_width, + sprintf("%d", pad + 1), + sprintf("%d", pad + 1)); + + /* bottom (9-16) */ + + pad_mm(pad_off(pad), + pad_center_y, + pad_width, + pad_height, + sprintf("%d", pad + 9), + sprintf("%d", pad + 9)); + + /* right (17-24) */ + + pad_mm(pad_center_x, + -pad_off(pad), + pad_height, + pad_width, + sprintf("%d", pad + 17), + sprintf("%d", pad + 17)); + + /* top (25-32) */ + + pad_mm(-pad_off(pad), + -pad_center_y, + pad_width, + pad_height, + sprintf("%d", pad + 25), + sprintf("%d", pad + 25)); +} + +/* center */ + +center_pad((center_t) { + .x = 0, + .y = 0, + .width = center_width, + .height = center_height, + .name = "33", + .via_cols = 3, + .via_rows = 3}); + +/* outline */ + +rect(-package_width/2, -package_height/2, package_width, package_height); + +dot_off = 0.3; +dot_x = -package_width/2 - dot_off; +dot_y = -package_height/2 - dot_off; + +line(dot_x, dot_y, dot_x, dot_y); + +element_end(); diff --git a/packages/pizero.py b/packages/pizero.py index a2daf34..5d7da3e 100755 --- a/packages/pizero.py +++ b/packages/pizero.py @@ -61,7 +61,7 @@ print( ' Pin[',\ 1200, \ mm2mils100(MntDiam * 1.75) + 600, \ mm2mils100(MntDiam), \ - '"G"', '"G"', '0x0001', ']') + '"GND"', '"41"', '0x0001', ']') print( ' Pin[',\ mm2mils100(-BoardLength/2+MntOffset), \ @@ -70,7 +70,7 @@ print( ' Pin[',\ 1200, \ mm2mils100(MntDiam * 1.75) + 600, \ mm2mils100(MntDiam), \ - '"G"', '"G"', '0x0001', ']') + '"GND"', '"41"', '0x0001', ']') print( ' Pin[',\ mm2mils100(BoardLength/2-MntOffset), \ @@ -79,7 +79,7 @@ print( ' Pin[',\ 1200, \ mm2mils100(MntDiam * 1.75) + 600, \ mm2mils100(MntDiam), \ - '"G"', '"G"', '0x0001', ']') + '"GND"', '"41"', '0x0001', ']') print( ' Pin[',\ mm2mils100(-BoardLength/2+MntOffset), \ @@ -88,7 +88,7 @@ print( ' Pin[',\ 1200, \ mm2mils100(MntDiam * 1.75) + 600, \ mm2mils100(MntDiam), \ - '"G"', '"G"', '0x0001', ']') + '"GND"', '"41"', '0x0001', ']') print( ' ElementLine[',\ mm2mils100(-BoardLength/2+CornerRadius), \ diff --git a/symbols/ti/ADS8684.sym b/symbols/ti/ADS868X.sym similarity index 92% rename from symbols/ti/ADS8684.sym rename to symbols/ti/ADS868X.sym index 297806b..27adba5 100644 --- a/symbols/ti/ADS8684.sym +++ b/symbols/ti/ADS868X.sym @@ -133,7 +133,7 @@ T 3095 5395 3 10 1 1 0 6 1 pinlabel=SCLK } T 3205 7800 8 10 1 1 0 6 1 -value=ADS8684 +value=ADS868X P 0 4200 400 4200 1 0 0 { T -100 4200 5 10 0 1 0 6 1 @@ -141,7 +141,7 @@ pintype=pas T 300 4300 5 10 1 1 0 6 1 pinnumber=25 T 500 4200 3 10 1 1 0 0 1 -pinlabel=NC +pinlabel=AIN4P } P 0 3800 400 3800 1 0 0 { @@ -150,7 +150,7 @@ pintype=pas T 300 3900 5 10 1 1 0 6 1 pinnumber=24 T 500 3800 3 10 1 1 0 0 1 -pinlabel=NC +pinlabel=AIN4GND } P 0 5000 400 5000 1 0 0 { @@ -251,7 +251,7 @@ pintype=pas T 300 3500 5 10 1 1 0 6 1 pinnumber=27 T 500 3400 3 10 1 1 0 0 1 -pinlabel=NC +pinlabel=AIN5P } P 0 3000 400 3000 1 0 0 { @@ -260,7 +260,7 @@ pintype=pas T 300 3100 5 10 1 1 0 6 1 pinnumber=26 T 500 3000 3 10 1 1 0 0 1 -pinlabel=NC +pinlabel=AIN5GND } P 0 2600 400 2600 1 0 0 { @@ -269,7 +269,7 @@ pintype=pas T 300 2700 5 10 1 1 0 6 1 pinnumber=12 T 500 2600 3 10 1 1 0 0 1 -pinlabel=NC +pinlabel=AIN6P } P 0 2200 400 2200 1 0 0 { @@ -278,7 +278,7 @@ pintype=pas T 300 2300 5 10 1 1 0 6 1 pinnumber=13 T 500 2200 3 10 1 1 0 0 1 -pinlabel=NC +pinlabel=AIN6GND } P 0 1800 400 1800 1 0 0 { @@ -287,7 +287,7 @@ pintype=pas T 300 1900 5 10 1 1 0 6 1 pinnumber=14 T 500 1800 3 10 1 1 0 0 1 -pinlabel=NC +pinlabel=AIN7P } P 0 1400 400 1400 1 0 0 { @@ -296,7 +296,7 @@ pintype=pas T 300 1500 5 10 1 1 0 6 1 pinnumber=15 T 500 1400 3 10 1 1 0 0 1 -pinlabel=NC +pinlabel=AIN7GND } P 3600 4600 3200 4600 1 0 0 { @@ -352,11 +352,12 @@ pinnumber=29 T 3100 1400 3 10 1 1 0 6 1 pinlabel=AGND } -L 800 1300 900 1400 3 10 1 0 -1 -1 -L 800 4400 900 4300 3 10 1 0 -1 -1 -L 900 4300 900 2900 3 10 1 0 -1 -1 -L 900 2900 1000 2800 3 10 1 0 -1 -1 -L 1000 2800 900 2700 3 10 1 0 -1 -1 -L 900 2700 900 1400 3 10 1 0 -1 -1 -T 1200 1900 9 10 1 0 90 0 1 -ADS8688 inputs 4-7 +L 1400 1300 1500 1400 3 10 1 0 -1 -1 +L 1400 4400 1500 4300 3 10 1 0 -1 -1 +L 1500 4300 1500 2900 3 10 1 0 -1 -1 +L 1500 2900 1600 2800 3 10 1 0 -1 -1 +L 1600 2800 1500 2700 3 10 1 0 -1 -1 +L 1500 2700 1500 1400 3 10 1 0 -1 -1 +T 2000 1800 9 10 1 0 90 0 2 +ADS8688 only, inputs 4-7 +ADS8684 not connected -- 2.47.2