← Commit history

orderable attributes: rebuild .lbr with adom-lbr 2.18.0 so MPN, MANUFACTURER and the distributor part numbers reach <technology> (LCSC_PN C559031). The published library carried no attributes at all, so a BOM had nothing to buy from. Distributor PNs matched on exact MPN AND corroborating manufacturer.

Ray ·8f3b1c9d5c · ·parent 4955b7d
2 files changed +33−13
cn3163.lbr+24−6
@@ -63,6 +63,18 @@   <smd name="7" x="2.4750" y="0.6350" dx="1.9500" dy="0.6000" layer="1"/>   <smd name="8" x="2.4750" y="1.9050" dx="1.9500" dy="0.6000" layer="1"/>   <smd name="9" x="0.0000" y="-0.0000" dx="2.4100" dy="3.3000" layer="1"/>+  <polygon width="0.1200" layer="21">+    <vertex x="-2.6000" y="2.4700"/>+    <vertex x="-2.8400" y="2.8000"/>+    <vertex x="-2.3600" y="2.8000"/>+  </polygon>+  <polygon width="0.1000" layer="51">+    <vertex x="-0.9750" y="2.4500"/>+    <vertex x="1.9500" y="2.4500"/>+    <vertex x="1.9500" y="-2.4500"/>+    <vertex x="-1.9500" y="-2.4500"/>+    <vertex x="-1.9500" y="1.4750"/>+  </polygon>   <wire x1="-2.0600" y1="2.5600" x2="2.0600" y2="2.5600" width="0.1200" layer="21"/>   <wire x1="-2.0600" y1="2.4650" x2="-2.0600" y2="2.5600" width="0.1200" layer="21"/>   <wire x1="-2.0600" y1="-2.5600" x2="-2.0600" y2="-2.4650" width="0.1200" layer="21"/>@@ -71,7 +83,7 @@   <wire x1="2.0600" y1="-2.5600" x2="-2.0600" y2="-2.5600" width="0.1200" layer="21"/>   <text x="0" y="3.480" size="1.27" layer="25" align="bottom-center">&gt;NAME</text>   <text x="0" y="-3.480" size="1.27" layer="27" align="top-center">&gt;VALUE</text>-<!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-2.6000" y="2.4700"/><vertex x="-2.8400" y="2.8000"/><vertex x="-2.3600" y="2.8000"/></polygon></package>+</package> </packages> <symbols> <symbol name="CN3163">@@ -86,8 +98,8 @@   <pin name="GND" x="-16.509999999999998" y="-2.539999999999999" length="middle" direction="pwr"/>   <pin name="VIN" x="-16.509999999999998" y="-7.620000000000001" length="middle" direction="pwr"/>   <pin name="BAT" x="-16.509999999999998" y="0" length="middle" direction="out"/>-  <pin name="~{DONE}" x="16.509999999999998" y="7.62" length="middle" direction="oc" rot="R180"/>-  <pin name="~{CHRG}" x="16.509999999999998" y="10.16" length="middle" direction="oc" rot="R180"/>+  <pin name="DONE" x="16.509999999999998" y="7.62" length="middle" direction="oc" rot="R180"/>+  <pin name="CHRG" x="16.509999999999998" y="10.16" length="middle" direction="oc" rot="R180"/>   <pin name="FB" x="-16.509999999999998" y="10.16" length="middle" direction="in"/>   <pin name="GND@2" x="-16.509999999999998" y="-5.08" length="middle" direction="pas"/> </symbol>@@ -106,12 +118,18 @@         <connect gate="G$1" pin="GND" pad="3"/>         <connect gate="G$1" pin="VIN" pad="4"/>         <connect gate="G$1" pin="BAT" pad="5"/>-        <connect gate="G$1" pin="~{DONE}" pad="6"/>-        <connect gate="G$1" pin="~{CHRG}" pad="7"/>+        <connect gate="G$1" pin="DONE" pad="6"/>+        <connect gate="G$1" pin="CHRG" pad="7"/>         <connect gate="G$1" pin="FB" pad="8"/>         <connect gate="G$1" pin="GND@2" pad="9"/>       </connects>-      <technologies><technology name=""/></technologies>+      <technologies>+        <technology name="">+          <attribute name="MPN" value="CN3163" constant="no"/>+          <attribute name="MANUFACTURER" value="ShangHai Consonance Elec" constant="no"/>+          <attribute name="LCSC_PN" value="C559031" constant="no"/>+        </technology>+      </technologies>     </device>   </devices> </deviceset>
page.json+9−7
@@ -26,7 +26,9 @@       "model_3d_step": "cn3163.step",       "lbr": "cn3163.lbr"     },-    "distributor_links": {},+    "distributor_links": {+      "lcsc": "C559031"+    },     "pins": [       {         "number": "1",@@ -38,7 +40,7 @@         "number": "2",         "name": "ISET",         "type": "passive",-        "description": "Constant-current charge programming and charge-current monitor. Connect an external resistor R_ISET from ISET to GND to program the charge current. V(ISET) = 0.12 V in trickle mode and 1.205 V in constant-current mode. Charge current can be monitored as I_CH = (V_ISET × 986) / R_ISET."+        "description": "Constant-current charge programming and charge-current monitor. Connect an external resistor R_ISET from ISET to GND to program the charge current. V(ISET) = 0.12 V in trickle mode and 1.205 V in constant-current mode. Charge current can be monitored as I_CH = (V_ISET \u00d7 986) / R_ISET."       },       {         "number": "3",@@ -50,31 +52,31 @@         "number": "4",         "name": "VIN",         "type": "power_in",-        "description": "Positive supply input, 4.4 V to 6 V. Powers internal circuitry. When V(VIN) − V(BAT) < 10 mV the chip enters low-power sleep mode with BAT pin current < 3 μA."+        "description": "Positive supply input, 4.4 V to 6 V. Powers internal circuitry. When V(VIN) \u2212 V(BAT) < 10 mV the chip enters low-power sleep mode with BAT pin current < 3 \u03bcA."       },       {         "number": "5",         "name": "BAT",         "type": "power_out",-        "description": "Battery connection. Connect to the positive terminal of the Li-ion cell. Sources the charge current and constant-voltage charge voltage; draws < 3 μA in UVLO or sleep mode."+        "description": "Battery connection. Connect to the positive terminal of the Li-ion cell. Sources the charge current and constant-voltage charge voltage; draws < 3 \u03bcA in UVLO or sleep mode."       },       {         "number": "6",         "name": "DONE",         "type": "output",-        "description": "Open-drain end-of-charge status output (active-low). Pulled low by an internal switch when charging has terminated; otherwise high-impedance. Sink capability 10 mA at V_DONE = 0.3 V; leakage < 1 μA at 6 V."+        "description": "Open-drain end-of-charge status output (active-low). Pulled low by an internal switch when charging has terminated; otherwise high-impedance. Sink capability 10 mA at V_DONE = 0.3 V; leakage < 1 \u03bcA at 6 V."       },       {         "number": "7",         "name": "CHRG",         "type": "output",-        "description": "Open-drain charge-in-progress status output (active-low). Pulled low by an internal switch while charging is active; otherwise high-impedance. Sink capability 10 mA at V_CHRG = 0.3 V; leakage < 1 μA at 6 V."+        "description": "Open-drain charge-in-progress status output (active-low). Pulled low by an internal switch while charging is active; otherwise high-impedance. Sink capability 10 mA at V_CHRG = 0.3 V; leakage < 1 \u03bcA at 6 V."       },       {         "number": "8",         "name": "FB",         "type": "input",-        "description": "Battery voltage sense (feedback) input. Sense the battery positive terminal here to eliminate errors from wire/contact resistance between BAT pin and the cell. An external resistor between FB and BAT can be used to raise the constant-voltage charge voltage per V_REG = 4.2 + 3.707e-6 × Rx."+        "description": "Battery voltage sense (feedback) input. Sense the battery positive terminal here to eliminate errors from wire/contact resistance between BAT pin and the cell. An external resistor between FB and BAT can be used to raise the constant-voltage charge voltage per V_REG = 4.2 + 3.707e-6 \u00d7 Rx."       }     ],     "provenance": {