← Commit history

pinmap.json: symbol pin 4 (Vout(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 ·7c6a2fb0c9 ·2mo ago ·parent bded6db
4 files changed +33−33
bl1117-33cy.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="BL1117-33CY">+  <description>BL1117-33CY</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="BL1117-33CY">+  <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="Vout" x="-17.78" y="-2.54" length="middle" direction="out"/>+  <pin name="Vout(Tab)" x="17.78" y="0" length="middle" direction="out" rot="R180"/>+  <pin name="Vin" x="17.78" y="-2.54" length="middle" direction="pwr" rot="R180"/> </symbol> </symbols> <devicesets>-<deviceset name="TO-252-2" prefix="U">-  <description>TO-252-2 (symbol synthesized from footprint pads)</description>+<deviceset name="BL1117-33CY" prefix="U">+  <description></description>   <gates>-    <gate name="G$1" symbol="TO-252-2" x="0" y="0"/>+    <gate name="G$1" symbol="BL1117-33CY" x="0" y="0"/>   </gates>   <devices>-    <device name="" package="TO-252-2">+    <device name="" package="BL1117-33CY">       <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="Vout" pad="2"/>+        <connect gate="G$1" pin="Vout(Tab)" pad="2"/>+        <connect gate="G$1" pin="Vin" pad="3"/>       </connects>       <technologies><technology name=""/></technologies>     </device>
package.json+2−1
@@ -25,6 +25,7 @@     "docs/bl1117-33cy-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": "Vout",+   "pin": "4",+   "name": "Vout(Tab)",    "type": "power_out",-   "description": "Regulated 3.3V output (min 3.234V, typ 3.3V, max 3.366V). Supplies up to 1A load current with 10mV typical load regulation. Requires a 10µF tantalum or MLCC output capacitor for stability.",+   "description": "Exposed metal tab of the TO-252 (DPAK) package. Electrically fused to pin 2 (Vout) as is standard for this device family. Solder to a large copper pour to sink heat (θJC ≈ 10°C/W); this is the primary heat-dissipation path.",    "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