← Commit history

24aa32at-i: SOT-23-5 pinout from the datasheet pin function table; the page carried the 8-pin package pins A0-A2 on a 5-pad land

Ray ·16f4dbb88b · ·parent 365de39
5 files changed +74−95
24aa32at-i.kicad_sym+12−24
@@ -1,45 +1,33 @@ (kicad_symbol_lib (version 20211014) (generator ds2sf_rect)   (symbol "24AA32AT-I" (in_bom yes) (on_board yes)-    (property "Reference" "U" (at 0 7.62 0) (effects (font (size 1.27 1.27))))-    (property "Value" "24AA32AT-I" (at 0 -10.16 0) (effects (font (size 1.27 1.27))))+    (property "Reference" "D" (at 0 7.62 0) (effects (font (size 1.27 1.27))))+    (property "Value" "24AA32AT-I" (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 "24AA32AT-I_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 "24AA32AT-I_1_1"     (pin input line (at -17.78 2.54 0) (length 5.08)-      (name "A0" (effects (font (size 1.27 1.27))))+      (name "SCL" (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 "A1" (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 "A2" (effects (font (size 1.27 1.27))))+    (pin bidirectional line (at -17.78 -2.54 0) (length 5.08)+      (name "SDA" (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 power_in line (at 17.78 2.54 180) (length 5.08)-      (name "VCC" (effects (font (size 1.27 1.27))))-      (number "8" (effects (font (size 1.27 1.27))))-    )     (pin input line (at 17.78 0.00 180) (length 5.08)       (name "WP" (effects (font (size 1.27 1.27))))-      (number "7" (effects (font (size 1.27 1.27))))-    )-    (pin input line (at 17.78 -2.54 180) (length 5.08)-      (name "SCL" (effects (font (size 1.27 1.27))))-      (number "6" (effects (font (size 1.27 1.27))))-    )-    (pin bidirectional line (at 17.78 -5.08 180) (length 5.08)-      (name "SDA" (effects (font (size 1.27 1.27))))       (number "5" (effects (font (size 1.27 1.27))))     )+    (pin power_in line (at 17.78 -2.54 180) (length 5.08)+      (name "VCC" (effects (font (size 1.27 1.27))))+      (number "4" (effects (font (size 1.27 1.27))))+    )     )   ) )
24aa32at-i.lbr+29−23
@@ -50,7 +50,7 @@ <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>Microchip EEPROM, SOT-23-5</description> <packages> <package name="SOT-23-5">   <description>5 pads, 3.6 x 2.5 mm. SOT, 5 Pin</description>@@ -83,37 +83,43 @@ </package> </packages> <symbols>-<symbol name="SOT-23-5">-  <description>SOT-23-5 (symbol synthesized from footprint pads)</description>-  <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"/>-  <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"/>+<symbol name="24AA32AT-I">+  <description>Microchip EEPROM, SOT-23-5</description>+  <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.0000" y="7.6200" size="1.27" layer="95" align="center">&gt;NAME</text>+  <text x="0.0000" y="-7.6200" size="1.27" layer="96" align="center">&gt;VALUE</text>+  <pin name="SCL" x="-17.78" y="2.54" length="middle" direction="in"/>+  <pin name="VSS" x="-17.78" y="0" length="middle" direction="pwr"/>+  <pin name="SDA" x="-17.78" y="-2.54" length="middle" direction="io"/>+  <pin name="WP" x="17.78" y="0" length="middle" direction="in" rot="R180"/>+  <pin name="VCC" x="17.78" y="-2.54" length="middle" direction="pwr" rot="R180"/> </symbol> </symbols> <devicesets>-<deviceset name="SOT-23-5" prefix="U">-  <description>SOT-23-5 (symbol synthesized from footprint pads)</description>+<deviceset name="24AA32AT-I" prefix="D">+  <description>Microchip EEPROM, SOT-23-5</description>   <gates>-    <gate name="G$1" symbol="SOT-23-5" x="0" y="0"/>+    <gate name="G$1" symbol="24AA32AT-I" x="0" y="0"/>   </gates>   <devices>     <device name="" package="SOT-23-5">       <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="SCL" pad="1"/>+        <connect gate="G$1" pin="VSS" pad="2"/>+        <connect gate="G$1" pin="SDA" pad="3"/>+        <connect gate="G$1" pin="WP" pad="5"/>+        <connect gate="G$1" pin="VCC" pad="4"/>       </connects>-      <technologies><technology name=""/></technologies>+      <technologies>+        <technology name="">+          <attribute name="MPN" value="24AA32AT-I" constant="no"/>+          <attribute name="MANUFACTURER" value="Microchip" constant="no"/>+          <attribute name="ADOM_WIKI" value="https://wiki.adom.inc/adom/24aa32at-i" constant="no"/>+        </technology>+      </technologies>     </device>   </devices> </deviceset>
README.md+5−8
@@ -8,14 +8,11 @@  | Pin | Name | Type | Function | |---|---|---|---|-| 1 | A0 | input | Chip Address Input bit 0. Compared with the corresponding bit of the I2C slave address; the chip responds only when all three A[2:0] bits match. Must be tied to VCC or VSS (never left floating). |-| 2 | A1 | input | Chip Address Input bit 1. Compared with the corresponding bit of the I2C slave address; must be strapped to VCC or VSS. Combining A[2:0] allows up to eight 24AA32A devices to share one I2C bus (256 Kbit total). |-| 3 | A2 | input | Chip Address Input bit 2. Compared with the corresponding bit of the I2C slave address; must be tied to VCC or VSS. Forms the three MSBs of the 7-bit slave-address chip-select field along with A0/A1. |-| 4 | VSS | power_in | Ground reference for the device. All input thresholds and I2C signal levels are referenced to VSS. |-| 5 | SDA | bidirectional | I2C Serial Data (open-drain, bidirectional). Requires an external pull-up to VCC (typ. 10 kΩ for 100 kHz, 2 kΩ for 400 kHz). Schmitt-trigger input with slope-controlled output; must change only while SCL is low except for Start/Stop conditions. |-| 6 | SCL | input | I2C Serial Clock input driven by the bus master; synchronizes all data transfers to/from the device. Schmitt-trigger input; supports 100 kHz standard-mode and 400 kHz fast-mode (400 kHz requires VCC ≥ 2.5 V on 24AA32A). |-| 7 | WP | input | Write-Protect input. Tie to VSS to enable write operations; tie to VCC to inhibit all write operations (read operations are unaffected). Must not be left floating. |-| 8 | VCC | power_in | Positive supply input: +1.7 V to +5.5 V for 24AA32A (2.5 V to 5.5 V for 24LC32A). Typical operating current is 1 mA during writes and standby current is 1 µA. Bypass with a local decoupling capacitor to VSS. |+| 1 | SCL | input | Serial Clock (datasheet pin function table, SOT-23 column: pin 1). |+| 2 | VSS | power_in | Ground (SOT-23 pin 2). |+| 3 | SDA | bidirectional | Serial Address/Data I/O (SOT-23 pin 3). |+| 4 | VCC | power_in | +1.7V to 5.5V Power Supply (SOT-23 pin 4). |+| 5 | WP | input | Write-Protect Input (SOT-23 pin 5). A0, A1, A2 are not available in the SOT-23 package (datasheet). |  ## Key specifications 
page.json+23−36
@@ -31,8 +31,7 @@     "public": true   },   "author": {-    "name": "Ray",-    "email": "[email protected]"+    "name": "Ray"   },   "component": {     "mpn": "24AA32AT-I",@@ -52,55 +51,43 @@     "pins": [       {         "number": "1",-        "name": "A0",+        "name": "SCL",         "type": "input",-        "description": "Chip Address Input bit 0. Compared with the corresponding bit of the I2C slave address; the chip responds only when all three A[2:0] bits match. Must be tied to VCC or VSS (never left floating)."+        "description": "Serial Clock (datasheet pin function table, SOT-23 column: pin 1)."       },       {         "number": "2",-        "name": "A1",-        "type": "input",-        "description": "Chip Address Input bit 1. Compared with the corresponding bit of the I2C slave address; must be strapped to VCC or VSS. Combining A[2:0] allows up to eight 24AA32A devices to share one I2C bus (256 Kbit total)."-      },-      {-        "number": "3",-        "name": "A2",-        "type": "input",-        "description": "Chip Address Input bit 2. Compared with the corresponding bit of the I2C slave address; must be tied to VCC or VSS. Forms the three MSBs of the 7-bit slave-address chip-select field along with A0/A1."-      },-      {-        "number": "4",         "name": "VSS",         "type": "power_in",-        "description": "Ground reference for the device. All input thresholds and I2C signal levels are referenced to VSS."+        "description": "Ground (SOT-23 pin 2)."       },       {-        "number": "5",+        "number": "3",         "name": "SDA",         "type": "bidirectional",-        "description": "I2C Serial Data (open-drain, bidirectional). Requires an external pull-up to VCC (typ. 10 kΩ for 100 kHz, 2 kΩ for 400 kHz). Schmitt-trigger input with slope-controlled output; must change only while SCL is low except for Start/Stop conditions."+        "description": "Serial Address/Data I/O (SOT-23 pin 3)."       },       {-        "number": "6",-        "name": "SCL",-        "type": "input",-        "description": "I2C Serial Clock input driven by the bus master; synchronizes all data transfers to/from the device. Schmitt-trigger input; supports 100 kHz standard-mode and 400 kHz fast-mode (400 kHz requires VCC ≥ 2.5 V on 24AA32A)."+        "number": "4",+        "name": "VCC",+        "type": "power_in",+        "description": "+1.7V to 5.5V Power Supply (SOT-23 pin 4)."       },       {-        "number": "7",+        "number": "5",         "name": "WP",         "type": "input",-        "description": "Write-Protect input. Tie to VSS to enable write operations; tie to VCC to inhibit all write operations (read operations are unaffected). Must not be left floating."-      },-      {-        "number": "8",-        "name": "VCC",-        "type": "power_in",-        "description": "Positive supply input: +1.7 V to +5.5 V for 24AA32A (2.5 V to 5.5 V for 24LC32A). Typical operating current is 1 mA during writes and standby current is 1 µA. Bypass with a local decoupling capacitor to VSS."+        "description": "Write-Protect Input (SOT-23 pin 5). A0, A1, A2 are not available in the SOT-23 package (datasheet)."       }     ],     "provenance": {-      "rebuilt": "component block rebuilt 2026-10-05 from this page's own README pinout table and .kicad_sym (pins cross-checked), no re-extraction"+      "rebuilt": "component block rebuilt 2026-10-05 from this page's own README pinout table and .kicad_sym (pins cross-checked), no re-extraction",+      "kind_fix": {+        "what": "SOT-23-5 pinout from the datasheet pin function table; the page carried the 8-pin package pins A0-A2 on a 5-pad land",+        "from": "filed as TVS/Fuse/Board Level Protection with \"unpolarised fuse\" pins",+        "read_by": "part-reviewer, checked against the datasheet",+        "set": "2026-11-12T00:16:38Z"+      }     },     "viewers": {       "symbol": "viewers/symbol.html",@@ -135,8 +122,8 @@           2.9,           1.55         ],-        "zmin_mm": 0.0,-        "centre_offset_mm": 0.0,+        "zmin_mm": 0,+        "centre_offset_mm": 0,         "footprint_binding": "identity",         "sha256": "720a6eab0024069bbee68e7cb4c3ff1149468a34611225cdc852662c5d0ec2b7",         "checked": "2026-10-07",@@ -154,8 +141,8 @@           2.9,           1.55         ],-        "zmin_mm": 0.0,-        "centre_offset_mm": 0.0,+        "zmin_mm": 0,+        "centre_offset_mm": 0,         "footprint_binding": "identity",         "sha256": "a3475d06ccef11ca588297beff9ce876f484cbb4eb66ce7929dde7124fda9e81",         "checked": "2026-10-07",
viewers/symbol.html+5−4
@@ -1,5 +1,5 @@ <!doctype html><html lang=en><head><meta charset=utf-8>-<meta name=viewport content="width=device-width,initial-scale=1"><title>RAY/24AA32AT-I symbol</title>+<meta name=viewport content="width=device-width,initial-scale=1"><title>ADOM/24AA32AT-I symbol</title> <style> :root{--bg:#0d1117;--panel:#161b22;--edge:#30363d;--ink:#e6edf3;--mut:#8b949e;--acc:#00b8b0;--accb:#00e6dc;--hi:#6ea8fe} *{box-sizing:border-box;margin:0}html,body{height:100%}@@ -23,10 +23,10 @@ rect.pad.hi{stroke:var(--hi);stroke-width:.15;paint-order:stroke} #tip .td{font-size:11px;color:var(--ink);margin-top:5px;line-height:1.4} </style></head><body> <div class=bar><span class=h>Schematic symbol</span><span class=sp></span></div>-<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-750 -300 1500 600' style='width:100%;height:100%'><rect x='-500.0' y='-250.0' width='1000.0' height='500.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='A0'><line class='pinvis' x1='-700.0' y1='-150.0' x2='-500.0' y2='-150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='-150.0' x2='-500.0' y2='-150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='-105.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='-470.0' y='-150.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>A0</text><g class='pingroup' data-num='2' data-name='A1'><line class='pinvis' x1='-700.0' y1='-50.0' x2='-500.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='-50.0' x2='-500.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='-5.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='-470.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>A1</text><g class='pingroup' data-num='3' data-name='A2'><line class='pinvis' x1='-700.0' y1='50.0' x2='-500.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='50.0' x2='-500.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='95.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>3</text><text x='-470.0' y='50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>A2</text><g class='pingroup' data-num='4' data-name='VSS'><line class='pinvis' x1='-700.0' y1='150.0' x2='-500.0' y2='150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='150.0' x2='-500.0' y2='150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='195.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>4</text><text x='-470.0' y='150.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>VSS</text><g class='pingroup' data-num='8' data-name='VCC'><line class='pinvis' x1='700.0' y1='-150.0' x2='500.0' y2='-150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='-150.0' x2='500.0' y2='-150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='-195.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>8</text><text x='470.0' y='-150.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>VCC</text><g class='pingroup' data-num='7' data-name='WP'><line class='pinvis' x1='700.0' y1='-50.0' x2='500.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='-50.0' x2='500.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='-95.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>7</text><text x='470.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>WP</text><g class='pingroup' data-num='6' data-name='SCL'><line class='pinvis' x1='700.0' y1='50.0' x2='500.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='50.0' x2='500.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='5.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>6</text><text x='470.0' y='50.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>SCL</text><g class='pingroup' data-num='5' data-name='SDA'><line class='pinvis' x1='700.0' y1='150.0' x2='500.0' y2='150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='150.0' x2='500.0' y2='150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='105.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>5</text><text x='470.0' y='150.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>SDA</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-750 -250 1500 500' style='width:100%;height:100%'><rect x='-500.0' y='-200.0' width='1000.0' height='400.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='SCL'><line class='pinvis' x1='-700.0' y1='-100.0' x2='-500.0' y2='-100.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='-100.0' x2='-500.0' y2='-100.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='-55.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='-470.0' y='-100.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>SCL</text><g class='pingroup' data-num='2' data-name='VSS'><line class='pinvis' x1='-700.0' y1='-0.0' x2='-500.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='-0.0' x2='-500.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='45.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='-470.0' y='0.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>VSS</text><g class='pingroup' data-num='3' data-name='SDA'><line class='pinvis' x1='-700.0' y1='100.0' x2='-500.0' y2='100.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='100.0' x2='-500.0' y2='100.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='145.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>3</text><text x='-470.0' y='100.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>SDA</text><g class='pingroup' data-num='5' data-name='WP'><line class='pinvis' x1='700.0' y1='-0.0' x2='500.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='-0.0' x2='500.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='-45.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>5</text><text x='470.0' y='0.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>WP</text><g class='pingroup' data-num='4' data-name='VCC'><line class='pinvis' x1='700.0' y1='100.0' x2='500.0' y2='100.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='100.0' x2='500.0' y2='100.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='55.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>4</text><text x='470.0' y='100.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>VCC</text></svg></div> <div id=tip></div> <script>-var KIND="symbol", MPN="RAY/24AA32AT-I", PINS=[{"desc":"","name":"A0","number":"1","type":""},{"desc":"","name":"A1","number":"2","type":""},{"desc":"","name":"A2","number":"3","type":""},{"desc":"","name":"VSS","number":"4","type":""},{"desc":"","name":"VCC","number":"8","type":""},{"desc":"","name":"WP","number":"7","type":""},{"desc":"","name":"SCL","number":"6","type":""},{"desc":"","name":"SDA","number":"5","type":""}];+var KIND="symbol", MPN="ADOM/24AA32AT-I", PINS=[{"desc":"","name":"SCL","number":"1","type":""},{"desc":"","name":"VSS","number":"2","type":""},{"desc":"","name":"SDA","number":"3","type":""},{"desc":"","name":"WP","number":"5","type":""},{"desc":"","name":"VCC","number":"4","type":""}]; var byNum={}; PINS.forEach(function(p){byNum[String(p.number)]=p;}); var stage=document.getElementById('stage'), svg=stage.querySelector('svg'), tip=document.getElementById('tip'); // ---- pan/zoom ----@@ -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);});