← Commit history

cd4521bm96: .lbr and symbol viewer from adom-lbr 2.47.10 (primes, overbars)

Ray ·c33f94d573 · ·parent dd96857
2 files changed +24−12
cd4521bm96.lbr+22−11
@@ -50,7 +50,7 @@ <layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/> </layers> <library>-<description></description>+<description>Texas Instruments Counters, Dividers, SOIC-16. Pinout cross-checked by two models against the datasheet</description> <packages> <package name="SOIC-16_3.9x9.9mm_P1.27mm">   <description>SOIC-16, 3.9 x 9.9 mm, 1.27 mm pitch</description>@@ -94,6 +94,7 @@ </packages> <symbols> <symbol name="CD4521BM96">+  <description>Texas Instruments Counters, Dividers, SOIC-16. Pinout cross-checked by two models against the datasheet</description>   <wire x1="-12.7" y1="10.16" x2="12.7" y2="10.16" width="0.254" layer="94"/>   <wire x1="12.7" y1="10.16" x2="12.7" y2="-12.7" width="0.254" layer="94"/>   <wire x1="12.7" y1="-12.7" x2="-12.7" y2="-12.7" width="0.254" layer="94"/>@@ -102,13 +103,13 @@   <text x="0.0000" y="-15.2400" size="1.27" layer="96" align="center">&gt;VALUE</text>   <pin name="Q24" x="-17.78" y="7.62" length="middle" direction="out"/>   <pin name="RESET" x="-17.78" y="5.08" length="middle" direction="in"/>-  <pin name="VSS" x="-17.78" y="2.54" length="middle" direction="pwr"/>+  <pin name="VSS_P" x="-17.78" y="2.54" length="middle" direction="pwr"/>   <pin name="OUT_2" x="-17.78" y="0" length="middle" direction="out"/>-  <pin name="VDD" x="-17.78" y="-2.54" length="middle" direction="pwr"/>+  <pin name="VDD_P" x="-17.78" y="-2.54" length="middle" direction="pwr"/>   <pin name="IN_2" x="-17.78" y="-5.08" length="middle" direction="in"/>   <pin name="OUT_1" x="-17.78" y="-7.62" length="middle" direction="out"/>-  <pin name="VSS@2" x="-17.78" y="-10.16" length="middle" direction="pwr"/>-  <pin name="VDD@2" x="17.78" y="7.62" length="middle" direction="pwr" rot="R180"/>+  <pin name="VSS" x="-17.78" y="-10.16" length="middle" direction="pwr"/>+  <pin name="VDD" x="17.78" y="7.62" length="middle" direction="pwr" rot="R180"/>   <pin name="Q23" x="17.78" y="5.08" length="middle" direction="out" rot="R180"/>   <pin name="Q22" x="17.78" y="2.54" length="middle" direction="out" rot="R180"/>   <pin name="Q21" x="17.78" y="0" length="middle" direction="out" rot="R180"/>@@ -120,7 +121,7 @@ </symbols> <devicesets> <deviceset name="CD4521BM96" prefix="U">-  <description></description>+  <description>Texas Instruments Counters, Dividers, SOIC-16. Pinout cross-checked by two models against the datasheet</description>   <gates>     <gate name="G$1" symbol="CD4521BM96" x="0" y="0"/>   </gates>@@ -129,13 +130,13 @@       <connects>         <connect gate="G$1" pin="Q24" pad="1"/>         <connect gate="G$1" pin="RESET" pad="2"/>-        <connect gate="G$1" pin="VSS" pad="3"/>+        <connect gate="G$1" pin="VSS_P" pad="3"/>         <connect gate="G$1" pin="OUT_2" pad="4"/>-        <connect gate="G$1" pin="VDD" pad="5"/>+        <connect gate="G$1" pin="VDD_P" pad="5"/>         <connect gate="G$1" pin="IN_2" pad="6"/>         <connect gate="G$1" pin="OUT_1" pad="7"/>-        <connect gate="G$1" pin="VSS@2" pad="8"/>-        <connect gate="G$1" pin="VDD@2" pad="16"/>+        <connect gate="G$1" pin="VSS" pad="8"/>+        <connect gate="G$1" pin="VDD" pad="16"/>         <connect gate="G$1" pin="Q23" pad="15"/>         <connect gate="G$1" pin="Q22" pad="14"/>         <connect gate="G$1" pin="Q21" pad="13"/>@@ -144,7 +145,17 @@         <connect gate="G$1" pin="Q18" pad="10"/>         <connect gate="G$1" pin="IN_1" pad="9"/>       </connects>-      <technologies><technology name=""/></technologies>+      <technologies>+        <technology name="">+          <attribute name="MPN" value="CD4521BM96" constant="no"/>+          <attribute name="MANUFACTURER" value="Texas Instruments" constant="no"/>+          <attribute name="DATASHEET" value="https://www.ti.com/cn/lit/gpn/cd4521b" constant="no"/>+          <attribute name="ADOM_WIKI" value="https://wiki.adom.inc/adom/cd4521bm96" constant="no"/>+          <attribute name="MOUSER_PN" value="595-CD4521BM96" constant="no"/>+          <attribute name="DIGIKEY_PN" value="296-31533-2-ND" constant="no"/>+          <attribute name="LCSC_PN" value="C544662" constant="no"/>+        </technology>+      </technologies>     </device>   </devices> </deviceset>
viewers/symbol.html+2−1
@@ -44,7 +44,8 @@ function els(n){return [].slice.call(document.querySelectorAll('[data-num="'+n+' function clearHi(){[].slice.call(document.querySelectorAll('.hi')).forEach(function(e){e.classList.remove('hi');});} function hi(n){els(n).forEach(function(e){e.classList.add('hi');});} function post(n){try{parent.postMessage({type:'lbr-hover',pin:n===null?null:String(n),mpn:MPN},'*');}catch(_){}}-function showTip(n,x,y){var p=byNum[String(n)];if(!p)return;tip.innerHTML='<span class=tn></span><div class=tt></div><div class=td></div>';tip.querySelector('.tn').textContent=n+'  '+(p.name||'');tip.querySelector('.tt').textContent=p.type||'';var d=p.desc||'';if(d)tip.querySelector('.td').textContent=d;else tip.querySelector('.td').style.display='none';tip.style.display='block';tip.style.left=(x+14)+'px';tip.style.top=(y+12)+'px';}+function ovName(el,pre,nm){el.textContent=pre;var r=nm,i;while((i=r.indexOf('~{'))>=0){el.appendChild(document.createTextNode(r.slice(0,i)));var a=r.slice(i+2),j=a.indexOf('}'),s=document.createElement('span');s.style.textDecoration='overline';s.textContent=j<0?a:a.slice(0,j);el.appendChild(s);r=j<0?'':a.slice(j+1);}el.appendChild(document.createTextNode(r));}+function showTip(n,x,y){var p=byNum[String(n)];if(!p)return;tip.innerHTML='<span class=tn></span><div class=tt></div><div class=td></div>';ovName(tip.querySelector('.tn'),n+'  ',p.name||'');tip.querySelector('.tt').textContent=p.type||'';var d=p.desc||'';if(d)tip.querySelector('.td').textContent=d;else tip.querySelector('.td').style.display='none';tip.style.display='block';tip.style.left=(x+14)+'px';tip.style.top=(y+12)+'px';} [].slice.call(document.querySelectorAll('.pingroup,.pad')).forEach(function(g){   var n=g.getAttribute('data-num');   g.addEventListener('mouseenter',function(e){clearHi();hi(n);post(n);showTip(n,e.clientX,e.clientY);});