Skip to content

Commit

Permalink
Merge pull request #19 from elecena/smaller-dip
Browse files Browse the repository at this point in the history
Add test cases for smaller DIP packages
  • Loading branch information
macbre committed Apr 16, 2021
2 parents 7035797 + 7d60592 commit e69a970
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Elecena/Utils/PackageInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ public static function getPackage($desc) {
'SOT-?(24|25|26|563)',
// https://en.wikipedia.org/wiki/Small_Outline_Integrated_Circuit
'(LF|L|M|P|V|VF)?QFP(N)?-?(100|128|144|176|208|32|44|48|52|64|80)',
'DIL-?(8|14|16|18|20|22|24|28|32|36|40|42|48|64)',
'DIL-?(4|6|8|14|16|18|20|22|24|28|32|36|40|42|48|64)',
// https://en.wikipedia.org/wiki/Small_Outline_Integrated_Circuit
'((H|HT|HTS|LS|M|S|T|TS|TV|Q|V|VS)?SOP?|SOIC)-?(4|5|6|8|10|12|14|16|18|20|24|28|30|32|36|38|44|48|54|56)(-J|-W|-EP|-POWERPAD)?',
// https://en.wikipedia.org/wiki/Dual_in-line_package
'(CERDIP|CDIP|PDIP|DIP|MDIP|EDIP)-?(6|8|10|12|14|16|18|20|22|24|28|32|36|40|42|48|64)',
'(CERDIP|CDIP|PDIP|DIP|MDIP|EDIP)-?(4|6|8|10|12|14|16|18|20|22|24|28|32|36|40|42|48|64)',
// Slim plastic dip" (0.3" lead spacing) versus the usual 0.4" spacing used on 28- and 40-pin packages / http://www.topline.tv/dip.html
'SP?DIP-?(24|28|32|40|42|52|56|64)',
'HC-?49([/-]?[US])?',
Expand Down
3 changes: 3 additions & 0 deletions tests/PackageInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ public function getPackageProvider() {
[ 'Mikrokontroler AVR-RISC Atmel ATTINY26-16PU, DIL-20, 0 - 16 MHz Flash: 2 kB, RAM: 128', 'DIL20' ],
[ 'Atmega16A-PU DIP40', 'DIP40' ],

[ 'DIP-4 HV CPL 10kV 600mil 50-300% CTR -e4', 'DIP4' ],
[ 'DIP-6 CPL 40-80% CTR -e3', 'DIP6' ],

[ 'Mikrokontroler ARM; Flash:64kB; SRAM:16kB; 48MHz; PG-LQFP-64', 'LQFP64' ],
[ 'LQFP 144 20x20x1.4', 'LQFP144' ],

Expand Down

0 comments on commit e69a970

Please sign in to comment.