← Commit history

symbol: the part is a 5-lead SOT-23 - the shipped footprint has 5 pads and the datasheet confirms it for this ordering suffix - but the symbol carried the 8-pin SOIC pinout. Pinout taken from this part's datasheet for its own ordering suffix. The library failed validate because the symbol declared pins the footprint has no pad for (connect-pad-unresolved), which also blocked its orderable attributes. Rebuilds the .lbr, re-derives pin 1 and pads.json.

Ray ·a470482e80 ·1mo ago ·parent 078b9fc
4 files changed +83−110
mcp6291t-e.kicad_sym+11−23
@@ -1,45 +1,33 @@ (kicad_symbol_lib (version 20211014) (generator ds2sf_rect)   (symbol "MCP6291T-E" (in_bom yes) (on_board yes)     (property "Reference" "U" (at 0 7.62 0) (effects (font (size 1.27 1.27))))-    (property "Value" "MCP6291T-E" (at 0 -10.16 0) (effects (font (size 1.27 1.27))))+    (property "Value" "MCP6291T-E" (at 0 -7.62 0) (effects (font (size 1.27 1.27))))     (property "Footprint" "" (at 0 0 0) (effects (font (size 1.27 1.27)) hide))     (symbol "MCP6291T-E_0_1"-    (rectangle (start -12.70 5.08) (end 12.70 -7.62)+    (rectangle (start -12.70 5.08) (end 12.70 -5.08)       (stroke (width 0.254) (type default)) (fill (type background)))     )     (symbol "MCP6291T-E_1_1"-    (pin no_connect line (at -17.78 2.54 0) (length 5.08)-      (name "NC" (effects (font (size 1.27 1.27))))+    (pin output line (at -17.78 2.54 0) (length 5.08)+      (name "VOUT" (effects (font (size 1.27 1.27))))       (number "1" (effects (font (size 1.27 1.27))))     )-    (pin input line (at -17.78 0.00 0) (length 5.08)-      (name "VIN-" (effects (font (size 1.27 1.27))))+    (pin power_in line (at -17.78 0.00 0) (length 5.08)+      (name "VSS" (effects (font (size 1.27 1.27))))       (number "2" (effects (font (size 1.27 1.27))))     )     (pin input line (at -17.78 -2.54 0) (length 5.08)       (name "VIN+" (effects (font (size 1.27 1.27))))       (number "3" (effects (font (size 1.27 1.27))))     )-    (pin power_in line (at -17.78 -5.08 0) (length 5.08)-      (name "VSS" (effects (font (size 1.27 1.27))))-      (number "4" (effects (font (size 1.27 1.27))))-    )-    (pin no_connect line (at 17.78 2.54 180) (length 5.08)-      (name "NC" (effects (font (size 1.27 1.27))))-      (number "8" (effects (font (size 1.27 1.27))))-    )-    (pin power_in line (at 17.78 0.00 180) (length 5.08)+    (pin power_in line (at 17.78 2.54 180) (length 5.08)       (name "VDD" (effects (font (size 1.27 1.27))))-      (number "7" (effects (font (size 1.27 1.27))))-    )-    (pin output line (at 17.78 -2.54 180) (length 5.08)-      (name "VOUT" (effects (font (size 1.27 1.27))))-      (number "6" (effects (font (size 1.27 1.27))))-    )-    (pin no_connect line (at 17.78 -5.08 180) (length 5.08)-      (name "NC" (effects (font (size 1.27 1.27))))       (number "5" (effects (font (size 1.27 1.27))))     )+    (pin input line (at 17.78 0.00 180) (length 5.08)+      (name "VIN-" (effects (font (size 1.27 1.27))))+      (number "4" (effects (font (size 1.27 1.27))))+    )     )   ) )
mcp6291t-e.lbr+40−23
@@ -50,15 +50,27 @@ <layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/> </layers> <library>-<description>SOT-23-5 (symbol synthesized from footprint pads)</description>+<description></description> <packages>-<package name="SOT-23-5">-  <description>SOT-23-5</description>+<package name="MCP6291T-E">+  <description>MCP6291T-E</description>   <smd name="1" x="-1.1375" y="0.9500" dx="1.3250" dy="0.6000" layer="1"/>   <smd name="2" x="-1.1375" y="-0.0000" dx="1.3250" dy="0.6000" layer="1"/>   <smd name="3" x="-1.1375" y="-0.9500" dx="1.3250" dy="0.6000" layer="1"/>   <smd name="4" x="1.1375" y="-0.9500" dx="1.3250" dy="0.6000" layer="1"/>   <smd name="5" x="1.1375" y="0.9500" dx="1.3250" dy="0.6000" layer="1"/>+  <polygon width="0.1200" layer="21">+    <vertex x="-1.4500" y="1.5100"/>+    <vertex x="-1.6900" y="1.8400"/>+    <vertex x="-1.2100" y="1.8400"/>+  </polygon>+  <polygon width="0.1000" layer="51">+    <vertex x="-0.4000" y="1.4500"/>+    <vertex x="0.8000" y="1.4500"/>+    <vertex x="0.8000" y="-1.4500"/>+    <vertex x="-0.8000" y="-1.4500"/>+    <vertex x="-0.8000" y="1.0500"/>+  </polygon>   <wire x1="-0.9100" y1="1.5600" x2="0.9100" y2="1.5600" width="0.1200" layer="21"/>   <wire x1="-0.9100" y1="1.5100" x2="-0.9100" y2="1.5600" width="0.1200" layer="21"/>   <wire x1="-0.9100" y1="-1.5600" x2="-0.9100" y2="-1.5100" width="0.1200" layer="21"/>@@ -71,36 +83,41 @@ <!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-1.4500" y="1.5100"/><vertex x="-1.6900" y="1.8400"/><vertex x="-1.2100" y="1.8400"/></polygon></package> </packages> <symbols>-<symbol name="SOT-23-5">-  <wire x1="-7.62" y1="5.08" x2="7.62" y2="5.08" width="0.254" layer="94"/>-  <wire x1="7.62" y1="5.08" x2="7.62" y2="-5.08" width="0.254" layer="94"/>-  <wire x1="7.62" y1="-5.08" x2="-7.62" y2="-5.08" width="0.254" layer="94"/>-  <wire x1="-7.62" y1="-5.08" x2="-7.62" y2="5.08" width="0.254" layer="94"/>+<symbol name="MCP6291T-E">+  <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="-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="5.08" width="0.254" layer="94"/>   <text x="0" y="7.62" 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="1" x="-12.7" y="3.81" length="short" direction="pas"/>-  <pin name="2" x="-12.7" y="1.27" length="short" direction="pas"/>-  <pin name="3" x="-12.7" y="-1.27" length="short" direction="pas"/>-  <pin name="4" x="12.7" y="3.81" length="short" direction="pas" rot="R180"/>-  <pin name="5" x="12.7" y="1.27" length="short" direction="pas" rot="R180"/>+  <pin name="VOUT" x="-17.78" y="2.54" length="middle" direction="out"/>+  <pin name="VSS" x="-17.78" y="0" length="middle" direction="pwr"/>+  <pin name="VIN+" x="-17.78" y="-2.54" length="middle" direction="in"/>+  <pin name="VDD" x="17.78" y="2.54" length="middle" direction="pwr" rot="R180"/>+  <pin name="VIN-" x="17.78" y="0" length="middle" direction="in" rot="R180"/> </symbol> </symbols> <devicesets>-<deviceset name="SOT-23-5" prefix="U">-  <description>SOT-23-5 (symbol synthesized from footprint pads)</description>+<deviceset name="MCP6291T-E" prefix="U">+  <description></description>   <gates>-    <gate name="G$1" symbol="SOT-23-5" x="0" y="0"/>+    <gate name="G$1" symbol="MCP6291T-E" x="0" y="0"/>   </gates>   <devices>-    <device name="" package="SOT-23-5">+    <device name="" package="MCP6291T-E">       <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="4" pad="4"/>-        <connect gate="G$1" pin="5" pad="5"/>+        <connect gate="G$1" pin="VOUT" pad="1"/>+        <connect gate="G$1" pin="VSS" pad="2"/>+        <connect gate="G$1" pin="VIN+" pad="3"/>+        <connect gate="G$1" pin="VDD" pad="5"/>+        <connect gate="G$1" pin="VIN-" pad="4"/>       </connects>-      <technologies><technology name=""/></technologies>+      <technologies>+        <technology name="">+          <attribute name="MPN" value="MCP6291T-E" constant="no"/>+          <attribute name="MANUFACTURER" value="Microchip" constant="no"/>+        </technology>+      </technologies>     </device>   </devices> </deviceset>
pads.json+15−34
@@ -23,29 +23,10 @@   "2",   "3",   "4",-  "5",-  "6",-  "7",-  "8"+  "5"  ],  "paste_apertures": 0,- "issues": [-  {-   "kind": "pin-has-no-pad",-   "pin": "6",-   "detail": "the symbol declares pin \"6\" but the footprint has no such pad"-  },-  {-   "kind": "pin-has-no-pad",-   "pin": "7",-   "detail": "the symbol declares pin \"7\" but the footprint has no such pad"-  },-  {-   "kind": "pin-has-no-pad",-   "pin": "8",-   "detail": "the symbol declares pin \"8\" but the footprint has no such pad"-  }- ],+ "issues": [],  "pads": [   {    "pad": "1",@@ -67,9 +48,9 @@    ],    "thermal": false,    "pin": "1",-   "name": "NC",-   "type": "unconnected",-   "description": "No internal connection. Pad may be left floating; not electrically bonded to the die.",+   "name": "VOUT",+   "type": "output",+   "description": "Analog output of the op amp. Low-impedance voltage source; rail-to-rail output swing to within ~15 mV of VDD and VSS with a 10 kOhm load. Continuous short-circuit tolerant (ISC ~ +/-25 mA).",    "is_pin1": true,    "source": {     "geometry": "SOT-23-5.kicad_mod",@@ -97,9 +78,9 @@    ],    "thermal": false,    "pin": "2",-   "name": "VIN-",-   "type": "input",-   "description": "Inverting analog input of the op amp. High-impedance CMOS input with typical bias current of ±1 pA. Common-mode input range extends from VSS - 0.3V to VDD + 0.3V.",+   "name": "VSS",+   "type": "power_in",+   "description": "Negative power supply / ground reference. Typically tied to GND in single-supply operation. VDD - VSS operating range 2.4V to 6.0V; absolute maximum VDD - VSS = 7.0V.",    "is_pin1": false,    "source": {     "geometry": "SOT-23-5.kicad_mod",@@ -129,7 +110,7 @@    "pin": "3",    "name": "VIN+",    "type": "input",-   "description": "Non-inverting analog input of the op amp. High-impedance CMOS input with typical bias current of ±1 pA. Rail-to-rail input capability across the supply range.",+   "description": "Non-inverting analog input. High-impedance CMOS input (~1E13 Ohm || 6 pF common-mode) with ~+/-1 pA typical input bias current. Rail-to-rail common-mode range: VSS - 0.3V to VDD + 0.3V. ESD-clamped to VSS and VDD.",    "is_pin1": false,    "source": {     "geometry": "SOT-23-5.kicad_mod",@@ -157,9 +138,9 @@    ],    "thermal": false,    "pin": "4",-   "name": "VSS",-   "type": "power_in",-   "description": "Negative power supply pin. Tied to ground in single-supply configuration. Must be 2.4V to 6.0V below VDD.",+   "name": "VIN-",+   "type": "input",+   "description": "Inverting analog input. High-impedance CMOS input with ~+/-1 pA typical input bias current and ~1E13 Ohm || 3 pF differential input impedance. Same rail-to-rail common-mode range and ESD clamping as VIN+.",    "is_pin1": false,    "source": {     "geometry": "SOT-23-5.kicad_mod",@@ -187,9 +168,9 @@    ],    "thermal": false,    "pin": "5",-   "name": "NC",-   "type": "unconnected",-   "description": "No internal connection. Pad may be left floating; not electrically bonded to the die.",+   "name": "VDD",+   "type": "power_in",+   "description": "Positive power supply. Operating range 2.4V to 6.0V referenced to VSS (drawing ~1.0 mA typical quiescent current). Bypass with a local ceramic capacitor per the datasheet layout guidance.",    "is_pin1": false,    "source": {     "geometry": "SOT-23-5.kicad_mod",
page.json+17−30
@@ -15,7 +15,7 @@     "mpn": "MCP6291T-E",     "manufacturer": "Microchip",     "package": "SOT-23-5",-    "pin_count": 8,+    "pin_count": 5,     "category": "Op-amp/Cmp",     "subcategory": "Operational Amplifier",     "datasheet": "https://datasheet.lcsc.com/datasheet/pdf/1654ee075ed2b5ce3684c029a8a1c2c6.pdf",@@ -30,51 +30,38 @@     "pins": [       {         "number": "1",-        "name": "NC",-        "type": "unconnected",-        "description": "No internal connection. Pad may be left floating; not electrically bonded to the die."+        "name": "VOUT",+        "type": "output",+        "description": "Analog output of the op amp. Low-impedance voltage source; rail-to-rail output swing to within ~15 mV of VDD and VSS with a 10 kOhm load. Continuous short-circuit tolerant (ISC ~ +/-25 mA).",+        "group": "OTHER"       },       {         "number": "2",-        "name": "VIN-",-        "type": "input",-        "description": "Inverting analog input of the op amp. High-impedance CMOS input with typical bias current of ±1 pA. Common-mode input range extends from VSS - 0.3V to VDD + 0.3V."+        "name": "VSS",+        "type": "power_in",+        "description": "Negative power supply / ground reference. Typically tied to GND in single-supply operation. VDD - VSS operating range 2.4V to 6.0V; absolute maximum VDD - VSS = 7.0V.",+        "group": "POWER"       },       {         "number": "3",         "name": "VIN+",         "type": "input",-        "description": "Non-inverting analog input of the op amp. High-impedance CMOS input with typical bias current of ±1 pA. Rail-to-rail input capability across the supply range."+        "description": "Non-inverting analog input. High-impedance CMOS input (~1E13 Ohm || 6 pF common-mode) with ~+/-1 pA typical input bias current. Rail-to-rail common-mode range: VSS - 0.3V to VDD + 0.3V. ESD-clamped to VSS and VDD.",+        "group": "OTHER"       },       {         "number": "4",-        "name": "VSS",-        "type": "power_in",-        "description": "Negative power supply pin. Tied to ground in single-supply configuration. Must be 2.4V to 6.0V below VDD."+        "name": "VIN-",+        "type": "input",+        "description": "Inverting analog input. High-impedance CMOS input with ~+/-1 pA typical input bias current and ~1E13 Ohm || 3 pF differential input impedance. Same rail-to-rail common-mode range and ESD clamping as VIN+.",+        "group": "OTHER"       },       {         "number": "5",-        "name": "NC",-        "type": "unconnected",-        "description": "No internal connection. Pad may be left floating; not electrically bonded to the die."-      },-      {-        "number": "6",-        "name": "VOUT",-        "type": "output",-        "description": "Low-impedance analog output. Rail-to-rail output swing (typically within 15 mV of the supply rails with a 10 kΩ load). Short-circuit current ±25 mA."-      },-      {-        "number": "7",         "name": "VDD",         "type": "power_in",-        "description": "Positive power supply pin, 2.4V to 6.0V above VSS. Quiescent current 1.0 mA typical per amplifier. Requires a local 0.01-0.1 µF bypass capacitor within 2 mm plus a bulk 1 µF within 100 mm."-      },-      {-        "number": "8",-        "name": "NC",-        "type": "unconnected",-        "description": "No internal connection. Pad may be left floating; not electrically bonded to the die."+        "description": "Positive power supply. Operating range 2.4V to 6.0V referenced to VSS (drawing ~1.0 mA typical quiescent current). Bypass with a local ceramic capacitor per the datasheet layout guidance.",+        "group": "POWER"       }     ],     "provenance": {