component
MCP3008
Public Made by Adomby adom
Microchip 8-channel 10-bit SPI ADC, SOIC-16. 200 ksps, single-ended or differential. The Raspberry Pi ADC. Datasheet-verified.
← Commit history
viewers/footprint.html+3−3@@ -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>MCP3008 footprint</title>+<meta name=viewport content="width=device-width,initial-scale=1"><title>ADOM/MCP3008 footprint</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>PCB footprint</span><span class=sp></span><button class="lyrtog on" data-lyr="copper"><span class="d" style="background:#e35d5d"></span>Copper</button><button class="lyrtog on" data-lyr="silk"><span class="d" style="background:#e6edf3"></span>Silkscreen</button><button class="lyrtog" data-lyr="fab"><span class="d" style="background:#8b949e"></span>Fab</button><button class="lyrtog" data-lyr="courtyard"><span class="d" style="background:#bc8cff"></span>Courtyard</button></div>-<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-4.100 -5.600 8.200 11.200' style='width:100%;height:100%'><line class='ly-silk' x1='-2.060' y1='-5.060' x2='2.060' y2='-5.060' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-2.060' y1='-5.005' x2='-2.060' y2='-5.060' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-2.060' y1='5.060' x2='-2.060' y2='5.005' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='2.060' y1='-5.060' x2='2.060' y2='-5.005' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='2.060' y1='5.005' x2='2.060' y2='5.060' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='2.060' y1='5.060' x2='-2.060' y2='5.060' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-courtyard' x1='-3.700' y1='-5.000' x2='-2.200' y2='-5.000' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-3.700' y1='5.000' x2='-3.700' y2='-5.000' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='-5.200' x2='2.200' y2='-5.200' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='-5.000' x2='-2.200' y2='-5.200' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='5.000' x2='-3.700' y2='5.000' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='5.200' x2='-2.200' y2='5.000' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='-5.200' x2='2.200' y2='-5.000' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='-5.000' x2='3.700' y2='-5.000' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='5.000' x2='2.200' y2='5.200' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='5.200' x2='-2.200' y2='5.200' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='3.700' y1='-5.000' x2='3.700' y2='5.000' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='3.700' y1='5.000' x2='2.200' y2='5.000' stroke='#4ade80' stroke-width='0.050'/><rect class='ly-copper pad' data-num='1' data-name='CH0' x='-3.450' y='-4.745' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='-4.445' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>1</text><rect class='ly-copper pad' data-num='2' data-name='CH1' x='-3.450' y='-3.475' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='-3.175' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>2</text><rect class='ly-copper pad' data-num='3' data-name='CH2' x='-3.450' y='-2.205' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='-1.905' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>3</text><rect class='ly-copper pad' data-num='4' data-name='CH3' x='-3.450' y='-0.935' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='-0.635' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>4</text><rect class='ly-copper pad' data-num='5' data-name='CH4' x='-3.450' y='0.335' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='0.635' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>5</text><rect class='ly-copper pad' data-num='6' data-name='CH5' x='-3.450' y='1.605' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='1.905' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>6</text><rect class='ly-copper pad' data-num='7' data-name='CH6' x='-3.450' y='2.875' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='3.175' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>7</text><rect class='ly-copper pad' data-num='8' data-name='CH7' x='-3.450' y='4.145' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='4.445' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>8</text><rect class='ly-copper pad' data-num='9' data-name='DGND' x='1.500' y='4.145' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='4.445' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>9</text><rect class='ly-copper pad' data-num='10' data-name='~{CS}/SHDN' x='1.500' y='2.875' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='3.175' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>10</text><rect class='ly-copper pad' data-num='11' data-name='Din' x='1.500' y='1.605' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='1.905' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>11</text><rect class='ly-copper pad' data-num='12' data-name='Dout' x='1.500' y='0.335' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='0.635' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>12</text><rect class='ly-copper pad' data-num='13' data-name='CLK' x='1.500' y='-0.935' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='-0.635' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>13</text><rect class='ly-copper pad' data-num='14' data-name='AGND' x='1.500' y='-2.205' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='-1.905' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>14</text><rect class='ly-copper pad' data-num='15' data-name='Vref' x='1.500' y='-3.475' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='-3.175' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>15</text><rect class='ly-copper pad' data-num='16' data-name='Vdd' x='1.500' y='-4.745' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='-4.445' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>16</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-4.100 -5.740 8.200 11.340' style='width:100%;height:100%'><line class='ly-silk' x1='-2.060' y1='-5.060' x2='2.060' y2='-5.060' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-2.060' y1='-5.005' x2='-2.060' y2='-5.060' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-2.060' y1='5.060' x2='-2.060' y2='5.005' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='2.060' y1='-5.060' x2='2.060' y2='-5.005' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='2.060' y1='5.005' x2='2.060' y2='5.060' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='2.060' y1='5.060' x2='-2.060' y2='5.060' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-courtyard' x1='-3.700' y1='-5.000' x2='-2.200' y2='-5.000' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-3.700' y1='5.000' x2='-3.700' y2='-5.000' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='-5.200' x2='2.200' y2='-5.200' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='-5.000' x2='-2.200' y2='-5.200' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='5.000' x2='-3.700' y2='5.000' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='5.200' x2='-2.200' y2='5.000' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='-5.200' x2='2.200' y2='-5.000' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='-5.000' x2='3.700' y2='-5.000' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='5.000' x2='2.200' y2='5.200' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='5.200' x2='-2.200' y2='5.200' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='3.700' y1='-5.000' x2='3.700' y2='5.000' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='3.700' y1='5.000' x2='2.200' y2='5.000' stroke='#4ade80' stroke-width='0.050'/><polygon class='ly-silk' points='-2.600,-5.010 -2.840,-5.340 -2.360,-5.340' fill='#d8b4fe' stroke='none'/><polygon class='ly-fab' points='-0.975,-4.950 1.950,-4.950 1.950,4.950 -1.950,4.950 -1.950,-3.975' fill='none' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-copper pad' data-num='1' data-name='CH0' x='-3.450' y='-4.745' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='-4.445' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>1</text><rect class='ly-copper pad' data-num='2' data-name='CH1' x='-3.450' y='-3.475' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='-3.175' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>2</text><rect class='ly-copper pad' data-num='3' data-name='CH2' x='-3.450' y='-2.205' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='-1.905' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>3</text><rect class='ly-copper pad' data-num='4' data-name='CH3' x='-3.450' y='-0.935' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='-0.635' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>4</text><rect class='ly-copper pad' data-num='5' data-name='CH4' x='-3.450' y='0.335' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='0.635' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>5</text><rect class='ly-copper pad' data-num='6' data-name='CH5' x='-3.450' y='1.605' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='1.905' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>6</text><rect class='ly-copper pad' data-num='7' data-name='CH6' x='-3.450' y='2.875' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='3.175' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>7</text><rect class='ly-copper pad' data-num='8' data-name='CH7' x='-3.450' y='4.145' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='4.445' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>8</text><rect class='ly-copper pad' data-num='9' data-name='DGND' x='1.500' y='4.145' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='4.445' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>9</text><rect class='ly-copper pad' data-num='10' data-name='~{CS}/SHDN' x='1.500' y='2.875' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='3.175' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>10</text><rect class='ly-copper pad' data-num='11' data-name='DIN' x='1.500' y='1.605' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='1.905' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>11</text><rect class='ly-copper pad' data-num='12' data-name='DOUT' x='1.500' y='0.335' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='0.635' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>12</text><rect class='ly-copper pad' data-num='13' data-name='CLK' x='1.500' y='-0.935' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='-0.635' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>13</text><rect class='ly-copper pad' data-num='14' data-name='AGND' x='1.500' y='-2.205' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='-1.905' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>14</text><rect class='ly-copper pad' data-num='15' data-name='VREF' x='1.500' y='-3.475' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='-3.175' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>15</text><rect class='ly-copper pad' data-num='16' data-name='VDD' x='1.500' y='-4.745' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='-4.445' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>16</text></svg></div> <div id=tip></div> <script>-var KIND="footprint", MPN="MCP3008", PINS=[{"desc":"Analog input channel 0.","name":"CH0","number":"1","type":"Input"},{"desc":"Analog input channel 1.","name":"CH1","number":"2","type":"Input"},{"desc":"Analog input channel 2.","name":"CH2","number":"3","type":"Input"},{"desc":"Analog input channel 3.","name":"CH3","number":"4","type":"Input"},{"desc":"Analog input channel 4.","name":"CH4","number":"5","type":"Input"},{"desc":"Analog input channel 5.","name":"CH5","number":"6","type":"Input"},{"desc":"Analog input channel 6.","name":"CH6","number":"7","type":"Input"},{"desc":"Analog input channel 7.","name":"CH7","number":"8","type":"Input"},{"desc":"Digital ground connection to internal digital circuitry.","name":"DGND","number":"9","type":"Power"},{"desc":"Active-low SPI chip select / shutdown input.","name":"~{CS}/SHDN","number":"10","type":"Input"},{"desc":"SPI serial data input (MOSI).","name":"Din","number":"11","type":"Input"},{"desc":"SPI serial data output (MISO).","name":"Dout","number":"12","type":"Output"},{"desc":"SPI serial clock input.","name":"CLK","number":"13","type":"Input"},{"desc":"Analog ground connection to internal analog circuitry.","name":"AGND","number":"14","type":"Power"},{"desc":"Reference voltage input.","name":"Vref","number":"15","type":"Input"},{"desc":"Positive supply voltage, +2.7V to +5.5V.","name":"Vdd","number":"16","type":"Power"}];+var KIND="footprint", MPN="ADOM/MCP3008", PINS=[{"desc":"","name":"CH0","number":"1","type":""},{"desc":"","name":"CH1","number":"2","type":""},{"desc":"","name":"CH2","number":"3","type":""},{"desc":"","name":"CH3","number":"4","type":""},{"desc":"","name":"CH4","number":"5","type":""},{"desc":"","name":"CH5","number":"6","type":""},{"desc":"","name":"CH6","number":"7","type":""},{"desc":"","name":"CH7","number":"8","type":""},{"desc":"","name":"DGND","number":"9","type":""},{"desc":"","name":"~{CS}/SHDN","number":"10","type":""},{"desc":"","name":"DIN","number":"11","type":""},{"desc":"","name":"DOUT","number":"12","type":""},{"desc":"","name":"CLK","number":"13","type":""},{"desc":"","name":"AGND","number":"14","type":""},{"desc":"","name":"VREF","number":"15","type":""},{"desc":"","name":"VDD","number":"16","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 ----
viewers/symbol.html+3−3@@ -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>MCP3008 symbol</title>+<meta name=viewport content="width=device-width,initial-scale=1"><title>ADOM/MCP3008 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='-650 -600 1300 1200' style='width:100%;height:100%'><polyline points='-300.0,-400.0 -300.0,400.0 -200.0,350.0 -200.0,-350.0 -300.0,-400.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='-150.0,-100.0 -200.0,-100.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='75.0,-175.0 75.0,-25.0 -100.0,-25.0 -150.0,-100.0 -100.0,-175.0 75.0,-175.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='75.0,-100.0 150.0,-100.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='150.0,75.0 -150.0,75.0 -150.0,400.0 -250.0,400.0 -250.0,375.0' fill='none' stroke='#e35d5d' stroke-width='4'/><rect x='150.0' y='-200.0' width='125.0' height='300.0' fill='none' stroke='#e35d5d' stroke-width='4'/><rect x='-500.0' y='-450.0' width='1000.0' height='900.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='CH0'><line class='pinvis' x1='-600.0' y1='-350.0' x2='-500.0' y2='-350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='-350.0' x2='-500.0' y2='-350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='-312.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='-475.0' y='-350.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH0</text><g class='pingroup' data-num='2' data-name='CH1'><line class='pinvis' x1='-600.0' y1='-250.0' x2='-500.0' y2='-250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='-250.0' x2='-500.0' y2='-250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='-212.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='-475.0' y='-250.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH1</text><g class='pingroup' data-num='3' data-name='CH2'><line class='pinvis' x1='-600.0' y1='-150.0' x2='-500.0' y2='-150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='-150.0' x2='-500.0' y2='-150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='-112.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>3</text><text x='-475.0' y='-150.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH2</text><g class='pingroup' data-num='4' data-name='CH3'><line class='pinvis' x1='-600.0' y1='-50.0' x2='-500.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='-50.0' x2='-500.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='-12.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>4</text><text x='-475.0' y='-50.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH3</text><g class='pingroup' data-num='5' data-name='CH4'><line class='pinvis' x1='-600.0' y1='50.0' x2='-500.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='50.0' x2='-500.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='87.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>5</text><text x='-475.0' y='50.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH4</text><g class='pingroup' data-num='6' data-name='CH5'><line class='pinvis' x1='-600.0' y1='150.0' x2='-500.0' y2='150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='150.0' x2='-500.0' y2='150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='187.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>6</text><text x='-475.0' y='150.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH5</text><g class='pingroup' data-num='7' data-name='CH6'><line class='pinvis' x1='-600.0' y1='250.0' x2='-500.0' y2='250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='250.0' x2='-500.0' y2='250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='287.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>7</text><text x='-475.0' y='250.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH6</text><g class='pingroup' data-num='8' data-name='CH7'><line class='pinvis' x1='-600.0' y1='350.0' x2='-500.0' y2='350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='350.0' x2='-500.0' y2='350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='387.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>8</text><text x='-475.0' y='350.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH7</text><g class='pingroup' data-num='9' data-name='DGND'><line class='pinvis' x1='200.0' y1='550.0' x2='200.0' y2='450.0' stroke='#dfe4ec' stroke-width='4'/><line x1='200.0' y1='550.0' x2='200.0' y2='450.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='237.5' y='500.0' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>9</text><text x='200.0' y='425.0' font-size='50' fill='#e6e9ef' text-anchor='middle' dominant-baseline='central'>DGND</text><g class='pingroup' data-num='10' data-name='~{CS}/SHDN'><line class='pinvis' x1='600.0' y1='150.0' x2='500.0' y2='150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='600.0' y1='150.0' x2='500.0' y2='150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='550.0' y='112.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>10</text><text x='475.0' y='150.0' font-size='50' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>~{CS}/SHDN</text><g class='pingroup' data-num='11' data-name='Din'><line class='pinvis' x1='600.0' y1='50.0' x2='500.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='600.0' y1='50.0' x2='500.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='550.0' y='12.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>11</text><text x='475.0' y='50.0' font-size='50' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>Din</text><g class='pingroup' data-num='12' data-name='Dout'><line class='pinvis' x1='600.0' y1='-50.0' x2='500.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='600.0' y1='-50.0' x2='500.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='550.0' y='-87.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>12</text><text x='475.0' y='-50.0' font-size='50' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>Dout</text><g class='pingroup' data-num='13' data-name='CLK'><line class='pinvis' x1='600.0' y1='-150.0' x2='500.0' y2='-150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='600.0' y1='-150.0' x2='500.0' y2='-150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='550.0' y='-187.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>13</text><text x='475.0' y='-150.0' font-size='50' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>CLK</text><g class='pingroup' data-num='14' data-name='AGND'><line class='pinvis' x1='-100.0' y1='550.0' x2='-100.0' y2='450.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-100.0' y1='550.0' x2='-100.0' y2='450.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-62.5' y='500.0' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>14</text><text x='-100.0' y='425.0' font-size='50' fill='#e6e9ef' text-anchor='middle' dominant-baseline='central'>AGND</text><g class='pingroup' data-num='15' data-name='Vref'><line class='pinvis' x1='-100.0' y1='-550.0' x2='-100.0' y2='-450.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-100.0' y1='-550.0' x2='-100.0' y2='-450.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-137.5' y='-500.0' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>15</text><text x='-100.0' y='-425.0' font-size='50' fill='#e6e9ef' text-anchor='middle' dominant-baseline='central'>Vref</text><g class='pingroup' data-num='16' data-name='Vdd'><line class='pinvis' x1='200.0' y1='-550.0' x2='200.0' y2='-450.0' stroke='#dfe4ec' stroke-width='4'/><line x1='200.0' y1='-550.0' x2='200.0' y2='-450.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='162.5' y='-500.0' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>16</text><text x='200.0' y='-425.0' font-size='50' fill='#e6e9ef' text-anchor='middle' dominant-baseline='central'>Vdd</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-650 -600 1300 1200' style='width:100%;height:100%'><rect x='150.0' y='-200.0' width='125.0' height='300.0' fill='none' stroke='#e35d5d' stroke-width='4'/><rect x='-500.0' y='-450.0' width='1000.0' height='900.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><polyline points='-300.0,-400.0 -300.0,400.0 -200.0,350.0 -200.0,-350.0 -300.0,-400.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='-150.0,-100.0 -200.0,-100.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='75.0,-175.0 75.0,-25.0 -100.0,-25.0 -150.0,-100.0 -100.0,-175.0 75.0,-175.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='75.0,-100.0 150.0,-100.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='150.0,75.0 -150.0,75.0 -150.0,400.0 -250.0,400.0 -250.0,375.0' fill='none' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='CH0'><line class='pinvis' x1='-600.0' y1='-350.0' x2='-500.0' y2='-350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='-350.0' x2='-500.0' y2='-350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='-312.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='-475.0' y='-350.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH0</text><g class='pingroup' data-num='2' data-name='CH1'><line class='pinvis' x1='-600.0' y1='-250.0' x2='-500.0' y2='-250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='-250.0' x2='-500.0' y2='-250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='-212.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='-475.0' y='-250.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH1</text><g class='pingroup' data-num='3' data-name='CH2'><line class='pinvis' x1='-600.0' y1='-150.0' x2='-500.0' y2='-150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='-150.0' x2='-500.0' y2='-150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='-112.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>3</text><text x='-475.0' y='-150.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH2</text><g class='pingroup' data-num='4' data-name='CH3'><line class='pinvis' x1='-600.0' y1='-50.0' x2='-500.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='-50.0' x2='-500.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='-12.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>4</text><text x='-475.0' y='-50.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH3</text><g class='pingroup' data-num='5' data-name='CH4'><line class='pinvis' x1='-600.0' y1='50.0' x2='-500.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='50.0' x2='-500.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='87.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>5</text><text x='-475.0' y='50.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH4</text><g class='pingroup' data-num='6' data-name='CH5'><line class='pinvis' x1='-600.0' y1='150.0' x2='-500.0' y2='150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='150.0' x2='-500.0' y2='150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='187.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>6</text><text x='-475.0' y='150.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH5</text><g class='pingroup' data-num='7' data-name='CH6'><line class='pinvis' x1='-600.0' y1='250.0' x2='-500.0' y2='250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='250.0' x2='-500.0' y2='250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='287.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>7</text><text x='-475.0' y='250.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH6</text><g class='pingroup' data-num='8' data-name='CH7'><line class='pinvis' x1='-600.0' y1='350.0' x2='-500.0' y2='350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-600.0' y1='350.0' x2='-500.0' y2='350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-550.0' y='387.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>8</text><text x='-475.0' y='350.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>CH7</text><g class='pingroup' data-num='9' data-name='DGND'><line class='pinvis' x1='200.0' y1='550.0' x2='200.0' y2='450.0' stroke='#dfe4ec' stroke-width='4'/><line x1='200.0' y1='550.0' x2='200.0' y2='450.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='237.5' y='500.0' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>9</text><text x='200.0' y='425.0' font-size='50' fill='#e6e9ef' text-anchor='middle' dominant-baseline='central'>DGND</text><g class='pingroup' data-num='10' data-name='~{CS}/SHDN'><line class='pinvis' x1='600.0' y1='150.0' x2='500.0' y2='150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='600.0' y1='150.0' x2='500.0' y2='150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='550.0' y='112.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>10</text><text x='475.0' y='150.0' font-size='50' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>~{CS}/SHDN</text><g class='pingroup' data-num='11' data-name='DIN'><line class='pinvis' x1='600.0' y1='50.0' x2='500.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='600.0' y1='50.0' x2='500.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='550.0' y='12.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>11</text><text x='475.0' y='50.0' font-size='50' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>DIN</text><g class='pingroup' data-num='12' data-name='DOUT'><line class='pinvis' x1='600.0' y1='-50.0' x2='500.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='600.0' y1='-50.0' x2='500.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='550.0' y='-87.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>12</text><text x='475.0' y='-50.0' font-size='50' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>DOUT</text><g class='pingroup' data-num='13' data-name='CLK'><line class='pinvis' x1='600.0' y1='-150.0' x2='500.0' y2='-150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='600.0' y1='-150.0' x2='500.0' y2='-150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='550.0' y='-187.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>13</text><text x='475.0' y='-150.0' font-size='50' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>CLK</text><g class='pingroup' data-num='14' data-name='AGND'><line class='pinvis' x1='-100.0' y1='550.0' x2='-100.0' y2='450.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-100.0' y1='550.0' x2='-100.0' y2='450.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-62.5' y='500.0' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>14</text><text x='-100.0' y='425.0' font-size='50' fill='#e6e9ef' text-anchor='middle' dominant-baseline='central'>AGND</text><g class='pingroup' data-num='15' data-name='VREF'><line class='pinvis' x1='-100.0' y1='-550.0' x2='-100.0' y2='-450.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-100.0' y1='-550.0' x2='-100.0' y2='-450.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-137.5' y='-500.0' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>15</text><text x='-100.0' y='-425.0' font-size='50' fill='#e6e9ef' text-anchor='middle' dominant-baseline='central'>VREF</text><g class='pingroup' data-num='16' data-name='VDD'><line class='pinvis' x1='200.0' y1='-550.0' x2='200.0' y2='-450.0' stroke='#dfe4ec' stroke-width='4'/><line x1='200.0' y1='-550.0' x2='200.0' y2='-450.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='162.5' y='-500.0' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>16</text><text x='200.0' y='-425.0' font-size='50' fill='#e6e9ef' text-anchor='middle' dominant-baseline='central'>VDD</text></svg></div> <div id=tip></div> <script>-var KIND="symbol", MPN="MCP3008", PINS=[{"desc":"Analog input channel 0.","name":"CH0","number":"1","type":"Input"},{"desc":"Analog input channel 1.","name":"CH1","number":"2","type":"Input"},{"desc":"Analog input channel 2.","name":"CH2","number":"3","type":"Input"},{"desc":"Analog input channel 3.","name":"CH3","number":"4","type":"Input"},{"desc":"Analog input channel 4.","name":"CH4","number":"5","type":"Input"},{"desc":"Analog input channel 5.","name":"CH5","number":"6","type":"Input"},{"desc":"Analog input channel 6.","name":"CH6","number":"7","type":"Input"},{"desc":"Analog input channel 7.","name":"CH7","number":"8","type":"Input"},{"desc":"Digital ground connection to internal digital circuitry.","name":"DGND","number":"9","type":"Power"},{"desc":"Active-low SPI chip select / shutdown input.","name":"~{CS}/SHDN","number":"10","type":"Input"},{"desc":"SPI serial data input (MOSI).","name":"Din","number":"11","type":"Input"},{"desc":"SPI serial data output (MISO).","name":"Dout","number":"12","type":"Output"},{"desc":"SPI serial clock input.","name":"CLK","number":"13","type":"Input"},{"desc":"Analog ground connection to internal analog circuitry.","name":"AGND","number":"14","type":"Power"},{"desc":"Reference voltage input.","name":"Vref","number":"15","type":"Input"},{"desc":"Positive supply voltage, +2.7V to +5.5V.","name":"Vdd","number":"16","type":"Power"}];+var KIND="symbol", MPN="ADOM/MCP3008", PINS=[{"desc":"","name":"CH0","number":"1","type":""},{"desc":"","name":"CH1","number":"2","type":""},{"desc":"","name":"CH2","number":"3","type":""},{"desc":"","name":"CH3","number":"4","type":""},{"desc":"","name":"CH4","number":"5","type":""},{"desc":"","name":"CH5","number":"6","type":""},{"desc":"","name":"CH6","number":"7","type":""},{"desc":"","name":"CH7","number":"8","type":""},{"desc":"","name":"DGND","number":"9","type":""},{"desc":"","name":"~{CS}/SHDN","number":"10","type":""},{"desc":"","name":"DIN","number":"11","type":""},{"desc":"","name":"DOUT","number":"12","type":""},{"desc":"","name":"CLK","number":"13","type":""},{"desc":"","name":"AGND","number":"14","type":""},{"desc":"","name":"VREF","number":"15","type":""},{"desc":"","name":"VDD","number":"16","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 ----