← 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 ·85af505b77 · ·parent acb033b
4 files changed +33−33
mc79m05bdtrkg.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="MC79M05BDTRKG">+  <description>MC79M05BDTRKG</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="MC79M05BDTRKG">+  <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="GND" x="-17.78" y="0" length="middle" direction="pwr"/>+  <pin name="VI" 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="VO" 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="MC79M05BDTRKG" prefix="U">+  <description></description>   <gates>-    <gate name="G$1" symbol="TO-252-2" x="0" y="0"/>+    <gate name="G$1" symbol="MC79M05BDTRKG" x="0" y="0"/>   </gates>   <devices>-    <device name="" package="TO-252-2">+    <device name="" package="MC79M05BDTRKG">       <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="GND" pad="1"/>+        <connect gate="G$1" pin="VI" pad="2"/>+        <connect gate="G$1" pin="TAB" pad="2"/>+        <connect gate="G$1" pin="VO" pad="3"/>       </connects>       <technologies><technology name=""/></technologies>     </device>
package.json+2−1
@@ -25,6 +25,7 @@     "docs/mc79m05bdtrkg-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": "VI",+   "pin": "4",+   "name": "TAB",    "type": "power_in",-   "description": "Unregulated negative input supply. Absolute maximum input voltage is -35 Vdc. Must remain typically 1.1 V more negative than VO (dropout voltage) even during ripple peaks. A 0.33 uF input bypass capacitor (Cin) is recommended when the regulator is located an appreciable distance from the power supply filter.",+   "description": "Exposed thermal tab on the DPAK-3 package. Electrically connected to pin 1 (GND). Should be soldered to a copper pour for heat dissipation; copper area determines effective theta_JA (see Figure 1 on page 4).",    "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