← Commit history

pinmap.json: symbol pin 4 (TAB) lands on pad 2. On a DPAK the tab IS the middle lead, so the footprint gives it that lead number and the correspondence has to be declared rather than derived

Ray ·645287ec45 · ·parent 5cc1ab8
4 files changed +33−33
mc7805cdtrkg.lbr+22−20
@@ -50,10 +50,10 @@ <layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/> </layers> <library>-<description>TO-252-2 (symbol synthesized from footprint pads)</description>+<description></description> <packages>-<package name="TO-252-2">-  <description>TO-252-2</description>+<package name="MC7805CDTRKG">+  <description>MC7805CDTRKG</description>   <smd name="1" x="-5.0400" y="2.2800" dx="2.2000" dy="1.2000" layer="1"/>   <smd name="2" x="1.2600" y="-0.0000" dx="6.4000" dy="5.8000" layer="1"/>   <smd name="3" x="-5.0400" y="-2.2800" dx="2.2000" dy="1.2000" layer="1"/>@@ -75,30 +75,32 @@ <!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-5.0400" y="3.1400"/><vertex x="-5.3800" y="3.6100"/><vertex x="-4.7000" y="3.6100"/></polygon></package> </packages> <symbols>-<symbol name="TO-252-2">-  <wire x1="-7.62" y1="3.81" x2="7.62" y2="3.81" width="0.254" layer="94"/>-  <wire x1="7.62" y1="3.81" x2="7.62" y2="-3.81" width="0.254" layer="94"/>-  <wire x1="7.62" y1="-3.81" x2="-7.62" y2="-3.81" width="0.254" layer="94"/>-  <wire x1="-7.62" y1="-3.81" x2="-7.62" y2="3.81" width="0.254" layer="94"/>-  <text x="0" y="6.35" size="1.27" layer="95" align="bottom-center">&gt;NAME</text>-  <text x="0" y="-6.35" size="1.27" layer="96" align="top-center">&gt;VALUE</text>-  <pin name="1" x="-12.7" y="2.54" length="short" direction="pas"/>-  <pin name="2" x="-12.7" y="0" length="short" direction="pas"/>-  <pin name="3" x="12.7" y="2.54" length="short" direction="pas" rot="R180"/>+<symbol name="MC7805CDTRKG">+  <wire x1="-12.7" y1="2.54" x2="12.7" y2="2.54" width="0.254" layer="94"/>+  <wire x1="12.7" y1="2.54" x2="12.7" y2="-5.08" width="0.254" layer="94"/>+  <wire x1="12.7" y1="-5.08" x2="-12.7" y2="-5.08" width="0.254" layer="94"/>+  <wire x1="-12.7" y1="-5.08" x2="-12.7" y2="2.54" width="0.254" layer="94"/>+  <text x="0" y="5.08" size="1.27" layer="95" align="bottom-center">&gt;NAME</text>+  <text x="0" y="-7.62" size="1.27" layer="96" align="top-center">&gt;VALUE</text>+  <pin name="Vin" x="-17.78" y="0" length="middle" direction="pwr"/>+  <pin name="GND" x="-17.78" y="-2.54" length="middle" direction="pwr"/>+  <pin name="TAB" x="17.78" y="0" length="middle" direction="pwr" rot="R180"/>+  <pin name="Vout" x="17.78" y="-2.54" length="middle" direction="out" rot="R180"/> </symbol> </symbols> <devicesets>-<deviceset name="TO-252-2" prefix="U">-  <description>TO-252-2 (symbol synthesized from footprint pads)</description>+<deviceset name="MC7805CDTRKG" prefix="U">+  <description></description>   <gates>-    <gate name="G$1" symbol="TO-252-2" x="0" y="0"/>+    <gate name="G$1" symbol="MC7805CDTRKG" x="0" y="0"/>   </gates>   <devices>-    <device name="" package="TO-252-2">+    <device name="" package="MC7805CDTRKG">       <connects>-        <connect gate="G$1" pin="1" pad="1"/>-        <connect gate="G$1" pin="2" pad="2"/>-        <connect gate="G$1" pin="3" pad="3"/>+        <connect gate="G$1" pin="Vin" pad="1"/>+        <connect gate="G$1" pin="GND" pad="2"/>+        <connect gate="G$1" pin="TAB" pad="2"/>+        <connect gate="G$1" pin="Vout" pad="3"/>       </connects>       <technologies><technology name=""/></technologies>     </device>
package.json+2−1
@@ -25,6 +25,7 @@     "docs/mc7805cdtrkg-datasheet.pdf",     "viewers/symbol.html",     "viewers/footprint.html",-    "pads.json"+    "pads.json",+    "pinmap.json"   ] }\ No newline at end of file
pads.json+6−12
@@ -5,7 +5,7 @@  "generated_from": {   "footprint": "TO-252-2@sha256:18c28e5e147d5e9b",   "pins": "page.json:component.pins",-  "overrides": null+  "overrides": "pinmap.json"  },  "pin1": {   "pad": "1",@@ -25,13 +25,7 @@   "4"  ],  "paste_apertures": 4,- "issues": [-  {-   "kind": "pin-has-no-pad",-   "pin": "4",-   "detail": "the symbol declares pin \"4\" but the footprint has no such pad"-  }- ],+ "issues": [],  "pads": [   {    "pad": "1",@@ -81,15 +75,15 @@     "F.Mask"    ],    "thermal": false,-   "pin": "2",-   "name": "GND",+   "pin": "4",+   "name": "TAB",    "type": "power_in",-   "description": "Common ground reference shared between input and output. Also serves as the thermal path; the DPAK exposed tab (terminal 4 in the case outline drawing) is internally connected to Pin 2.",+   "description": "DPAK exposed heatsink tab. Internally connected to Pin 2 (Ground). Solder to a ground copper pour to spread heat; junction-to-case thermal resistance is 5.0 C/W.",    "is_pin1": false,    "source": {     "geometry": "TO-252-2.kicad_mod",     "meaning": "page.json:component.pins",-    "correspondence": "kicad: symbol pin number == pad name"+    "correspondence": "pinmap.json (declared)"    }   },   {
pinmap.jsonadded+3
@@ -0,0 +1,3 @@+{+ "4": "2"+}\ No newline at end of file