No changes between revisions
/Modules/CommSerial/I2CHUB02A/SCH_PCB/untitled.sch
6,7 → 6,7
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.1" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inch" altunit="inch"/>
<grid distance="0.05" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="1" name="Top" color="4" fill="1" visible="no" active="no"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="no" active="no"/>
971,39 → 971,39
<text x="208.28" y="73.66" size="1.778" layer="91">SD1</text>
<text x="252.73" y="83.82" size="1.778" layer="91">SC2</text>
<text x="252.73" y="73.66" size="1.778" layer="91">SD2</text>
<text x="292.1" y="85.09" size="1.778" layer="91">SC3</text>
<text x="292.1" y="74.93" size="1.778" layer="91">SD3</text>
<text x="170.18" y="27.94" size="1.778" layer="91">SC4</text>
<text x="170.18" y="17.78" size="1.778" layer="91">SD4</text>
<text x="208.28" y="27.94" size="1.778" layer="91">SC5</text>
<text x="208.28" y="17.78" size="1.778" layer="91">SD5</text>
<text x="254" y="27.94" size="1.778" layer="91">SC6</text>
<text x="254" y="17.78" size="1.778" layer="91">SD6</text>
<text x="293.37" y="27.94" size="1.778" layer="91">SC7</text>
<text x="293.37" y="17.78" size="1.778" layer="91">SD7</text>
<text x="157.48" y="-63.5" size="1.778" layer="91">SD0</text>
<text x="157.48" y="-73.66" size="1.778" layer="91">SD1</text>
<text x="157.48" y="-83.82" size="1.778" layer="91">SD2</text>
<text x="157.48" y="-93.98" size="1.778" layer="91">SD3</text>
<text x="157.48" y="-99.06" size="1.778" layer="91">SC3</text>
<text x="200.66" y="-93.98" size="1.778" layer="91">SD5</text>
<text x="200.66" y="-83.82" size="1.778" layer="91">SD6</text>
<text x="200.66" y="-73.66" size="1.778" layer="91">SD7</text>
<text x="157.48" y="-68.58" size="1.778" layer="91">SC0</text>
<text x="157.48" y="-78.74" size="1.778" layer="91">SC1</text>
<text x="157.48" y="-88.9" size="1.778" layer="91">SC2</text>
<text x="200.66" y="-78.74" size="1.778" layer="91">SC6</text>
<text x="200.66" y="-68.58" size="1.778" layer="91">SC7</text>
<text x="200.66" y="-88.9" size="1.778" layer="91">SC5</text>
<text x="200.66" y="-99.06" size="1.778" layer="91">SC4</text>
<text x="200.66" y="-104.14" size="1.778" layer="91">SD4</text>
<text x="170.18" y="2.54" size="1.778" layer="97">Power select</text>
<text x="190.5" y="-25.4" size="1.778" layer="97">Master</text>
<text x="190.5" y="-19.05" size="1.778" layer="97">Slaves</text>
<text x="165.1" y="27.94" size="1.778" layer="91">SC3</text>
<text x="165.1" y="17.78" size="1.778" layer="91">SD3</text>
<text x="212.09" y="27.94" size="1.778" layer="91">SC4</text>
<text x="212.09" y="17.78" size="1.778" layer="91">SD4</text>
<text x="252.73" y="27.94" size="1.778" layer="91">SC5</text>
<text x="252.73" y="17.78" size="1.778" layer="91">SD5</text>
<text x="171.45" y="-26.67" size="1.778" layer="91">SC6</text>
<text x="171.45" y="-36.83" size="1.778" layer="91">SD6</text>
<text x="210.82" y="-26.67" size="1.778" layer="91">SC7</text>
<text x="210.82" y="-36.83" size="1.778" layer="91">SD7</text>
<text x="161.29" y="-163.83" size="1.778" layer="91">SD0</text>
<text x="161.29" y="-173.99" size="1.778" layer="91">SD1</text>
<text x="161.29" y="-184.15" size="1.778" layer="91">SD2</text>
<text x="161.29" y="-194.31" size="1.778" layer="91">SD3</text>
<text x="161.29" y="-199.39" size="1.778" layer="91">SC3</text>
<text x="204.47" y="-194.31" size="1.778" layer="91">SD5</text>
<text x="204.47" y="-184.15" size="1.778" layer="91">SD6</text>
<text x="204.47" y="-173.99" size="1.778" layer="91">SD7</text>
<text x="161.29" y="-168.91" size="1.778" layer="91">SC0</text>
<text x="161.29" y="-179.07" size="1.778" layer="91">SC1</text>
<text x="161.29" y="-189.23" size="1.778" layer="91">SC2</text>
<text x="204.47" y="-179.07" size="1.778" layer="91">SC6</text>
<text x="204.47" y="-168.91" size="1.778" layer="91">SC7</text>
<text x="204.47" y="-189.23" size="1.778" layer="91">SC5</text>
<text x="204.47" y="-199.39" size="1.778" layer="91">SC4</text>
<text x="204.47" y="-204.47" size="1.778" layer="91">SD4</text>
<text x="173.99" y="-97.79" size="1.778" layer="97">Power select</text>
<text x="194.31" y="-125.73" size="1.778" layer="97">Master</text>
<text x="194.31" y="-119.38" size="1.778" layer="97">Slaves</text>
</plain>
<instances>
<instance part="X1" gate="G$1" x="180.34" y="-76.2"/>
<instance part="U$2" gate="G$1" x="165.1" y="-106.68"/>
<instance part="X1" gate="G$1" x="184.15" y="-176.53"/>
<instance part="U$2" gate="G$1" x="168.91" y="-207.01"/>
<instance part="SV1" gate="-1" x="137.16" y="88.9"/>
<instance part="SV1" gate="-2" x="137.16" y="83.82"/>
<instance part="SV1" gate="-3" x="137.16" y="78.74"/>
1031,99 → 1031,99
<instance part="U$14" gate="G$1" x="226.06" y="68.58"/>
<instance part="R5" gate="G$1" x="247.65" y="91.44" rot="R90"/>
<instance part="R6" gate="G$1" x="240.03" y="91.44" rot="R90"/>
<instance part="SV4" gate="-1" x="264.16" y="90.17"/>
<instance part="SV4" gate="-2" x="264.16" y="85.09"/>
<instance part="SV4" gate="-3" x="264.16" y="80.01"/>
<instance part="SV4" gate="-4" x="264.16" y="74.93"/>
<instance part="SV4" gate="-5" x="264.16" y="69.85"/>
<instance part="U$18" gate="G$1" x="271.78" y="90.17"/>
<instance part="U$19" gate="G$1" x="271.78" y="69.85"/>
<instance part="R7" gate="G$1" x="287.02" y="92.71" rot="R90"/>
<instance part="R8" gate="G$1" x="279.4" y="92.71" rot="R90"/>
<instance part="SV5" gate="-1" x="135.89" y="33.02"/>
<instance part="SV5" gate="-2" x="135.89" y="27.94"/>
<instance part="SV5" gate="-3" x="135.89" y="22.86"/>
<instance part="SV5" gate="-4" x="135.89" y="17.78"/>
<instance part="SV5" gate="-5" x="135.89" y="12.7"/>
<instance part="U$23" gate="G$1" x="143.51" y="33.02"/>
<instance part="U$24" gate="G$1" x="143.51" y="12.7"/>
<instance part="R9" gate="G$1" x="165.1" y="35.56" rot="R90"/>
<instance part="R10" gate="G$1" x="157.48" y="35.56" rot="R90"/>
<instance part="SV6" gate="-1" x="180.34" y="33.02"/>
<instance part="SV6" gate="-2" x="180.34" y="27.94"/>
<instance part="SV6" gate="-3" x="180.34" y="22.86"/>
<instance part="SV6" gate="-4" x="180.34" y="17.78"/>
<instance part="SV6" gate="-5" x="180.34" y="12.7"/>
<instance part="U$28" gate="G$1" x="187.96" y="33.02"/>
<instance part="U$29" gate="G$1" x="187.96" y="12.7"/>
<instance part="R11" gate="G$1" x="203.2" y="35.56" rot="R90"/>
<instance part="R12" gate="G$1" x="195.58" y="35.56" rot="R90"/>
<instance part="SV7" gate="-1" x="219.71" y="33.02"/>
<instance part="SV7" gate="-2" x="219.71" y="27.94"/>
<instance part="SV7" gate="-3" x="219.71" y="22.86"/>
<instance part="SV7" gate="-4" x="219.71" y="17.78"/>
<instance part="SV7" gate="-5" x="219.71" y="12.7"/>
<instance part="U$33" gate="G$1" x="227.33" y="33.02"/>
<instance part="U$34" gate="G$1" x="227.33" y="12.7"/>
<instance part="R13" gate="G$1" x="248.92" y="35.56" rot="R90"/>
<instance part="R14" gate="G$1" x="241.3" y="35.56" rot="R90"/>
<instance part="SV8" gate="-1" x="265.43" y="33.02"/>
<instance part="SV8" gate="-2" x="265.43" y="27.94"/>
<instance part="SV8" gate="-3" x="265.43" y="22.86"/>
<instance part="SV8" gate="-4" x="265.43" y="17.78"/>
<instance part="SV8" gate="-5" x="265.43" y="12.7"/>
<instance part="U$38" gate="G$1" x="273.05" y="33.02"/>
<instance part="U$39" gate="G$1" x="273.05" y="12.7"/>
<instance part="R15" gate="G$1" x="288.29" y="35.56" rot="R90"/>
<instance part="R16" gate="G$1" x="280.67" y="35.56" rot="R90"/>
<instance part="SV9" gate="-1" x="219.71" y="-58.42"/>
<instance part="SV9" gate="-2" x="219.71" y="-53.34"/>
<instance part="SV9" gate="-3" x="154.94" y="-58.42" rot="R180"/>
<instance part="R17" gate="G$1" x="200.66" y="-45.72" rot="R90"/>
<instance part="R18" gate="G$1" x="208.28" y="-45.72" rot="R90"/>
<instance part="R19" gate="G$1" x="162.56" y="-40.64" rot="R90"/>
<instance part="U$46" gate="G$1" x="198.12" y="-63.5"/>
<instance part="R20" gate="G$1" x="134.62" y="-40.64" rot="R90"/>
<instance part="R21" gate="G$1" x="134.62" y="-58.42" rot="R90"/>
<instance part="R22" gate="G$1" x="142.24" y="-40.64" rot="R90"/>
<instance part="R23" gate="G$1" x="142.24" y="-58.42" rot="R90"/>
<instance part="U$47" gate="G$1" x="134.62" y="-66.04"/>
<instance part="U$48" gate="G$1" x="142.24" y="-66.04"/>
<instance part="C1" gate="G$1" x="218.44" y="-38.1"/>
<instance part="U$54" gate="G$1" x="218.44" y="-43.18"/>
<instance part="SV10" gate="-1" x="245.11" y="-54.61"/>
<instance part="SV10" gate="-2" x="245.11" y="-59.69"/>
<instance part="SV10" gate="-3" x="245.11" y="-66.04"/>
<instance part="D5" gate="G$1" x="237.49" y="-62.23" rot="R90"/>
<instance part="U$55" gate="G$2" x="237.49" y="-50.8"/>
<instance part="U$56" gate="G$1" x="232.41" y="-69.85"/>
<instance part="X2" gate="P4" x="266.7" y="-48.26"/>
<instance part="X3" gate="P4" x="266.7" y="-55.88"/>
<instance part="X4" gate="P4" x="266.7" y="-63.5"/>
<instance part="X5" gate="P4" x="266.7" y="-71.12"/>
<instance part="SV4" gate="-1" x="137.16" y="33.02"/>
<instance part="SV4" gate="-2" x="137.16" y="27.94"/>
<instance part="SV4" gate="-3" x="137.16" y="22.86"/>
<instance part="SV4" gate="-4" x="137.16" y="17.78"/>
<instance part="SV4" gate="-5" x="137.16" y="12.7"/>
<instance part="U$18" gate="G$1" x="144.78" y="33.02"/>
<instance part="U$19" gate="G$1" x="144.78" y="12.7"/>
<instance part="R7" gate="G$1" x="160.02" y="35.56" rot="R90"/>
<instance part="R8" gate="G$1" x="152.4" y="35.56" rot="R90"/>
<instance part="SV5" gate="-1" x="177.8" y="33.02"/>
<instance part="SV5" gate="-2" x="177.8" y="27.94"/>
<instance part="SV5" gate="-3" x="177.8" y="22.86"/>
<instance part="SV5" gate="-4" x="177.8" y="17.78"/>
<instance part="SV5" gate="-5" x="177.8" y="12.7"/>
<instance part="U$23" gate="G$1" x="185.42" y="33.02"/>
<instance part="U$24" gate="G$1" x="185.42" y="12.7"/>
<instance part="R9" gate="G$1" x="207.01" y="35.56" rot="R90"/>
<instance part="R10" gate="G$1" x="199.39" y="35.56" rot="R90"/>
<instance part="SV6" gate="-1" x="224.79" y="33.02"/>
<instance part="SV6" gate="-2" x="224.79" y="27.94"/>
<instance part="SV6" gate="-3" x="224.79" y="22.86"/>
<instance part="SV6" gate="-4" x="224.79" y="17.78"/>
<instance part="SV6" gate="-5" x="224.79" y="12.7"/>
<instance part="U$28" gate="G$1" x="232.41" y="33.02"/>
<instance part="U$29" gate="G$1" x="232.41" y="12.7"/>
<instance part="R11" gate="G$1" x="247.65" y="35.56" rot="R90"/>
<instance part="R12" gate="G$1" x="240.03" y="35.56" rot="R90"/>
<instance part="SV7" gate="-1" x="137.16" y="-21.59"/>
<instance part="SV7" gate="-2" x="137.16" y="-26.67"/>
<instance part="SV7" gate="-3" x="137.16" y="-31.75"/>
<instance part="SV7" gate="-4" x="137.16" y="-36.83"/>
<instance part="SV7" gate="-5" x="137.16" y="-41.91"/>
<instance part="U$33" gate="G$1" x="144.78" y="-21.59"/>
<instance part="U$34" gate="G$1" x="144.78" y="-41.91"/>
<instance part="R13" gate="G$1" x="166.37" y="-19.05" rot="R90"/>
<instance part="R14" gate="G$1" x="158.75" y="-19.05" rot="R90"/>
<instance part="SV8" gate="-1" x="182.88" y="-21.59"/>
<instance part="SV8" gate="-2" x="182.88" y="-26.67"/>
<instance part="SV8" gate="-3" x="182.88" y="-31.75"/>
<instance part="SV8" gate="-4" x="182.88" y="-36.83"/>
<instance part="SV8" gate="-5" x="182.88" y="-41.91"/>
<instance part="U$38" gate="G$1" x="190.5" y="-21.59"/>
<instance part="U$39" gate="G$1" x="190.5" y="-41.91"/>
<instance part="R15" gate="G$1" x="205.74" y="-19.05" rot="R90"/>
<instance part="R16" gate="G$1" x="198.12" y="-19.05" rot="R90"/>
<instance part="SV9" gate="-1" x="223.52" y="-158.75"/>
<instance part="SV9" gate="-2" x="223.52" y="-153.67"/>
<instance part="SV9" gate="-3" x="158.75" y="-158.75" rot="R180"/>
<instance part="R17" gate="G$1" x="204.47" y="-146.05" rot="R90"/>
<instance part="R18" gate="G$1" x="212.09" y="-146.05" rot="R90"/>
<instance part="R19" gate="G$1" x="166.37" y="-140.97" rot="R90"/>
<instance part="U$46" gate="G$1" x="201.93" y="-163.83"/>
<instance part="R20" gate="G$1" x="138.43" y="-140.97" rot="R90"/>
<instance part="R21" gate="G$1" x="138.43" y="-158.75" rot="R90"/>
<instance part="R22" gate="G$1" x="146.05" y="-140.97" rot="R90"/>
<instance part="R23" gate="G$1" x="146.05" y="-158.75" rot="R90"/>
<instance part="U$47" gate="G$1" x="138.43" y="-166.37"/>
<instance part="U$48" gate="G$1" x="146.05" y="-166.37"/>
<instance part="C1" gate="G$1" x="222.25" y="-138.43"/>
<instance part="U$54" gate="G$1" x="222.25" y="-143.51"/>
<instance part="SV10" gate="-1" x="232.41" y="-55.88"/>
<instance part="SV10" gate="-2" x="232.41" y="-60.96"/>
<instance part="SV10" gate="-3" x="232.41" y="-67.31"/>
<instance part="D5" gate="G$1" x="224.79" y="-63.5" rot="R90"/>
<instance part="U$55" gate="G$2" x="224.79" y="-52.07"/>
<instance part="U$56" gate="G$1" x="219.71" y="-71.12"/>
<instance part="X2" gate="P4" x="255.27" y="-35.56"/>
<instance part="X3" gate="P4" x="255.27" y="-43.18"/>
<instance part="X4" gate="P4" x="255.27" y="-50.8"/>
<instance part="X5" gate="P4" x="255.27" y="-58.42"/>
<instance part="D1" gate="G$1" x="149.86" y="63.5" rot="R90"/>
<instance part="U$59" gate="G$1" x="149.86" y="58.42"/>
<instance part="D2" gate="G$1" x="232.41" y="63.5" rot="R90"/>
<instance part="U$65" gate="G$1" x="232.41" y="58.42"/>
<instance part="D3" gate="G$1" x="149.86" y="7.62" rot="R90"/>
<instance part="U$71" gate="G$1" x="149.86" y="2.54"/>
<instance part="D4" gate="G$1" x="233.68" y="7.62" rot="R90"/>
<instance part="U$77" gate="G$1" x="233.68" y="2.54"/>
<instance part="X6" gate="G$1" x="248.92" y="-21.59"/>
<instance part="U$81" gate="G$1" x="248.92" y="-33.02"/>
<instance part="U$82" gate="G$2" x="234.95" y="-16.51"/>
<instance part="U$83" gate="G$1" x="264.16" y="-16.51"/>
<instance part="C3" gate="G$1" x="264.16" y="-26.67" rot="R270"/>
<instance part="C2" gate="G$1" x="234.95" y="-26.67" rot="R270"/>
<instance part="U$84" gate="G$1" x="234.95" y="-33.02"/>
<instance part="U$85" gate="G$1" x="264.16" y="-33.02"/>
<instance part="SV11" gate="-1" x="287.02" y="-20.32"/>
<instance part="SV11" gate="-2" x="287.02" y="-25.4"/>
<instance part="SV11" gate="-3" x="287.02" y="-30.48"/>
<instance part="U$87" gate="G$1" x="274.32" y="-33.02"/>
<instance part="U$86" gate="G$1" x="279.4" y="-16.51"/>
<instance part="U$1" gate="G$2" x="166.37" y="-7.62"/>
<instance part="U$43" gate="G$1" x="187.96" y="-7.62"/>
<instance part="D3" gate="G$1" x="191.77" y="7.62" rot="R90"/>
<instance part="U$71" gate="G$1" x="191.77" y="2.54"/>
<instance part="D4" gate="G$1" x="151.13" y="-46.99" rot="R90"/>
<instance part="U$77" gate="G$1" x="151.13" y="-52.07"/>
<instance part="X6" gate="G$1" x="237.49" y="-8.89"/>
<instance part="U$81" gate="G$1" x="237.49" y="-20.32"/>
<instance part="U$82" gate="G$2" x="223.52" y="-3.81"/>
<instance part="U$83" gate="G$1" x="252.73" y="-3.81"/>
<instance part="C3" gate="G$1" x="252.73" y="-13.97" rot="R270"/>
<instance part="C2" gate="G$1" x="223.52" y="-13.97" rot="R270"/>
<instance part="U$84" gate="G$1" x="223.52" y="-20.32"/>
<instance part="U$85" gate="G$1" x="252.73" y="-20.32"/>
<instance part="SV11" gate="-1" x="205.74" y="-58.42"/>
<instance part="SV11" gate="-2" x="205.74" y="-63.5"/>
<instance part="SV11" gate="-3" x="205.74" y="-68.58"/>
<instance part="U$87" gate="G$1" x="193.04" y="-71.12"/>
<instance part="U$86" gate="G$1" x="198.12" y="-54.61"/>
<instance part="U$1" gate="G$2" x="170.18" y="-107.95"/>
<instance part="U$43" gate="G$1" x="191.77" y="-107.95"/>
<instance part="U$44" gate="G$1" x="152.4" y="101.6"/>
<instance part="U$5" gate="G$1" x="157.48" y="101.6"/>
<instance part="U$6" gate="G$1" x="165.1" y="101.6"/>
1133,29 → 1133,29
<instance part="U$12" gate="G$1" x="234.95" y="101.6"/>
<instance part="U$15" gate="G$1" x="240.03" y="101.6"/>
<instance part="U$16" gate="G$1" x="247.65" y="101.6"/>
<instance part="U$17" gate="G$1" x="274.32" y="102.87"/>
<instance part="U$20" gate="G$1" x="279.4" y="102.87"/>
<instance part="U$21" gate="G$1" x="287.02" y="102.87"/>
<instance part="U$22" gate="G$1" x="152.4" y="45.72"/>
<instance part="U$25" gate="G$1" x="157.48" y="45.72"/>
<instance part="U$26" gate="G$1" x="165.1" y="45.72"/>
<instance part="U$27" gate="G$1" x="195.58" y="45.72"/>
<instance part="U$30" gate="G$1" x="203.2" y="45.72"/>
<instance part="U$31" gate="G$1" x="236.22" y="45.72" rot="MR0"/>
<instance part="U$32" gate="G$1" x="241.3" y="45.72" rot="MR0"/>
<instance part="U$35" gate="G$1" x="248.92" y="45.72" rot="MR0"/>
<instance part="U$36" gate="G$1" x="275.59" y="45.72" rot="MR0"/>
<instance part="U$37" gate="G$1" x="280.67" y="45.72" rot="MR0"/>
<instance part="U$40" gate="G$1" x="288.29" y="45.72" rot="MR0"/>
<instance part="U$41" gate="G$1" x="176.53" y="-7.62" rot="MR0"/>
<instance part="SW1" gate="-1" x="171.45" y="-26.67" rot="R270"/>
<instance part="SW1" gate="-2" x="171.45" y="-16.51" rot="R90"/>
<instance part="SW1" gate="-3" x="176.53" y="-26.67" rot="R270"/>
<instance part="SW1" gate="-4" x="176.53" y="-16.51" rot="R90"/>
<instance part="SW1" gate="-5" x="181.61" y="-26.67" rot="R270"/>
<instance part="SW1" gate="-6" x="181.61" y="-16.51" rot="R90"/>
<instance part="U$42" gate="G$1" x="190.5" y="45.72"/>
<instance part="U$45" gate="G$1" x="256.54" y="-77.47"/>
<instance part="U$17" gate="G$1" x="147.32" y="45.72"/>
<instance part="U$20" gate="G$1" x="152.4" y="45.72"/>
<instance part="U$21" gate="G$1" x="160.02" y="45.72"/>
<instance part="U$22" gate="G$1" x="194.31" y="45.72"/>
<instance part="U$25" gate="G$1" x="199.39" y="45.72"/>
<instance part="U$26" gate="G$1" x="207.01" y="45.72"/>
<instance part="U$27" gate="G$1" x="240.03" y="45.72"/>
<instance part="U$30" gate="G$1" x="247.65" y="45.72"/>
<instance part="U$31" gate="G$1" x="153.67" y="-8.89" rot="MR0"/>
<instance part="U$32" gate="G$1" x="158.75" y="-8.89" rot="MR0"/>
<instance part="U$35" gate="G$1" x="166.37" y="-8.89" rot="MR0"/>
<instance part="U$36" gate="G$1" x="193.04" y="-8.89" rot="MR0"/>
<instance part="U$37" gate="G$1" x="198.12" y="-8.89" rot="MR0"/>
<instance part="U$40" gate="G$1" x="205.74" y="-8.89" rot="MR0"/>
<instance part="U$41" gate="G$1" x="180.34" y="-107.95" rot="MR0"/>
<instance part="SW1" gate="-1" x="175.26" y="-127" rot="R270"/>
<instance part="SW1" gate="-2" x="175.26" y="-116.84" rot="R90"/>
<instance part="SW1" gate="-3" x="180.34" y="-127" rot="R270"/>
<instance part="SW1" gate="-4" x="180.34" y="-116.84" rot="R90"/>
<instance part="SW1" gate="-5" x="185.42" y="-127" rot="R270"/>
<instance part="SW1" gate="-6" x="185.42" y="-116.84" rot="R90"/>
<instance part="U$42" gate="G$1" x="234.95" y="45.72"/>
<instance part="U$45" gate="G$1" x="245.11" y="-64.77"/>
</instances>
<busses>
</busses>
1164,7 → 1164,7
<segment>
<pinref part="U$2" gate="G$1" pin="GND"/>
<pinref part="X1" gate="G$1" pin="GND"/>
<wire x1="165.1" y1="-106.68" x2="165.1" y2="-104.14" width="0.1524" layer="91"/>
<wire x1="168.91" y1="-207.01" x2="168.91" y2="-204.47" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV1" gate="-1" pin="P$1"/>
1198,87 → 1198,87
</segment>
<segment>
<pinref part="SV4" gate="-1" pin="P$1"/>
<wire x1="264.16" y1="90.17" x2="271.78" y2="90.17" width="0.1524" layer="91"/>
<wire x1="137.16" y1="33.02" x2="144.78" y2="33.02" width="0.1524" layer="91"/>
<pinref part="U$18" gate="G$1" pin="GND"/>
</segment>
<segment>
<pinref part="SV4" gate="-5" pin="P$1"/>
<wire x1="264.16" y1="69.85" x2="271.78" y2="69.85" width="0.1524" layer="91"/>
<wire x1="137.16" y1="12.7" x2="144.78" y2="12.7" width="0.1524" layer="91"/>
<pinref part="U$19" gate="G$1" pin="GND"/>
</segment>
<segment>
<pinref part="SV5" gate="-1" pin="P$1"/>
<wire x1="135.89" y1="33.02" x2="143.51" y2="33.02" width="0.1524" layer="91"/>
<wire x1="177.8" y1="33.02" x2="185.42" y2="33.02" width="0.1524" layer="91"/>
<pinref part="U$23" gate="G$1" pin="GND"/>
</segment>
<segment>
<pinref part="SV5" gate="-5" pin="P$1"/>
<wire x1="135.89" y1="12.7" x2="143.51" y2="12.7" width="0.1524" layer="91"/>
<wire x1="177.8" y1="12.7" x2="185.42" y2="12.7" width="0.1524" layer="91"/>
<pinref part="U$24" gate="G$1" pin="GND"/>
</segment>
<segment>
<pinref part="SV6" gate="-1" pin="P$1"/>
<wire x1="180.34" y1="33.02" x2="187.96" y2="33.02" width="0.1524" layer="91"/>
<wire x1="224.79" y1="33.02" x2="232.41" y2="33.02" width="0.1524" layer="91"/>
<pinref part="U$28" gate="G$1" pin="GND"/>
</segment>
<segment>
<pinref part="SV6" gate="-5" pin="P$1"/>
<wire x1="180.34" y1="12.7" x2="187.96" y2="12.7" width="0.1524" layer="91"/>
<wire x1="224.79" y1="12.7" x2="232.41" y2="12.7" width="0.1524" layer="91"/>
<pinref part="U$29" gate="G$1" pin="GND"/>
</segment>
<segment>
<pinref part="SV7" gate="-1" pin="P$1"/>
<wire x1="219.71" y1="33.02" x2="227.33" y2="33.02" width="0.1524" layer="91"/>
<wire x1="137.16" y1="-21.59" x2="144.78" y2="-21.59" width="0.1524" layer="91"/>
<pinref part="U$33" gate="G$1" pin="GND"/>
</segment>
<segment>
<pinref part="SV7" gate="-5" pin="P$1"/>
<wire x1="219.71" y1="12.7" x2="227.33" y2="12.7" width="0.1524" layer="91"/>
<wire x1="137.16" y1="-41.91" x2="144.78" y2="-41.91" width="0.1524" layer="91"/>
<pinref part="U$34" gate="G$1" pin="GND"/>
</segment>
<segment>
<pinref part="SV8" gate="-1" pin="P$1"/>
<wire x1="265.43" y1="33.02" x2="273.05" y2="33.02" width="0.1524" layer="91"/>
<wire x1="182.88" y1="-21.59" x2="190.5" y2="-21.59" width="0.1524" layer="91"/>
<pinref part="U$38" gate="G$1" pin="GND"/>
</segment>
<segment>
<pinref part="SV8" gate="-5" pin="P$1"/>
<wire x1="265.43" y1="12.7" x2="273.05" y2="12.7" width="0.1524" layer="91"/>
<wire x1="182.88" y1="-41.91" x2="190.5" y2="-41.91" width="0.1524" layer="91"/>
<pinref part="U$39" gate="G$1" pin="GND"/>
</segment>
<segment>
<pinref part="X1" gate="G$1" pin="A2"/>
<pinref part="U$46" gate="G$1" pin="GND"/>
<wire x1="198.12" y1="-63.5" x2="195.58" y2="-63.5" width="0.1524" layer="91"/>
<wire x1="201.93" y1="-163.83" x2="199.39" y2="-163.83" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="R21" gate="G$1" pin="1"/>
<pinref part="U$47" gate="G$1" pin="GND"/>
<wire x1="134.62" y1="-66.04" x2="134.62" y2="-63.5" width="0.1524" layer="91"/>
<wire x1="138.43" y1="-166.37" x2="138.43" y2="-163.83" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="R23" gate="G$1" pin="1"/>
<pinref part="U$48" gate="G$1" pin="GND"/>
<wire x1="142.24" y1="-66.04" x2="142.24" y2="-63.5" width="0.1524" layer="91"/>
<wire x1="146.05" y1="-166.37" x2="146.05" y2="-163.83" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="C1" gate="G$1" pin="2"/>
<pinref part="U$54" gate="G$1" pin="GND"/>
<wire x1="218.44" y1="-43.18" x2="218.44" y2="-40.64" width="0.1524" layer="91"/>
<wire x1="222.25" y1="-143.51" x2="222.25" y2="-140.97" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="U$56" gate="G$1" pin="GND"/>
<wire x1="232.41" y1="-69.85" x2="232.41" y2="-66.04" width="0.1524" layer="91"/>
<wire x1="219.71" y1="-71.12" x2="219.71" y2="-67.31" width="0.1524" layer="91"/>
<pinref part="SV10" gate="-3" pin="K"/>
<wire x1="232.41" y1="-66.04" x2="232.41" y2="-54.61" width="0.1524" layer="91"/>
<wire x1="240.03" y1="-66.04" x2="237.49" y2="-66.04" width="0.1524" layer="91"/>
<wire x1="219.71" y1="-67.31" x2="219.71" y2="-55.88" width="0.1524" layer="91"/>
<wire x1="227.33" y1="-67.31" x2="224.79" y2="-67.31" width="0.1524" layer="91"/>
<pinref part="D5" gate="G$1" pin="A"/>
<wire x1="237.49" y1="-66.04" x2="232.41" y2="-66.04" width="0.1524" layer="91"/>
<wire x1="237.49" y1="-64.77" x2="237.49" y2="-66.04" width="0.1524" layer="91"/>
<junction x="232.41" y="-66.04"/>
<junction x="237.49" y="-66.04"/>
<wire x1="224.79" y1="-67.31" x2="219.71" y2="-67.31" width="0.1524" layer="91"/>
<wire x1="224.79" y1="-66.04" x2="224.79" y2="-67.31" width="0.1524" layer="91"/>
<junction x="219.71" y="-67.31"/>
<junction x="224.79" y="-67.31"/>
<pinref part="SV10" gate="-1" pin="K"/>
<wire x1="232.41" y1="-54.61" x2="240.03" y2="-54.61" width="0.1524" layer="91"/>
<wire x1="219.71" y1="-55.88" x2="227.33" y2="-55.88" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="D1" gate="G$1" pin="A"/>
1293,85 → 1293,85
<segment>
<pinref part="D3" gate="G$1" pin="A"/>
<pinref part="U$71" gate="G$1" pin="GND"/>
<wire x1="149.86" y1="2.54" x2="149.86" y2="3.81" width="0.1524" layer="91"/>
<wire x1="191.77" y1="2.54" x2="191.77" y2="3.81" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="D4" gate="G$1" pin="A"/>
<pinref part="U$77" gate="G$1" pin="GND"/>
<wire x1="233.68" y1="2.54" x2="233.68" y2="3.81" width="0.1524" layer="91"/>
<wire x1="151.13" y1="-52.07" x2="151.13" y2="-50.8" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="X6" gate="G$1" pin="GND"/>
<pinref part="U$81" gate="G$1" pin="GND"/>
<wire x1="248.92" y1="-33.02" x2="248.92" y2="-29.21" width="0.1524" layer="91"/>
<wire x1="237.49" y1="-20.32" x2="237.49" y2="-16.51" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="C2" gate="G$1" pin="C_EL-"/>
<pinref part="U$84" gate="G$1" pin="GND"/>
<wire x1="234.95" y1="-33.02" x2="234.95" y2="-29.21" width="0.1524" layer="91"/>
<wire x1="223.52" y1="-20.32" x2="223.52" y2="-16.51" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="C3" gate="G$1" pin="C_EL-"/>
<pinref part="U$85" gate="G$1" pin="GND"/>
<wire x1="264.16" y1="-33.02" x2="264.16" y2="-29.21" width="0.1524" layer="91"/>
<wire x1="252.73" y1="-20.32" x2="252.73" y2="-16.51" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="U$87" gate="G$1" pin="GND"/>
<wire x1="274.32" y1="-33.02" x2="274.32" y2="-30.48" width="0.1524" layer="91"/>
<wire x1="193.04" y1="-71.12" x2="193.04" y2="-68.58" width="0.1524" layer="91"/>
<pinref part="SV11" gate="-3" pin="K"/>
<wire x1="281.94" y1="-30.48" x2="274.32" y2="-30.48" width="0.1524" layer="91"/>
<wire x1="274.32" y1="-30.48" x2="274.32" y2="-20.32" width="0.1524" layer="91"/>
<junction x="274.32" y="-30.48"/>
<wire x1="200.66" y1="-68.58" x2="193.04" y2="-68.58" width="0.1524" layer="91"/>
<wire x1="193.04" y1="-68.58" x2="193.04" y2="-58.42" width="0.1524" layer="91"/>
<junction x="193.04" y="-68.58"/>
<pinref part="SV11" gate="-1" pin="K"/>
<wire x1="274.32" y1="-20.32" x2="281.94" y2="-20.32" width="0.1524" layer="91"/>
<wire x1="193.04" y1="-58.42" x2="200.66" y2="-58.42" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="X2" gate="P4" pin="P$1"/>
<pinref part="U$45" gate="G$1" pin="GND"/>
<wire x1="259.08" y1="-48.26" x2="256.54" y2="-48.26" width="0.1524" layer="91"/>
<wire x1="256.54" y1="-48.26" x2="256.54" y2="-55.88" width="0.1524" layer="91"/>
<wire x1="247.65" y1="-35.56" x2="245.11" y2="-35.56" width="0.1524" layer="91"/>
<wire x1="245.11" y1="-35.56" x2="245.11" y2="-43.18" width="0.1524" layer="91"/>
<pinref part="X5" gate="P4" pin="P$1"/>
<wire x1="256.54" y1="-55.88" x2="256.54" y2="-63.5" width="0.1524" layer="91"/>
<wire x1="256.54" y1="-63.5" x2="256.54" y2="-71.12" width="0.1524" layer="91"/>
<wire x1="256.54" y1="-71.12" x2="256.54" y2="-77.47" width="0.1524" layer="91"/>
<wire x1="259.08" y1="-71.12" x2="256.54" y2="-71.12" width="0.1524" layer="91"/>
<wire x1="245.11" y1="-43.18" x2="245.11" y2="-50.8" width="0.1524" layer="91"/>
<wire x1="245.11" y1="-50.8" x2="245.11" y2="-58.42" width="0.1524" layer="91"/>
<wire x1="245.11" y1="-58.42" x2="245.11" y2="-64.77" width="0.1524" layer="91"/>
<wire x1="247.65" y1="-58.42" x2="245.11" y2="-58.42" width="0.1524" layer="91"/>
<pinref part="X4" gate="P4" pin="P$1"/>
<wire x1="259.08" y1="-63.5" x2="256.54" y2="-63.5" width="0.1524" layer="91"/>
<wire x1="247.65" y1="-50.8" x2="245.11" y2="-50.8" width="0.1524" layer="91"/>
<pinref part="X3" gate="P4" pin="P$1"/>
<wire x1="259.08" y1="-55.88" x2="256.54" y2="-55.88" width="0.1524" layer="91"/>
<junction x="256.54" y="-71.12"/>
<junction x="256.54" y="-63.5"/>
<junction x="256.54" y="-55.88"/>
<wire x1="247.65" y1="-43.18" x2="245.11" y2="-43.18" width="0.1524" layer="91"/>
<junction x="245.11" y="-58.42"/>
<junction x="245.11" y="-50.8"/>
<junction x="245.11" y="-43.18"/>
</segment>
</net>
<net name="+VCC" class="0">
<segment>
<pinref part="X6" gate="G$1" pin="IN"/>
<wire x1="236.22" y1="-21.59" x2="234.95" y2="-21.59" width="0.1524" layer="91"/>
<wire x1="224.79" y1="-8.89" x2="223.52" y2="-8.89" width="0.1524" layer="91"/>
<pinref part="U$82" gate="G$2" pin="+VCC"/>
<wire x1="234.95" y1="-21.59" x2="234.95" y2="-19.05" width="0.1524" layer="91"/>
<wire x1="223.52" y1="-8.89" x2="223.52" y2="-6.35" width="0.1524" layer="91"/>
<pinref part="C2" gate="G$1" pin="C_EL+"/>
<wire x1="234.95" y1="-24.13" x2="234.95" y2="-21.59" width="0.1524" layer="91"/>
<junction x="234.95" y="-21.59"/>
<wire x1="223.52" y1="-11.43" x2="223.52" y2="-8.89" width="0.1524" layer="91"/>
<junction x="223.52" y="-8.89"/>
</segment>
<segment>
<pinref part="U$1" gate="G$2" pin="+VCC"/>
<wire x1="166.37" y1="-31.75" x2="166.37" y2="-10.16" width="0.1524" layer="91"/>
<wire x1="170.18" y1="-132.08" x2="170.18" y2="-110.49" width="0.1524" layer="91"/>
<pinref part="SW1" gate="-1" pin="P$1"/>
<wire x1="171.45" y1="-26.67" x2="171.45" y2="-31.75" width="0.1524" layer="91"/>
<wire x1="171.45" y1="-31.75" x2="166.37" y2="-31.75" width="0.1524" layer="91"/>
<wire x1="175.26" y1="-127" x2="175.26" y2="-132.08" width="0.1524" layer="91"/>
<wire x1="175.26" y1="-132.08" x2="170.18" y2="-132.08" width="0.1524" layer="91"/>
<pinref part="SW1" gate="-2" pin="P$1"/>
<wire x1="171.45" y1="-16.51" x2="171.45" y2="-10.16" width="0.1524" layer="91"/>
<wire x1="171.45" y1="-10.16" x2="166.37" y2="-10.16" width="0.1524" layer="91"/>
<junction x="166.37" y="-10.16"/>
<wire x1="175.26" y1="-116.84" x2="175.26" y2="-110.49" width="0.1524" layer="91"/>
<wire x1="175.26" y1="-110.49" x2="170.18" y2="-110.49" width="0.1524" layer="91"/>
<junction x="170.18" y="-110.49"/>
</segment>
<segment>
<pinref part="SV10" gate="-2" pin="K"/>
<wire x1="240.03" y1="-59.69" x2="237.49" y2="-59.69" width="0.1524" layer="91"/>
<wire x1="227.33" y1="-60.96" x2="224.79" y2="-60.96" width="0.1524" layer="91"/>
<pinref part="D5" gate="G$1" pin="C"/>
<wire x1="237.49" y1="-59.69" x2="237.49" y2="-53.34" width="0.1524" layer="91"/>
<wire x1="224.79" y1="-60.96" x2="224.79" y2="-54.61" width="0.1524" layer="91"/>
<pinref part="U$55" gate="G$2" pin="+VCC"/>
<junction x="237.49" y="-59.69"/>
<junction x="224.79" y="-60.96"/>
</segment>
</net>
<net name="SDA" class="0">
1378,11 → 1378,11
<segment>
<pinref part="X1" gate="G$1" pin="SDA"/>
<pinref part="R18" gate="G$1" pin="1"/>
<wire x1="208.28" y1="-53.34" x2="195.58" y2="-53.34" width="0.1524" layer="91"/>
<wire x1="208.28" y1="-50.8" x2="208.28" y2="-53.34" width="0.1524" layer="91"/>
<wire x1="212.09" y1="-153.67" x2="199.39" y2="-153.67" width="0.1524" layer="91"/>
<wire x1="212.09" y1="-151.13" x2="212.09" y2="-153.67" width="0.1524" layer="91"/>
<pinref part="SV9" gate="-2" pin="K"/>
<wire x1="208.28" y1="-53.34" x2="214.63" y2="-53.34" width="0.1524" layer="91"/>
<junction x="208.28" y="-53.34"/>
<wire x1="212.09" y1="-153.67" x2="218.44" y2="-153.67" width="0.1524" layer="91"/>
<junction x="212.09" y="-153.67"/>
</segment>
</net>
<net name="SCL" class="0">
1389,11 → 1389,11
<segment>
<pinref part="X1" gate="G$1" pin="SCL"/>
<pinref part="R17" gate="G$1" pin="1"/>
<wire x1="200.66" y1="-58.42" x2="195.58" y2="-58.42" width="0.1524" layer="91"/>
<wire x1="200.66" y1="-50.8" x2="200.66" y2="-58.42" width="0.1524" layer="91"/>
<wire x1="204.47" y1="-158.75" x2="199.39" y2="-158.75" width="0.1524" layer="91"/>
<wire x1="204.47" y1="-151.13" x2="204.47" y2="-158.75" width="0.1524" layer="91"/>
<pinref part="SV9" gate="-1" pin="K"/>
<wire x1="200.66" y1="-58.42" x2="214.63" y2="-58.42" width="0.1524" layer="91"/>
<junction x="200.66" y="-58.42"/>
<wire x1="204.47" y1="-158.75" x2="218.44" y2="-158.75" width="0.1524" layer="91"/>
<junction x="204.47" y="-158.75"/>
</segment>
</net>
<net name="/RESET" class="0">
1400,22 → 1400,22
<segment>
<pinref part="X1" gate="G$1" pin="/RESET"/>
<pinref part="SV9" gate="-3" pin="K"/>
<wire x1="160.02" y1="-58.42" x2="162.56" y2="-58.42" width="0.1524" layer="91"/>
<wire x1="163.83" y1="-158.75" x2="166.37" y2="-158.75" width="0.1524" layer="91"/>
<pinref part="R19" gate="G$1" pin="1"/>
<wire x1="162.56" y1="-58.42" x2="165.1" y2="-58.42" width="0.1524" layer="91"/>
<wire x1="162.56" y1="-45.72" x2="162.56" y2="-58.42" width="0.1524" layer="91"/>
<junction x="162.56" y="-58.42"/>
<wire x1="166.37" y1="-158.75" x2="168.91" y2="-158.75" width="0.1524" layer="91"/>
<wire x1="166.37" y1="-146.05" x2="166.37" y2="-158.75" width="0.1524" layer="91"/>
<junction x="166.37" y="-158.75"/>
</segment>
</net>
<net name="N$20" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="A0"/>
<wire x1="165.1" y1="-48.26" x2="134.62" y2="-48.26" width="0.1524" layer="91"/>
<wire x1="168.91" y1="-148.59" x2="138.43" y2="-148.59" width="0.1524" layer="91"/>
<pinref part="R21" gate="G$1" pin="2"/>
<pinref part="R20" gate="G$1" pin="1"/>
<wire x1="134.62" y1="-53.34" x2="134.62" y2="-48.26" width="0.1524" layer="91"/>
<junction x="134.62" y="-48.26"/>
<wire x1="134.62" y1="-48.26" x2="134.62" y2="-45.72" width="0.1524" layer="91"/>
<wire x1="138.43" y1="-153.67" x2="138.43" y2="-148.59" width="0.1524" layer="91"/>
<junction x="138.43" y="-148.59"/>
<wire x1="138.43" y1="-148.59" x2="138.43" y2="-146.05" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$22" class="0">
1422,16 → 1422,16
<segment>
<pinref part="R23" gate="G$1" pin="2"/>
<pinref part="R22" gate="G$1" pin="1"/>
<wire x1="142.24" y1="-53.34" x2="142.24" y2="-45.72" width="0.1524" layer="91"/>
<wire x1="146.05" y1="-153.67" x2="146.05" y2="-146.05" width="0.1524" layer="91"/>
<pinref part="X1" gate="G$1" pin="A1"/>
<wire x1="165.1" y1="-53.34" x2="142.24" y2="-53.34" width="0.1524" layer="91"/>
<junction x="142.24" y="-53.34"/>
<wire x1="168.91" y1="-153.67" x2="146.05" y2="-153.67" width="0.1524" layer="91"/>
<junction x="146.05" y="-153.67"/>
</segment>
</net>
<net name="SD0" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SD0"/>
<wire x1="165.1" y1="-63.5" x2="162.56" y2="-63.5" width="0.1524" layer="91"/>
<wire x1="168.91" y1="-163.83" x2="166.37" y2="-163.83" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV1" gate="-4" pin="P$1"/>
1445,7 → 1445,7
<net name="SC0" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SC0"/>
<wire x1="165.1" y1="-68.58" x2="162.56" y2="-68.58" width="0.1524" layer="91"/>
<wire x1="168.91" y1="-168.91" x2="166.37" y2="-168.91" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV1" gate="-2" pin="P$1"/>
1459,7 → 1459,7
<net name="SD1" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SD1"/>
<wire x1="165.1" y1="-73.66" x2="162.56" y2="-73.66" width="0.1524" layer="91"/>
<wire x1="168.91" y1="-173.99" x2="166.37" y2="-173.99" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV2" gate="-4" pin="P$1"/>
1473,7 → 1473,7
<net name="SC1" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SC1"/>
<wire x1="165.1" y1="-78.74" x2="162.56" y2="-78.74" width="0.1524" layer="91"/>
<wire x1="168.91" y1="-179.07" x2="166.37" y2="-179.07" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV2" gate="-2" pin="P$1"/>
1487,7 → 1487,7
<net name="SD2" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SD2"/>
<wire x1="165.1" y1="-83.82" x2="162.56" y2="-83.82" width="0.1524" layer="91"/>
<wire x1="168.91" y1="-184.15" x2="166.37" y2="-184.15" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV3" gate="-4" pin="P$1"/>
1501,7 → 1501,7
<net name="SC2" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SC2"/>
<wire x1="165.1" y1="-88.9" x2="162.56" y2="-88.9" width="0.1524" layer="91"/>
<wire x1="168.91" y1="-189.23" x2="166.37" y2="-189.23" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV3" gate="-2" pin="P$1"/>
1515,202 → 1515,202
<net name="SD3" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SD3"/>
<wire x1="165.1" y1="-93.98" x2="162.56" y2="-93.98" width="0.1524" layer="91"/>
<wire x1="168.91" y1="-194.31" x2="166.37" y2="-194.31" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV4" gate="-4" pin="P$1"/>
<wire x1="264.16" y1="74.93" x2="279.4" y2="74.93" width="0.1524" layer="91"/>
<wire x1="279.4" y1="74.93" x2="289.56" y2="74.93" width="0.1524" layer="91"/>
<wire x1="137.16" y1="17.78" x2="152.4" y2="17.78" width="0.1524" layer="91"/>
<wire x1="152.4" y1="17.78" x2="162.56" y2="17.78" width="0.1524" layer="91"/>
<pinref part="R8" gate="G$1" pin="1"/>
<wire x1="279.4" y1="87.63" x2="279.4" y2="74.93" width="0.1524" layer="91"/>
<junction x="279.4" y="74.93"/>
<wire x1="152.4" y1="30.48" x2="152.4" y2="17.78" width="0.1524" layer="91"/>
<junction x="152.4" y="17.78"/>
</segment>
</net>
<net name="SC3" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SC3"/>
<wire x1="165.1" y1="-99.06" x2="162.56" y2="-99.06" width="0.1524" layer="91"/>
<wire x1="168.91" y1="-199.39" x2="166.37" y2="-199.39" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV4" gate="-2" pin="P$1"/>
<wire x1="264.16" y1="85.09" x2="287.02" y2="85.09" width="0.1524" layer="91"/>
<wire x1="287.02" y1="85.09" x2="289.56" y2="85.09" width="0.1524" layer="91"/>
<wire x1="137.16" y1="27.94" x2="160.02" y2="27.94" width="0.1524" layer="91"/>
<wire x1="160.02" y1="27.94" x2="162.56" y2="27.94" width="0.1524" layer="91"/>
<pinref part="R7" gate="G$1" pin="1"/>
<wire x1="287.02" y1="85.09" x2="287.02" y2="87.63" width="0.1524" layer="91"/>
<junction x="287.02" y="85.09"/>
<wire x1="160.02" y1="27.94" x2="160.02" y2="30.48" width="0.1524" layer="91"/>
<junction x="160.02" y="27.94"/>
</segment>
</net>
<net name="SC7" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SC7"/>
<wire x1="195.58" y1="-68.58" x2="198.12" y2="-68.58" width="0.1524" layer="91"/>
<wire x1="199.39" y1="-168.91" x2="201.93" y2="-168.91" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV8" gate="-2" pin="P$1"/>
<wire x1="265.43" y1="27.94" x2="288.29" y2="27.94" width="0.1524" layer="91"/>
<wire x1="288.29" y1="27.94" x2="290.83" y2="27.94" width="0.1524" layer="91"/>
<wire x1="182.88" y1="-26.67" x2="205.74" y2="-26.67" width="0.1524" layer="91"/>
<wire x1="205.74" y1="-26.67" x2="208.28" y2="-26.67" width="0.1524" layer="91"/>
<pinref part="R15" gate="G$1" pin="1"/>
<wire x1="288.29" y1="27.94" x2="288.29" y2="30.48" width="0.1524" layer="91"/>
<junction x="288.29" y="27.94"/>
<wire x1="205.74" y1="-26.67" x2="205.74" y2="-24.13" width="0.1524" layer="91"/>
<junction x="205.74" y="-26.67"/>
</segment>
</net>
<net name="SD7" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SD7"/>
<wire x1="195.58" y1="-73.66" x2="198.12" y2="-73.66" width="0.1524" layer="91"/>
<wire x1="199.39" y1="-173.99" x2="201.93" y2="-173.99" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV8" gate="-4" pin="P$1"/>
<wire x1="265.43" y1="17.78" x2="280.67" y2="17.78" width="0.1524" layer="91"/>
<wire x1="280.67" y1="17.78" x2="290.83" y2="17.78" width="0.1524" layer="91"/>
<wire x1="182.88" y1="-36.83" x2="198.12" y2="-36.83" width="0.1524" layer="91"/>
<wire x1="198.12" y1="-36.83" x2="208.28" y2="-36.83" width="0.1524" layer="91"/>
<pinref part="R16" gate="G$1" pin="1"/>
<wire x1="280.67" y1="30.48" x2="280.67" y2="17.78" width="0.1524" layer="91"/>
<junction x="280.67" y="17.78"/>
<wire x1="198.12" y1="-24.13" x2="198.12" y2="-36.83" width="0.1524" layer="91"/>
<junction x="198.12" y="-36.83"/>
</segment>
</net>
<net name="SC6" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SC6"/>
<wire x1="195.58" y1="-78.74" x2="198.12" y2="-78.74" width="0.1524" layer="91"/>
<wire x1="199.39" y1="-179.07" x2="201.93" y2="-179.07" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV7" gate="-2" pin="P$1"/>
<wire x1="219.71" y1="27.94" x2="248.92" y2="27.94" width="0.1524" layer="91"/>
<wire x1="248.92" y1="27.94" x2="251.46" y2="27.94" width="0.1524" layer="91"/>
<wire x1="137.16" y1="-26.67" x2="166.37" y2="-26.67" width="0.1524" layer="91"/>
<wire x1="166.37" y1="-26.67" x2="168.91" y2="-26.67" width="0.1524" layer="91"/>
<pinref part="R13" gate="G$1" pin="1"/>
<wire x1="248.92" y1="27.94" x2="248.92" y2="30.48" width="0.1524" layer="91"/>
<junction x="248.92" y="27.94"/>
<wire x1="166.37" y1="-26.67" x2="166.37" y2="-24.13" width="0.1524" layer="91"/>
<junction x="166.37" y="-26.67"/>
</segment>
</net>
<net name="SD6" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SD6"/>
<wire x1="195.58" y1="-83.82" x2="198.12" y2="-83.82" width="0.1524" layer="91"/>
<wire x1="199.39" y1="-184.15" x2="201.93" y2="-184.15" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV7" gate="-4" pin="P$1"/>
<wire x1="219.71" y1="17.78" x2="241.3" y2="17.78" width="0.1524" layer="91"/>
<wire x1="241.3" y1="17.78" x2="251.46" y2="17.78" width="0.1524" layer="91"/>
<wire x1="137.16" y1="-36.83" x2="158.75" y2="-36.83" width="0.1524" layer="91"/>
<wire x1="158.75" y1="-36.83" x2="168.91" y2="-36.83" width="0.1524" layer="91"/>
<pinref part="R14" gate="G$1" pin="1"/>
<wire x1="241.3" y1="30.48" x2="241.3" y2="17.78" width="0.1524" layer="91"/>
<junction x="241.3" y="17.78"/>
<wire x1="158.75" y1="-24.13" x2="158.75" y2="-36.83" width="0.1524" layer="91"/>
<junction x="158.75" y="-36.83"/>
</segment>
</net>
<net name="SC5" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SC5"/>
<wire x1="195.58" y1="-88.9" x2="198.12" y2="-88.9" width="0.1524" layer="91"/>
<wire x1="199.39" y1="-189.23" x2="201.93" y2="-189.23" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV6" gate="-2" pin="P$1"/>
<wire x1="180.34" y1="27.94" x2="203.2" y2="27.94" width="0.1524" layer="91"/>
<wire x1="203.2" y1="27.94" x2="205.74" y2="27.94" width="0.1524" layer="91"/>
<wire x1="224.79" y1="27.94" x2="247.65" y2="27.94" width="0.1524" layer="91"/>
<wire x1="247.65" y1="27.94" x2="250.19" y2="27.94" width="0.1524" layer="91"/>
<pinref part="R11" gate="G$1" pin="1"/>
<wire x1="203.2" y1="27.94" x2="203.2" y2="30.48" width="0.1524" layer="91"/>
<junction x="203.2" y="27.94"/>
<wire x1="247.65" y1="27.94" x2="247.65" y2="30.48" width="0.1524" layer="91"/>
<junction x="247.65" y="27.94"/>
</segment>
</net>
<net name="SD5" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SD5"/>
<wire x1="195.58" y1="-93.98" x2="198.12" y2="-93.98" width="0.1524" layer="91"/>
<wire x1="199.39" y1="-194.31" x2="201.93" y2="-194.31" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV6" gate="-4" pin="P$1"/>
<wire x1="180.34" y1="17.78" x2="195.58" y2="17.78" width="0.1524" layer="91"/>
<wire x1="195.58" y1="17.78" x2="205.74" y2="17.78" width="0.1524" layer="91"/>
<wire x1="224.79" y1="17.78" x2="240.03" y2="17.78" width="0.1524" layer="91"/>
<wire x1="240.03" y1="17.78" x2="250.19" y2="17.78" width="0.1524" layer="91"/>
<pinref part="R12" gate="G$1" pin="1"/>
<wire x1="195.58" y1="30.48" x2="195.58" y2="17.78" width="0.1524" layer="91"/>
<junction x="195.58" y="17.78"/>
<wire x1="240.03" y1="30.48" x2="240.03" y2="17.78" width="0.1524" layer="91"/>
<junction x="240.03" y="17.78"/>
</segment>
</net>
<net name="SC4" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SC4"/>
<wire x1="195.58" y1="-99.06" x2="198.12" y2="-99.06" width="0.1524" layer="91"/>
<wire x1="199.39" y1="-199.39" x2="201.93" y2="-199.39" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV5" gate="-2" pin="P$1"/>
<wire x1="135.89" y1="27.94" x2="165.1" y2="27.94" width="0.1524" layer="91"/>
<wire x1="165.1" y1="27.94" x2="167.64" y2="27.94" width="0.1524" layer="91"/>
<wire x1="177.8" y1="27.94" x2="207.01" y2="27.94" width="0.1524" layer="91"/>
<wire x1="207.01" y1="27.94" x2="209.55" y2="27.94" width="0.1524" layer="91"/>
<pinref part="R9" gate="G$1" pin="1"/>
<wire x1="165.1" y1="27.94" x2="165.1" y2="30.48" width="0.1524" layer="91"/>
<junction x="165.1" y="27.94"/>
<wire x1="207.01" y1="27.94" x2="207.01" y2="30.48" width="0.1524" layer="91"/>
<junction x="207.01" y="27.94"/>
</segment>
</net>
<net name="SD4" class="0">
<segment>
<pinref part="X1" gate="G$1" pin="SD4"/>
<wire x1="195.58" y1="-104.14" x2="198.12" y2="-104.14" width="0.1524" layer="91"/>
<wire x1="199.39" y1="-204.47" x2="201.93" y2="-204.47" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV5" gate="-4" pin="P$1"/>
<wire x1="135.89" y1="17.78" x2="157.48" y2="17.78" width="0.1524" layer="91"/>
<wire x1="157.48" y1="17.78" x2="167.64" y2="17.78" width="0.1524" layer="91"/>
<wire x1="177.8" y1="17.78" x2="199.39" y2="17.78" width="0.1524" layer="91"/>
<wire x1="199.39" y1="17.78" x2="209.55" y2="17.78" width="0.1524" layer="91"/>
<pinref part="R10" gate="G$1" pin="1"/>
<wire x1="157.48" y1="30.48" x2="157.48" y2="17.78" width="0.1524" layer="91"/>
<junction x="157.48" y="17.78"/>
<wire x1="199.39" y1="30.48" x2="199.39" y2="17.78" width="0.1524" layer="91"/>
<junction x="199.39" y="17.78"/>
</segment>
</net>
<net name="+3.3V" class="0">
<segment>
<pinref part="X6" gate="G$1" pin="OUT"/>
<wire x1="261.62" y1="-21.59" x2="264.16" y2="-21.59" width="0.1524" layer="91"/>
<wire x1="264.16" y1="-21.59" x2="264.16" y2="-19.05" width="0.1524" layer="91"/>
<wire x1="250.19" y1="-8.89" x2="252.73" y2="-8.89" width="0.1524" layer="91"/>
<wire x1="252.73" y1="-8.89" x2="252.73" y2="-6.35" width="0.1524" layer="91"/>
<pinref part="U$83" gate="G$1" pin="+3.3V"/>
<pinref part="C3" gate="G$1" pin="C_EL+"/>
<wire x1="264.16" y1="-24.13" x2="264.16" y2="-21.59" width="0.1524" layer="91"/>
<junction x="264.16" y="-21.59"/>
<wire x1="252.73" y1="-11.43" x2="252.73" y2="-8.89" width="0.1524" layer="91"/>
<junction x="252.73" y="-8.89"/>
</segment>
<segment>
<pinref part="SV11" gate="-2" pin="K"/>
<wire x1="281.94" y1="-25.4" x2="279.4" y2="-25.4" width="0.1524" layer="91"/>
<wire x1="279.4" y1="-25.4" x2="279.4" y2="-19.05" width="0.1524" layer="91"/>
<wire x1="200.66" y1="-63.5" x2="198.12" y2="-63.5" width="0.1524" layer="91"/>
<wire x1="198.12" y1="-63.5" x2="198.12" y2="-57.15" width="0.1524" layer="91"/>
<pinref part="U$86" gate="G$1" pin="+3.3V"/>
</segment>
<segment>
<pinref part="SW1" gate="-5" pin="P$1"/>
<wire x1="181.61" y1="-26.67" x2="181.61" y2="-31.75" width="0.1524" layer="91"/>
<wire x1="185.42" y1="-127" x2="185.42" y2="-132.08" width="0.1524" layer="91"/>
<pinref part="U$43" gate="G$1" pin="+3.3V"/>
<wire x1="181.61" y1="-31.75" x2="187.96" y2="-31.75" width="0.1524" layer="91"/>
<wire x1="187.96" y1="-31.75" x2="187.96" y2="-10.16" width="0.1524" layer="91"/>
<wire x1="185.42" y1="-132.08" x2="191.77" y2="-132.08" width="0.1524" layer="91"/>
<wire x1="191.77" y1="-132.08" x2="191.77" y2="-110.49" width="0.1524" layer="91"/>
<pinref part="SW1" gate="-6" pin="P$1"/>
<wire x1="181.61" y1="-16.51" x2="181.61" y2="-10.16" width="0.1524" layer="91"/>
<wire x1="181.61" y1="-10.16" x2="187.96" y2="-10.16" width="0.1524" layer="91"/>
<junction x="187.96" y="-10.16"/>
<wire x1="185.42" y1="-116.84" x2="185.42" y2="-110.49" width="0.1524" layer="91"/>
<wire x1="185.42" y1="-110.49" x2="191.77" y2="-110.49" width="0.1524" layer="91"/>
<junction x="191.77" y="-110.49"/>
</segment>
</net>
<net name="N$5" class="0">
<segment>
<pinref part="R22" gate="G$1" pin="2"/>
<wire x1="142.24" y1="-33.02" x2="142.24" y2="-35.56" width="0.1524" layer="91"/>
<wire x1="146.05" y1="-133.35" x2="146.05" y2="-135.89" width="0.1524" layer="91"/>
<pinref part="R17" gate="G$1" pin="2"/>
<pinref part="X1" gate="G$1" pin="VCC"/>
<wire x1="195.58" y1="-48.26" x2="195.58" y2="-33.02" width="0.1524" layer="91"/>
<wire x1="199.39" y1="-148.59" x2="199.39" y2="-133.35" width="0.1524" layer="91"/>
<pinref part="R20" gate="G$1" pin="2"/>
<wire x1="134.62" y1="-33.02" x2="134.62" y2="-35.56" width="0.1524" layer="91"/>
<wire x1="138.43" y1="-133.35" x2="138.43" y2="-135.89" width="0.1524" layer="91"/>
<pinref part="R18" gate="G$1" pin="2"/>
<wire x1="134.62" y1="-33.02" x2="142.24" y2="-33.02" width="0.1524" layer="91"/>
<wire x1="142.24" y1="-33.02" x2="162.56" y2="-33.02" width="0.1524" layer="91"/>
<wire x1="162.56" y1="-33.02" x2="176.53" y2="-33.02" width="0.1524" layer="91"/>
<wire x1="176.53" y1="-33.02" x2="195.58" y2="-33.02" width="0.1524" layer="91"/>
<wire x1="195.58" y1="-33.02" x2="200.66" y2="-33.02" width="0.1524" layer="91"/>
<wire x1="200.66" y1="-33.02" x2="208.28" y2="-33.02" width="0.1524" layer="91"/>
<wire x1="208.28" y1="-33.02" x2="208.28" y2="-40.64" width="0.1524" layer="91"/>
<wire x1="200.66" y1="-40.64" x2="200.66" y2="-33.02" width="0.1524" layer="91"/>
<junction x="142.24" y="-33.02"/>
<wire x1="138.43" y1="-133.35" x2="146.05" y2="-133.35" width="0.1524" layer="91"/>
<wire x1="146.05" y1="-133.35" x2="166.37" y2="-133.35" width="0.1524" layer="91"/>
<wire x1="166.37" y1="-133.35" x2="180.34" y2="-133.35" width="0.1524" layer="91"/>
<wire x1="180.34" y1="-133.35" x2="199.39" y2="-133.35" width="0.1524" layer="91"/>
<wire x1="199.39" y1="-133.35" x2="204.47" y2="-133.35" width="0.1524" layer="91"/>
<wire x1="204.47" y1="-133.35" x2="212.09" y2="-133.35" width="0.1524" layer="91"/>
<wire x1="212.09" y1="-133.35" x2="212.09" y2="-140.97" width="0.1524" layer="91"/>
<wire x1="204.47" y1="-140.97" x2="204.47" y2="-133.35" width="0.1524" layer="91"/>
<junction x="146.05" y="-133.35"/>
<pinref part="R19" gate="G$1" pin="2"/>
<wire x1="162.56" y1="-33.02" x2="162.56" y2="-35.56" width="0.1524" layer="91"/>
<junction x="162.56" y="-33.02"/>
<junction x="195.58" y="-33.02"/>
<junction x="200.66" y="-33.02"/>
<wire x1="166.37" y1="-133.35" x2="166.37" y2="-135.89" width="0.1524" layer="91"/>
<junction x="166.37" y="-133.35"/>
<junction x="199.39" y="-133.35"/>
<junction x="204.47" y="-133.35"/>
<pinref part="C1" gate="G$1" pin="1"/>
<wire x1="208.28" y1="-33.02" x2="218.44" y2="-33.02" width="0.1524" layer="91"/>
<wire x1="218.44" y1="-33.02" x2="218.44" y2="-35.56" width="0.1524" layer="91"/>
<junction x="208.28" y="-33.02"/>
<wire x1="212.09" y1="-133.35" x2="222.25" y2="-133.35" width="0.1524" layer="91"/>
<wire x1="222.25" y1="-133.35" x2="222.25" y2="-135.89" width="0.1524" layer="91"/>
<junction x="212.09" y="-133.35"/>
<pinref part="SW1" gate="-3" pin="P$1"/>
<wire x1="176.53" y1="-26.67" x2="176.53" y2="-33.02" width="0.1524" layer="91"/>
<junction x="176.53" y="-33.02"/>
<wire x1="180.34" y1="-127" x2="180.34" y2="-133.35" width="0.1524" layer="91"/>
<junction x="180.34" y="-133.35"/>
</segment>
</net>
<net name="+V1" class="0">
1772,95 → 1772,95
</segment>
<segment>
<pinref part="SV4" gate="-3" pin="P$1"/>
<wire x1="264.16" y1="80.01" x2="274.32" y2="80.01" width="0.1524" layer="91"/>
<wire x1="274.32" y1="80.01" x2="274.32" y2="100.33" width="0.1524" layer="91"/>
<wire x1="137.16" y1="22.86" x2="147.32" y2="22.86" width="0.1524" layer="91"/>
<wire x1="147.32" y1="22.86" x2="147.32" y2="43.18" width="0.1524" layer="91"/>
<pinref part="U$17" gate="G$1" pin="+V1"/>
</segment>
<segment>
<pinref part="R8" gate="G$1" pin="2"/>
<wire x1="279.4" y1="100.33" x2="279.4" y2="97.79" width="0.1524" layer="91"/>
<wire x1="152.4" y1="43.18" x2="152.4" y2="40.64" width="0.1524" layer="91"/>
<pinref part="U$20" gate="G$1" pin="+V1"/>
</segment>
<segment>
<pinref part="R10" gate="G$1" pin="2"/>
<wire x1="157.48" y1="43.18" x2="157.48" y2="40.64" width="0.1524" layer="91"/>
<wire x1="199.39" y1="43.18" x2="199.39" y2="40.64" width="0.1524" layer="91"/>
<pinref part="U$25" gate="G$1" pin="+V1"/>
</segment>
<segment>
<pinref part="R9" gate="G$1" pin="2"/>
<wire x1="165.1" y1="43.18" x2="165.1" y2="40.64" width="0.1524" layer="91"/>
<wire x1="207.01" y1="43.18" x2="207.01" y2="40.64" width="0.1524" layer="91"/>
<pinref part="U$26" gate="G$1" pin="+V1"/>
</segment>
<segment>
<pinref part="R12" gate="G$1" pin="2"/>
<wire x1="195.58" y1="43.18" x2="195.58" y2="40.64" width="0.1524" layer="91"/>
<wire x1="240.03" y1="43.18" x2="240.03" y2="40.64" width="0.1524" layer="91"/>
<pinref part="U$27" gate="G$1" pin="+V1"/>
</segment>
<segment>
<pinref part="R11" gate="G$1" pin="2"/>
<pinref part="U$30" gate="G$1" pin="+V1"/>
<wire x1="203.2" y1="43.18" x2="203.2" y2="40.64" width="0.1524" layer="91"/>
<wire x1="247.65" y1="43.18" x2="247.65" y2="40.64" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV7" gate="-3" pin="P$1"/>
<wire x1="219.71" y1="22.86" x2="233.68" y2="22.86" width="0.1524" layer="91"/>
<wire x1="233.68" y1="22.86" x2="236.22" y2="22.86" width="0.1524" layer="91"/>
<wire x1="236.22" y1="22.86" x2="236.22" y2="43.18" width="0.1524" layer="91"/>
<wire x1="233.68" y1="22.86" x2="233.68" y2="11.43" width="0.1524" layer="91"/>
<wire x1="137.16" y1="-31.75" x2="151.13" y2="-31.75" width="0.1524" layer="91"/>
<wire x1="151.13" y1="-31.75" x2="153.67" y2="-31.75" width="0.1524" layer="91"/>
<wire x1="153.67" y1="-31.75" x2="153.67" y2="-11.43" width="0.1524" layer="91"/>
<wire x1="151.13" y1="-31.75" x2="151.13" y2="-43.18" width="0.1524" layer="91"/>
<pinref part="D4" gate="G$1" pin="K"/>
<junction x="233.68" y="22.86"/>
<junction x="151.13" y="-31.75"/>
<pinref part="U$31" gate="G$1" pin="+V1"/>
</segment>
<segment>
<pinref part="R14" gate="G$1" pin="2"/>
<wire x1="241.3" y1="43.18" x2="241.3" y2="40.64" width="0.1524" layer="91"/>
<wire x1="158.75" y1="-11.43" x2="158.75" y2="-13.97" width="0.1524" layer="91"/>
<pinref part="U$32" gate="G$1" pin="+V1"/>
</segment>
<segment>
<pinref part="R13" gate="G$1" pin="2"/>
<pinref part="U$35" gate="G$1" pin="+V1"/>
<wire x1="248.92" y1="43.18" x2="248.92" y2="40.64" width="0.1524" layer="91"/>
<wire x1="166.37" y1="-11.43" x2="166.37" y2="-13.97" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV8" gate="-3" pin="P$1"/>
<wire x1="265.43" y1="22.86" x2="275.59" y2="22.86" width="0.1524" layer="91"/>
<wire x1="275.59" y1="22.86" x2="275.59" y2="43.18" width="0.1524" layer="91"/>
<wire x1="182.88" y1="-31.75" x2="193.04" y2="-31.75" width="0.1524" layer="91"/>
<wire x1="193.04" y1="-31.75" x2="193.04" y2="-11.43" width="0.1524" layer="91"/>
<pinref part="U$36" gate="G$1" pin="+V1"/>
</segment>
<segment>
<pinref part="R16" gate="G$1" pin="2"/>
<wire x1="280.67" y1="43.18" x2="280.67" y2="40.64" width="0.1524" layer="91"/>
<wire x1="198.12" y1="-11.43" x2="198.12" y2="-13.97" width="0.1524" layer="91"/>
<pinref part="U$37" gate="G$1" pin="+V1"/>
</segment>
<segment>
<pinref part="R15" gate="G$1" pin="2"/>
<wire x1="288.29" y1="43.18" x2="288.29" y2="40.64" width="0.1524" layer="91"/>
<wire x1="205.74" y1="-11.43" x2="205.74" y2="-13.97" width="0.1524" layer="91"/>
<pinref part="U$40" gate="G$1" pin="+V1"/>
</segment>
<segment>
<pinref part="SV5" gate="-3" pin="P$1"/>
<wire x1="135.89" y1="22.86" x2="149.86" y2="22.86" width="0.1524" layer="91"/>
<wire x1="149.86" y1="22.86" x2="152.4" y2="22.86" width="0.1524" layer="91"/>
<wire x1="152.4" y1="22.86" x2="152.4" y2="43.18" width="0.1524" layer="91"/>
<wire x1="149.86" y1="22.86" x2="149.86" y2="11.43" width="0.1524" layer="91"/>
<wire x1="177.8" y1="22.86" x2="191.77" y2="22.86" width="0.1524" layer="91"/>
<wire x1="191.77" y1="22.86" x2="194.31" y2="22.86" width="0.1524" layer="91"/>
<wire x1="194.31" y1="22.86" x2="194.31" y2="43.18" width="0.1524" layer="91"/>
<wire x1="191.77" y1="22.86" x2="191.77" y2="11.43" width="0.1524" layer="91"/>
<pinref part="D3" gate="G$1" pin="K"/>
<junction x="149.86" y="22.86"/>
<junction x="191.77" y="22.86"/>
<pinref part="U$22" gate="G$1" pin="+V1"/>
</segment>
<segment>
<pinref part="SW1" gate="-4" pin="P$1"/>
<pinref part="U$41" gate="G$1" pin="+V1"/>
<wire x1="176.53" y1="-10.16" x2="176.53" y2="-16.51" width="0.1524" layer="91"/>
<wire x1="180.34" y1="-110.49" x2="180.34" y2="-116.84" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="SV6" gate="-3" pin="P$1"/>
<wire x1="180.34" y1="22.86" x2="190.5" y2="22.86" width="0.1524" layer="91"/>
<wire x1="224.79" y1="22.86" x2="234.95" y2="22.86" width="0.1524" layer="91"/>
<pinref part="U$42" gate="G$1" pin="+V1"/>
<wire x1="190.5" y1="22.86" x2="190.5" y2="43.18" width="0.1524" layer="91"/>
<wire x1="234.95" y1="22.86" x2="234.95" y2="43.18" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="R7" gate="G$1" pin="2"/>
<wire x1="287.02" y1="100.33" x2="287.02" y2="97.79" width="0.1524" layer="91"/>
<wire x1="160.02" y1="43.18" x2="160.02" y2="40.64" width="0.1524" layer="91"/>
<pinref part="U$21" gate="G$1" pin="+V1"/>
</segment>
</net>
/Modules/CommSerial/I2CHUB02A/SW/PIC16F887/main.bak
0,0 → 1,265
//#include "C:\Users\Honza\Documents\pic\I2C_HUB\main.h"
 
#include "main.h"
//I2CHUB
//ADRESA pro èteni 0xE1
//pro zápis 0xE0
 
 
#define EEPROM_SDA PIN_C4
#define EEPROM_SCL PIN_C3
#use i2c(master, sda=EEPROM_SDA, scl=EEPROM_SCL)
#use rs232(baud=9600,parity=N,xmit=PIN_C7,rcv=PIN_C6,bits=8) //rcv TXD xmit RXD
 
void setHUB(int d) //vstupuje 1-8
//hodnota udava jaky port bude pripojen na master I2C
//zde je nastaveno propojeni jen jedne brany, je mozne propojit i vice bran naraz
{
switch (d) {
 
case 1: d=0x01;
 
break;
 
case 2: d=0x02;
 
break;
case 3: d=0x04;
 
break;
 
case 4: d=0x08;
 
break;
case 5: d=0x10;
 
break;
 
case 6: d=0x20;
 
break;
case 7: d=0x40;
 
break;
 
case 8: d=0x80;
 
break;
default:printf("chyba");
 
break; }
i2c_start();
I2C_Write(0xE0);
I2C_write(d);
i2c_stop();
 
}
 
 
void main()
{
 
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_2);
setup_spi(SPI_SS_DISABLED);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_ccp1(CCP_OFF);
setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard
 
printf("I2CHUB \r\n",);
printf("(c)MLAB 2013 JACHO \r\n",);
unsigned int8 INTEP,INTEP1, NAP,NAP1, PROUD,PROUD1,KAPZ,KAPZ1,KAPC,KAPC1, STAV,STAV1;
 
 
 
int16 data4;
int16 data5;
int16 data6;
int16 data7;
int16 data8;
int16 data9;
 
byte XH;
 
 
 
 
 
while(TRUE)
{
 
 
 
//akcelerometr
int1 ack;
i2c_start(); // If the write command is acknowledged,
ack = i2c_write(0xE1);//hen the device is ready.
i2c_stop();
ack=!ack;
 
delay_ms(1000);
 
 
//printf("Stav: %d (procenta)\r\n", ack);
 
printf("Stavx: %X(procenta)\r\n", XH);
 
 
 
 
setHUB(3);
 
 
 
 
 
i2c_start();
I2C_Write(0xAA);
I2C_write(0x0c);
i2c_start();
I2C_Write(0xAB);
INTEP=i2c_read(0);
i2c_stop();
i2c_start();
I2C_Write(0xAA);
I2C_write(0x0d);
i2c_start();
I2C_Write(0xAB);
INTEP1=i2c_read(0);
i2c_stop();
i2c_start();
I2C_Write(0xAA);
I2C_write(0x08);
i2c_stop();
i2c_start();
I2C_Write(0xAB);
NAP=i2c_read(0);
i2c_stop();
 
i2c_start();
I2C_Write(0xAA);
I2C_write(0x09);
i2c_stop();
i2c_start();
I2C_Write(0xAB);
NAP1=i2c_read(0);
i2c_stop();
i2c_start();
I2C_Write(0xAA);
I2C_write(0x0a);
i2c_stop();
i2c_start();
I2C_Write(0xAB);
PROUD=i2c_read(0);
i2c_stop();
 
i2c_start();
I2C_Write(0xAA);
I2C_write(0x0b);
i2c_stop();
i2c_start();
I2C_Write(0xAB);
PROUD1=i2c_read(0);
i2c_stop();
i2c_start();
I2C_Write(0xAA);
I2C_write(0x04);
i2c_stop();
i2c_start();
I2C_Write(0xAB);
KAPZ=i2c_read(0);
i2c_stop();
 
i2c_start();
I2C_Write(0xAA);
I2C_write(0x05);
i2c_stop();
i2c_start();
I2C_Write(0xAB);
KAPZ1=i2c_read(0);
i2c_stop();
i2c_start();
I2C_Write(0xAA);
I2C_write(0x06);
i2c_stop();
i2c_start();
I2C_Write(0xAB);
KAPC=i2c_read(0);
i2c_stop();
 
i2c_start();
I2C_Write(0xAA);
I2C_write(0x07);
i2c_stop();
i2c_start();
I2C_Write(0xAB);
KAPC1=i2c_read(0);
i2c_stop();
i2c_start();
I2C_Write(0xAA);
I2C_write(0x02);
i2c_stop();
i2c_start();
I2C_Write(0xAB);
STAV=i2c_read(0);
i2c_stop();
 
i2c_start();
I2C_Write(0xAA);
I2C_write(0x03);
i2c_stop();
i2c_start();
I2C_Write(0xAB);
STAV1=i2c_read(0);
i2c_stop();
 
data4 = (((unsigned int16) INTEP1 << 8) + INTEP );
data4 = (data4/10)-273;
data5 = (((unsigned int16) NAP1 << 8) + NAP );
data6 = (((unsigned int16) PROUD1 << 8) + PROUD );
data7 = (((unsigned int16) KAPZ1 << 8) + KAPZ );
data8 = (((unsigned int16) KAPC1 << 8) + KAPC );
data9 = (((unsigned int16) STAV1 << 8) + STAV );
 
 
 
printf("Teplota uvnitr io: %Ld C\r\n", data4);
printf("Napeti clanku: %Ld mV \r\n", data5);
printf("Proud: %Ld mA \r\n", data6);
printf("Kapacita zbytek: %Ld mAh\r\n", data7);
printf("Kapacita max: %Ld mAh\r\n", data8);
printf("Stav: %Ld (procenta)\r\n", data9);
 
 
delay_ms (2000);
}
}
 
/Modules/CommSerial/I2CHUB02A/SW/PIC16F887/main.c
0,0 → 1,84
//#include "C:\Users\Honza\Documents\pic\I2C_HUB\main.h"
 
#include "main.h"
//I2CHUB
//ADRESA pro èteni 0xE1
//pro zápis 0xE0
 
 
#define EEPROM_SDA PIN_C4
#define EEPROM_SCL PIN_C3
#use i2c(master, sda=EEPROM_SDA, scl=EEPROM_SCL)
#use rs232(baud=9600,parity=N,xmit=PIN_C7,rcv=PIN_C6,bits=8) //rcv TXD xmit RXD
 
void setHUB(int d) //vstupuje 1-8
//hodnota udava jaky port bude pripojen na master I2C
//zde je nastaveno propojeni jen jedne brany, je mozne propojit i vice bran naraz
{
switch (d) {
 
case 1: d=0x01;
 
break;
 
case 2: d=0x02;
 
break;
case 3: d=0x04;
 
break;
 
case 4: d=0x08;
 
break;
case 5: d=0x10;
 
break;
 
case 6: d=0x20;
 
break;
case 7: d=0x40;
 
break;
 
case 8: d=0x80;
 
break;
default:printf("chyba");
 
break; }
i2c_start();
I2C_Write(0xE0);
I2C_write(d);
i2c_stop();
 
}
 
 
void main()
{
 
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_2);
setup_spi(SPI_SS_DISABLED);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_ccp1(CCP_OFF);
setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard
 
printf("I2CHUB \r\n",);
printf("(c)MLAB 2013 JACHO \r\n",);
 
while(TRUE)
{
setHUB(3); //pripoji prislusnou branu
delay_ms(1000);
}
}
 
/Modules/CommSerial/I2CHUB02A/SW/PIC16F887/main.cof
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/Modules/CommSerial/I2CHUB02A/SW/PIC16F887/main.err
0,0 → 1,2
Memory usage: ROM=6% RAM=2% - 3%
0 Errors, 0 Warnings.
/Modules/CommSerial/I2CHUB02A/SW/PIC16F887/main.esym
0,0 → 1,415
D G "__PCM__" 0 267 ""4.106""
D G "__DEVICE__" 0 267 "887"
D G "__DATE__" 0 267 ""30-4-13""
D G "__TIME__" 0 267 ""23:58:10"" "#include "C:\Users\Honza\Documents\pic\I2C_HUB\main.h""
d G "PIN_A0" 2 20 "40"
d G "PIN_A1" 2 21 "41"
d G "PIN_A2" 2 22 "42"
d G "PIN_A3" 2 23 "43"
d G "PIN_A4" 2 24 "44"
d G "PIN_A5" 2 25 "45"
d G "PIN_A6" 2 26 "46"
d G "PIN_A7" 2 27 "47"
d G "PIN_B0" 2 29 "48"
d G "PIN_B1" 2 30 "49"
d G "PIN_B2" 2 31 "50"
d G "PIN_B3" 2 32 "51"
d G "PIN_B4" 2 33 "52"
d G "PIN_B5" 2 34 "53"
d G "PIN_B6" 2 35 "54"
d G "PIN_B7" 2 36 "55"
d G "PIN_C0" 2 38 "56"
d G "PIN_C1" 2 39 "57"
d G "PIN_C2" 2 40 "58"
d G "PIN_C3" 2 41 "59"
d G "PIN_C4" 2 42 "60"
d G "PIN_C5" 2 43 "61"
d G "PIN_C6" 2 44 "62"
d G "PIN_C7" 2 45 "63"
d G "PIN_D0" 2 47 "64"
d G "PIN_D1" 2 48 "65"
d G "PIN_D2" 2 49 "66"
d G "PIN_D3" 2 50 "67"
d G "PIN_D4" 2 51 "68"
d G "PIN_D5" 2 52 "69"
d G "PIN_D6" 2 53 "70"
d G "PIN_D7" 2 54 "71"
d G "PIN_E0" 2 56 "72"
d G "PIN_E1" 2 57 "73"
d G "PIN_E2" 2 58 "74"
d G "PIN_E3" 2 59 "75"
d G "FALSE" 2 62 "0"
d G "TRUE" 2 63 "1"
d G "BYTE" 2 65 "int8"
d G "BOOLEAN" 2 66 "int1"
d G "getc" 2 68 "getch"
d G "fgetc" 2 69 "getch"
d G "getchar" 2 70 "getch"
d G "putc" 2 71 "putchar"
d G "fputc" 2 72 "putchar"
d G "fgets" 2 73 "gets"
d G "fputs" 2 74 "puts"
d G "WDT_FROM_SLEEP" 2 79 "3"
d G "WDT_TIMEOUT" 2 80 "11"
d G "MCLR_FROM_SLEEP" 2 81 "19"
d G "MCLR_FROM_RUN" 2 82 "27"
d G "NORMAL_POWER_UP" 2 83 "25"
d G "BROWNOUT_RESTART" 2 84 "26"
d G "T0_INTERNAL" 2 91 "0"
d G "T0_EXT_L_TO_H" 2 92 "32"
d G "T0_EXT_H_TO_L" 2 93 "48"
d G "T0_DIV_1" 2 95 "8"
d G "T0_DIV_2" 2 96 "0"
d G "T0_DIV_4" 2 97 "1"
d G "T0_DIV_8" 2 98 "2"
d G "T0_DIV_16" 2 99 "3"
d G "T0_DIV_32" 2 100 "4"
d G "T0_DIV_64" 2 101 "5"
d G "T0_DIV_128" 2 102 "6"
d G "T0_DIV_256" 2 103 "7"
d G "T0_8_BIT" 2 106 "0"
d G "RTCC_INTERNAL" 2 108 "0" "The following are provided for compatibility"
d G "RTCC_EXT_L_TO_H" 2 109 "32" "with older compiler versions"
d G "RTCC_EXT_H_TO_L" 2 110 "48"
d G "RTCC_DIV_1" 2 111 "8"
d G "RTCC_DIV_2" 2 112 "0"
d G "RTCC_DIV_4" 2 113 "1"
d G "RTCC_DIV_8" 2 114 "2"
d G "RTCC_DIV_16" 2 115 "3"
d G "RTCC_DIV_32" 2 116 "4"
d G "RTCC_DIV_64" 2 117 "5"
d G "RTCC_DIV_128" 2 118 "6"
d G "RTCC_DIV_256" 2 119 "7"
d G "RTCC_8_BIT" 2 120 "0"
d G "WDT_18MS" 2 132 "8"
d G "WDT_36MS" 2 133 "9"
d G "WDT_72MS" 2 134 "10"
d G "WDT_144MS" 2 135 "11"
d G "WDT_288MS" 2 136 "12"
d G "WDT_576MS" 2 137 "13"
d G "WDT_1152MS" 2 138 "14"
d G "WDT_2304MS" 2 139 "15"
d G "WDT_ON" 2 143 "0x4100"
d G "WDT_OFF" 2 144 "0"
d G "WDT_DIV_16" 2 145 "0x100"
d G "WDT_DIV_8" 2 146 "0x300"
d G "WDT_DIV_4" 2 147 "0x500"
d G "WDT_DIV_2" 2 148 "0x700"
d G "WDT_TIMES_1" 2 149 "0x900" "Default"
d G "WDT_TIMES_2" 2 150 "0xB00"
d G "WDT_TIMES_4" 2 151 "0xD00"
d G "WDT_TIMES_8" 2 152 "0xF00"
d G "WDT_TIMES_16" 2 153 "0x1100"
d G "WDT_TIMES_32" 2 154 "0x1300"
d G "WDT_TIMES_64" 2 155 "0x1500"
d G "WDT_TIMES_128" 2 156 "0x1700"
d G "T1_DISABLED" 2 162 "0"
d G "T1_INTERNAL" 2 163 "5"
d G "T1_EXTERNAL" 2 164 "7"
d G "T1_EXTERNAL_SYNC" 2 165 "3"
d G "T1_CLK_OUT" 2 167 "8"
d G "T1_DIV_BY_1" 2 169 "0"
d G "T1_DIV_BY_2" 2 170 "0x10"
d G "T1_DIV_BY_4" 2 171 "0x20"
d G "T1_DIV_BY_8" 2 172 "0x30"
d G "T1_GATE" 2 174 "0x40"
d G "T1_GATE_INVERTED" 2 175 "0xC0"
d G "T2_DISABLED" 2 180 "0"
d G "T2_DIV_BY_1" 2 181 "4"
d G "T2_DIV_BY_4" 2 182 "5"
d G "T2_DIV_BY_16" 2 183 "6"
d G "CCP_OFF" 2 189 "0"
d G "CCP_CAPTURE_FE" 2 190 "4"
d G "CCP_CAPTURE_RE" 2 191 "5"
d G "CCP_CAPTURE_DIV_4" 2 192 "6"
d G "CCP_CAPTURE_DIV_16" 2 193 "7"
d G "CCP_COMPARE_SET_ON_MATCH" 2 194 "8"
d G "CCP_COMPARE_CLR_ON_MATCH" 2 195 "9"
d G "CCP_COMPARE_INT" 2 196 "0xA"
d G "CCP_COMPARE_RESET_TIMER" 2 197 "0xB"
d G "CCP_PWM" 2 198 "0xC"
d G "CCP_PWM_PLUS_1" 2 199 "0x1c"
d G "CCP_PWM_PLUS_2" 2 200 "0x2c"
d G "CCP_PWM_PLUS_3" 2 201 "0x3c"
d G "CCP_PWM_H_H" 2 206 "0x0c"
d G "CCP_PWM_H_L" 2 207 "0x0d"
d G "CCP_PWM_L_H" 2 208 "0x0e"
d G "CCP_PWM_L_L" 2 209 "0x0f"
d G "CCP_PWM_FULL_BRIDGE" 2 211 "0x40"
d G "CCP_PWM_FULL_BRIDGE_REV" 2 212 "0xC0"
d G "CCP_PWM_HALF_BRIDGE" 2 213 "0x80"
d G "CCP_SHUTDOWN_ON_COMP1" 2 215 "0x100000"
d G "CCP_SHUTDOWN_ON_COMP2" 2 216 "0x200000"
d G "CCP_SHUTDOWN_ON_COMP" 2 217 "0x300000"
d G "CCP_SHUTDOWN_ON_INT0" 2 218 "0x400000"
d G "CCP_SHUTDOWN_ON_COMP1_INT0" 2 219 "0x500000"
d G "CCP_SHUTDOWN_ON_COMP2_INT0" 2 220 "0x600000"
d G "CCP_SHUTDOWN_ON_COMP_INT0" 2 221 "0x700000"
d G "CCP_SHUTDOWN_AC_L" 2 223 "0x000000"
d G "CCP_SHUTDOWN_AC_H" 2 224 "0x040000"
d G "CCP_SHUTDOWN_AC_F" 2 225 "0x080000"
d G "CCP_SHUTDOWN_BD_L" 2 227 "0x000000"
d G "CCP_SHUTDOWN_BD_H" 2 228 "0x010000"
d G "CCP_SHUTDOWN_BD_F" 2 229 "0x020000"
d G "CCP_SHUTDOWN_RESTART" 2 231 "0x80000000"
d G "CCP_PULSE_STEERING_A" 2 233 "0x01000000"
d G "CCP_PULSE_STEERING_B" 2 234 "0x02000000"
d G "CCP_PULSE_STEERING_C" 2 235 "0x04000000"
d G "CCP_PULSE_STEERING_D" 2 236 "0x08000000"
d G "CCP_PULSE_STEERING_SYNC" 2 237 "0x10000000"
d G "SPI_MASTER" 2 245 "0x20"
d G "SPI_SLAVE" 2 246 "0x24"
d G "SPI_L_TO_H" 2 247 "0"
d G "SPI_H_TO_L" 2 248 "0x10"
d G "SPI_CLK_DIV_4" 2 249 "0"
d G "SPI_CLK_DIV_16" 2 250 "1"
d G "SPI_CLK_DIV_64" 2 251 "2"
d G "SPI_CLK_T2" 2 252 "3"
d G "SPI_SS_DISABLED" 2 253 "1"
d G "SPI_SAMPLE_AT_END" 2 255 "0x8000"
d G "SPI_XMIT_L_TO_H" 2 256 "0x4000"
d G "UART_ADDRESS" 2 262 "2"
d G "UART_DATA" 2 263 "4"
d G "UART_AUTODETECT" 2 264 "8"
d G "UART_AUTODETECT_NOWAIT" 2 265 "9"
d G "UART_WAKEUP_ON_RDA" 2 266 "10"
d G "UART_SEND_BREAK" 2 267 "13"
d G "NC_NC_NC_NC" 2 273 "0x00"
d G "NC_NC" 2 274 "0x00"
d G "CP1_A0_A3" 2 277 "0x00090080"
d G "CP1_A1_A3" 2 278 "0x000A0081"
d G "CP1_B3_A3" 2 279 "0x00880082"
d G "CP1_B1_A3" 2 280 "0x00280083"
d G "CP1_A0_VREF" 2 281 "0x00010084"
d G "CP1_A1_VREF" 2 282 "0x00020085"
d G "CP1_B3_VREF" 2 283 "0x00800086"
d G "CP1_B1_VREF" 2 284 "0x00200087"
d G "CP1_OUT_ON_A4" 2 286 "0x00000020"
d G "CP1_INVERT" 2 287 "0x00000010"
d G "CP1_ABSOLUTE_VREF" 2 288 "0x20000000"
d G "CP2_A0_A2" 2 291 "0x00058000"
d G "CP2_A1_A2" 2 292 "0x00068100"
d G "CP2_B3_A2" 2 293 "0x00848200"
d G "CP2_B1_A2" 2 294 "0x00248300"
d G "CP2_A0_VREF" 2 295 "0x00018400"
d G "CP2_A1_VREF" 2 296 "0x00028500"
d G "CP2_B3_VREF" 2 297 "0x00808600"
d G "CP2_B1_VREF" 2 298 "0x00208700"
d G "CP2_OUT_ON_A5" 2 300 "0x00002000"
d G "CP2_INVERT" 2 301 "0x00001000"
d G "CP2_ABSOLUTE_VREF" 2 302 "0x10000000"
d G "CP2_T1_SYNC" 2 305 "0x01000000"
d G "CP2_T1_GATE" 2 306 "0x02000000"
d G "VREF_LOW" 2 315 "0xa0"
d G "VREF_HIGH" 2 316 "0x80"
d G "OSC_31KHZ" 2 322 "1"
d G "OSC_125KHZ" 2 323 "0x11"
d G "OSC_250KHZ" 2 324 "0x21"
d G "OSC_500KHZ" 2 325 "0x31"
d G "OSC_1MHZ" 2 326 "0x41"
d G "OSC_2MHZ" 2 327 "0x51"
d G "OSC_4MHZ" 2 328 "0x61"
d G "OSC_8MHZ" 2 329 "0x71"
d G "OSC_INTRC" 2 330 "1"
d G "OSC_NORMAL" 2 331 "0"
d G "OSC_STATE_STABLE" 2 333 "4"
d G "OSC_31KHZ_STABLE" 2 334 "2"
d G "ADC_OFF" 2 342 "0" "ADC Off"
d G "ADC_CLOCK_DIV_2" 2 343 "0x100"
d G "ADC_CLOCK_DIV_8" 2 344 "0x40"
d G "ADC_CLOCK_DIV_32" 2 345 "0x80"
d G "ADC_CLOCK_INTERNAL" 2 346 "0xc0" "Internal 2-6us"
d G "sAN0" 2 350 "1" "| A0"
d G "sAN1" 2 351 "2" "| A1"
d G "sAN2" 2 352 "4" "| A2"
d G "sAN3" 2 353 "8" "| A3"
d G "sAN4" 2 354 "16" "| A5"
d G "sAN5" 2 355 "32" "| E0"
d G "sAN6" 2 356 "64" "| E1"
d G "sAN7" 2 357 "128" "| E2"
d G "sAN8" 2 358 "0x10000" "| B2"
d G "sAN9" 2 359 "0x20000" "| B3"
d G "sAN10" 2 360 "0x40000" "| B1"
d G "sAN11" 2 361 "0x80000" "| B4"
d G "sAN12" 2 362 "0x100000" "| B0"
d G "sAN13" 2 363 "0x200000" "| B5"
d G "NO_ANALOGS" 2 364 "0" "None"
d G "ALL_ANALOG" 2 365 "0x1F00FF" "A0 A1 A2 A3 A5 E0 E1 E2 B0 B1 B2 B3 B4 B5"
d G "VSS_VDD" 2 368 "0x0000" "| Range 0-Vdd"
d G "VSS_VREF" 2 369 "0x1000" "| Range 0-Vref"
d G "VREF_VREF" 2 370 "0x3000" "| Range Vref-Vref"
d G "VREF_VDD" 2 371 "0x2000" "| Range Vref-Vdd"
d G "ADC_START_AND_READ" 2 375 "7" "This is the default if nothing is specified"
d G "ADC_START_ONLY" 2 376 "1"
d G "ADC_READ_ONLY" 2 377 "6"
d G "L_TO_H" 2 389 "0x40"
d G "H_TO_L" 2 390 "0"
d G "GLOBAL" 2 392 "0x0BC0"
d G "INT_RTCC" 2 393 "0x000B20"
d G "INT_RB" 2 394 "0x01FF0B08"
d G "INT_EXT_L2H" 2 395 "0x50000B10"
d G "INT_EXT_H2L" 2 396 "0x60000B10"
d G "INT_EXT" 2 397 "0x000B10"
d G "INT_AD" 2 398 "0x008C40"
d G "INT_TBE" 2 399 "0x008C10"
d G "INT_RDA" 2 400 "0x008C20"
d G "INT_TIMER1" 2 401 "0x008C01"
d G "INT_TIMER2" 2 402 "0x008C02"
d G "INT_CCP1" 2 403 "0x008C04"
d G "INT_CCP2" 2 404 "0x008D01"
d G "INT_SSP" 2 405 "0x008C08"
d G "INT_BUSCOL" 2 406 "0x008D08"
d G "INT_EEPROM" 2 407 "0x008D10"
d G "INT_TIMER0" 2 408 "0x000B20"
d G "INT_OSC_FAIL" 2 409 "0x008D80"
d G "INT_COMP" 2 410 "0x008D20"
d G "INT_COMP2" 2 411 "0x008D40"
d G "INT_ULPWU" 2 412 "0x008D04"
d G "INT_RB0" 2 413 "0x0010B08"
d G "INT_RB1" 2 414 "0x0020B08"
d G "INT_RB2" 2 415 "0x0040B08"
d G "INT_RB3" 2 416 "0x0080B08"
d G "INT_RB4" 2 417 "0x0100B08"
d G "INT_RB5" 2 418 "0x0200B08"
d G "INT_RB6" 2 419 "0x0400B08"
d G "INT_RB7" 2 420 "0x0800B08"
D G "EEPROM_SDA" 0 9 "PIN_C4"
D G "EEPROM_SCL" 0 10 "PIN_C3"
F G "setHUB" 0 14 "void(int8 d)"
V L "d" 0 14 "int8" "vstupuje 1-8"
C L "setHUB" 0 4 2 "FUNCTION"
F G "MAIN" 0 63 "void()"
C L "MAIN" 0 4 1 "FUNCTION"
C L "MAIN" 0 4 1 "FUNCTION"
F B "reset_cpu" 0 0
F B "abs" 1 0
F B "sleep_ulpwu" 1 0
F B "sleep" 0 0
F B "delay_cycles" 1 0
F B "read_bank" 2 0
F B "write_bank" 3 0
F B "shift_left" 2 2
F B "shift_right" 2 2
F B "rotate_left" 2 0
F B "rotate_right" 2 0
F B "_mul" 2 0
F B "memset" 3 0
F B "isamoung" 2 0
F B "isamong" 2 0
F B "bit_set" 2 0
F B "bit_clear" 2 0
F B "bit_test" 2 0
F B "toupper" 1 0
F B "tolower" 1 0
F B "swap" 1 0
F B "printf" 1 255
F B "fprintf" 1 255
F B "sprintf" 1 255
F B "make8" 2 0
F B "make16" 2 0
F B "make32" 1 255
F B "label_address" 1 1
F B "goto_address" 1 0
F B "_va_arg" 1 0
F B "offsetofbit" 2 2
F B "enable_interrupts" 1 0
F B "disable_interrupts" 1 0
F B "interrupt_active" 1 0
F B "clear_interrupt" 1 0
F B "jump_to_isr" 1 0
F B "ext_int_edge" 1 2
F B "read_eeprom" 1 0
F B "write_eeprom" 2 0
F B "read_program_eeprom" 1 0
F B "write_program_eeprom" 2 0
F B "write_program_memory" 4 0
F B "write_program_memory8" 4 0
F B "read_program_memory" 4 0
F B "read_program_memory8" 4 0
F B "erase_program_eeprom" 1 0
F B "strcpy" 2 0
F B "memcpy" 3 0
F B "strstr100" 2 0
F B "output_high" 1 0
F B "output_low" 1 0
F B "input" 1 0
F B "input_state" 1 0
F B "output_float" 1 0
F B "output_drive" 1 0
F B "output_bit" 1 1
F B "output_toggle" 1 0
F B "output_a" 1 0
F B "output_b" 1 0
F B "output_c" 1 0
F B "output_d" 1 0
F B "output_e" 1 0
F B "input_a" 0 0
F B "input_b" 0 0
F B "input_c" 0 0
F B "input_d" 0 0
F B "input_e" 0 0
F B "set_tris_a" 1 0
F B "set_tris_b" 1 0
F B "set_tris_c" 1 0
F B "set_tris_d" 1 0
F B "set_tris_e" 1 0
F B "get_tris_a" 0 0
F B "get_tris_b" 0 0
F B "get_tris_c" 0 0
F B "get_tris_d" 0 0
F B "get_tris_e" 0 0
F B "input_change_a" 0 0
F B "input_change_b" 0 0
F B "input_change_c" 0 0
F B "input_change_d" 0 0
F B "input_change_e" 0 0
F B "port_b_pullups" 1 0
F B "setup_counters" 2 0
F B "setup_wdt" 1 0
F B "restart_cause" 0 0
F B "restart_wdt" 0 0
F B "get_rtcc" 0 0
F B "set_rtcc" 1 0
F B "get_timer0" 0 0
F B "set_timer0" 1 0
F B "setup_comparator" 1 0
F B "setup_port_a" 1 0
F B "setup_adc_ports" 1 0
F B "setup_adc" 1 0
F B "set_adc_channel" 1 0
F B "read_adc" 0 1
F B "adc_done" 0 0
F B "setup_timer_0" 1 0
F B "setup_vref" 1 0
F B "setup_timer_1" 1 0
F B "get_timer1" 0 0
F B "set_timer1" 1 0
F B "setup_timer_2" 3 0
F B "get_timer2" 0 0
F B "set_timer2" 1 0
F B "setup_ccp1" 1 2
F B "set_pwm1_duty" 1 0
F B "setup_ccp2" 1 0
F B "set_pwm2_duty" 1 0
F B "setup_oscillator" 1 2
F B "setup_spi" 1 0
F B "spi_read" 0 1
F B "spi_write" 1 0
F B "spi_data_is_in" 0 0
F B "setup_spi2" 1 0
F B "spi_read2" 0 1
F B "spi_write2" 1 0
F B "spi_data_is_in2" 0 0
F B "brownout_enable" 1 0
F B "delay_ms" 1 0
F B "delay_us" 1 0
F B "i2c_read" 0 2
F B "i2c_write" 1 2
F B "i2c_start" 0 2
F B "i2c_stop" 0 1
F B "i2c_isr_state" 0 1
F B "putchar" 1 2
F B "puts" 1 2
F B "getch" 0 1
F B "gets" 1 3
F B "kbhit" 0 1
/Modules/CommSerial/I2CHUB02A/SW/PIC16F887/main.h
0,0 → 1,19
#include <16F887.h>
#device adc=8
 
#FUSES NOWDT //No Watch Dog Timer
#FUSES INTRC //Internal RC Osc
#FUSES NOPUT //No Power Up Timer
#FUSES MCLR //Master Clear pin enabled
#FUSES NOPROTECT //Code not protected from reading
#FUSES NOCPD //No EE protection
#FUSES NOBROWNOUT //No brownout reset
#FUSES IESO //Internal External Switch Over mode enabled
#FUSES FCMEN //Fail-safe clock monitor enabled
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOWRT //Program memory not write protected
#FUSES BORV40 //Brownout reset at 4.0V
 
#use delay(clock=8000000)
 
/Modules/CommSerial/I2CHUB02A/SW/PIC16F887/main.hex
0,0 → 1,63
:1000000001308A00552900006334793161004919B3
:100010004324552120100D050001A831A926CC202C
:1000200042103218B1192025C121C82720100D0512
:100030000000A0132008831687008312871308305E
:10004000F80022280000F8173328F813A50C03182D
:100050008717031C8713781733287813F80B262883
:100060003128000087173F308400840B35280000BA
:10007000F81B2528781B2D280800831603178C17DA
:100080000C140000000083120C087F39031981282A
:100090000313A20003170D080313A30003170F088F
:1000A0000313A4002208A5001920230803178D00BC
:1000B0000313240803178F0083168C170C140000F9
:1000C000000083120C0D0E0D7F39031981280313D4
:1000D000A20003170D080313A30003170F0803134F
:1000E000A4002208A5001920230803178D0003137C
:1000F000240803178F008D0A03198F0A03133D2864
:100100000317031308000830F80000008711A0113E
:1001100020088316870000008312A20D0712031C1B
:10012000972820162008831687009B288312201208
:1001300020088316870000008312A015200883166C
:1001400087008312871DA228F80B852800008711DD
:10015000A0112008831687000000831220162008B3
:1001600083168700000000008312A0152008831664
:1001700087008312871DBA28F8010000071A781437
:100180008711A011200883168700831207122012FE
:10019000200883168700831208002108013A0319FA
:1001A000E728033A0319EA28013A0319ED28073A28
:1001B0000319F028013A0319F328033A0319F62822
:1001C000013A0319F9280F3A0319FC28FF280130D6
:1001D000A10007290230A10007290430A100072946
:1001E0000830A10007291030A10007292030A10004
:1001F00007294030A10007298030A10007290430D9
:1002000003178D0000308F0003133D2007292016AF
:1002100020088316870000008312A015200883168B
:10022000870000008312071220122008831687001F
:10023000000083128711A011200883168700E03088
:100240008312A20083202108A2008320201220080C
:100250008316870000008312A015200883168700EC
:100260008312871D3129000035290000201620083F
:1002700083168700000083128A110A12CB292230CC
:10028000840083130008031952290230F800F70193
:10029000F70B4829F80B47299730F700F70B4E2941
:1002A000800B45298A110A12D029840183131F303B
:1002B0008305713083168F000F088312A013200866
:1002C0008316870083128717831603170908C0391E
:1002D000890003131F129F12003003178800831236
:1002E000870188018901FF300313A00083160317DB
:1002F0000908C039890003131F129F120030031729
:100300008800831203131F139F1383169F138312F6
:100310001F149412A012200883168700831220163F
:100320002008831687008312A011200883168700F7
:100330000130831294000030831694000108C739FD
:1003400008388100831290010030F80092000030DC
:1003500083169200831220152008831687008312CB
:10036000970183169B019C0101309D0083120317A6
:1003700087018801890107308D0000308F00031349
:100380003D200D3003178D0000308F0003133D20FA
:100390000330A100CD280430A100FA30A2003F298B
:0803A000A10BCD29C82963005F
:04400E00F52CFF3F4F
:00000001FF
;PIC16F887
;CRC=E7EB CREATED="30-4-13 23:58"
/Modules/CommSerial/I2CHUB02A/SW/PIC16F887/main.lst
0,0 → 1,505
CCS PCM C Compiler, Version 4.106, 47914 30-4-13 23:58
 
Filename: c:\users\honza\documents\pic\i2c_hub\main.lst
 
ROM used: 468 words (6%)
Largest free fragment is 2048
RAM used: 7 (2%) at main() level
11 (3%) worst case
Stack: 3 locations
 
*
0000: MOVLW 01
0001: MOVWF 0A
0002: GOTO 155
0003: NOP
.................... //#include "C:\Users\Honza\Documents\pic\I2C_HUB\main.h"
....................
.................... #include "main.h"
.................... #include <16F887.h>
.................... //////// Standard Header file for the PIC16F887 device ////////////////
.................... #device PIC16F887
.................... #list
....................
.................... #device adc=8
....................
.................... #FUSES NOWDT //No Watch Dog Timer
.................... #FUSES INTRC //Internal RC Osc
.................... #FUSES NOPUT //No Power Up Timer
.................... #FUSES MCLR //Master Clear pin enabled
.................... #FUSES NOPROTECT //Code not protected from reading
.................... #FUSES NOCPD //No EE protection
.................... #FUSES NOBROWNOUT //No brownout reset
.................... #FUSES IESO //Internal External Switch Over mode enabled
.................... #FUSES FCMEN //Fail-safe clock monitor enabled
.................... #FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
.................... #FUSES NODEBUG //No Debug mode for ICD
.................... #FUSES NOWRT //Program memory not write protected
.................... #FUSES BORV40 //Brownout reset at 4.0V
....................
.................... #use delay(clock=8000000)
*
013F: MOVLW 22
0140: MOVWF 04
0141: BCF 03.7
0142: MOVF 00,W
0143: BTFSC 03.2
0144: GOTO 152
0145: MOVLW 02
0146: MOVWF 78
0147: CLRF 77
0148: DECFSZ 77,F
0149: GOTO 148
014A: DECFSZ 78,F
014B: GOTO 147
014C: MOVLW 97
014D: MOVWF 77
014E: DECFSZ 77,F
014F: GOTO 14E
0150: DECFSZ 00,F
0151: GOTO 145
0152: BCF 0A.3
0153: BCF 0A.4
0154: GOTO 1D0 (RETURN)
....................
....................
.................... //I2CHUB
.................... //ADRESA pro èteni 0xE1
.................... //pro zápis 0xE0
....................
....................
.................... #define EEPROM_SDA PIN_C4
.................... #define EEPROM_SCL PIN_C3
.................... #use i2c(master, sda=EEPROM_SDA, scl=EEPROM_SCL)
*
0083: MOVLW 08
0084: MOVWF 78
0085: NOP
0086: BCF 07.3
0087: BCF 20.3
0088: MOVF 20,W
0089: BSF 03.5
008A: MOVWF 07
008B: NOP
008C: BCF 03.5
008D: RLF 22,F
008E: BCF 07.4
008F: BTFSS 03.0
0090: GOTO 097
0091: BSF 20.4
0092: MOVF 20,W
0093: BSF 03.5
0094: MOVWF 07
0095: GOTO 09B
0096: BCF 03.5
0097: BCF 20.4
0098: MOVF 20,W
0099: BSF 03.5
009A: MOVWF 07
009B: NOP
009C: BCF 03.5
009D: BSF 20.3
009E: MOVF 20,W
009F: BSF 03.5
00A0: MOVWF 07
00A1: BCF 03.5
00A2: BTFSS 07.3
00A3: GOTO 0A2
00A4: DECFSZ 78,F
00A5: GOTO 085
00A6: NOP
00A7: BCF 07.3
00A8: BCF 20.3
00A9: MOVF 20,W
00AA: BSF 03.5
00AB: MOVWF 07
00AC: NOP
00AD: BCF 03.5
00AE: BSF 20.4
00AF: MOVF 20,W
00B0: BSF 03.5
00B1: MOVWF 07
00B2: NOP
00B3: NOP
00B4: BCF 03.5
00B5: BSF 20.3
00B6: MOVF 20,W
00B7: BSF 03.5
00B8: MOVWF 07
00B9: BCF 03.5
00BA: BTFSS 07.3
00BB: GOTO 0BA
00BC: CLRF 78
00BD: NOP
00BE: BTFSC 07.4
00BF: BSF 78.0
00C0: BCF 07.3
00C1: BCF 20.3
00C2: MOVF 20,W
00C3: BSF 03.5
00C4: MOVWF 07
00C5: BCF 03.5
00C6: BCF 07.4
00C7: BCF 20.4
00C8: MOVF 20,W
00C9: BSF 03.5
00CA: MOVWF 07
00CB: BCF 03.5
00CC: RETURN
.................... #use rs232(baud=9600,parity=N,xmit=PIN_C7,rcv=PIN_C6,bits=8) //rcv TXD xmit RXD
*
0019: BCF 20.7
001A: MOVF 20,W
001B: BSF 03.5
001C: MOVWF 07
001D: BCF 03.5
001E: BCF 07.7
001F: MOVLW 08
0020: MOVWF 78
0021: GOTO 022
0022: NOP
0023: BSF 78.7
0024: GOTO 033
0025: BCF 78.7
0026: RRF 25,F
0027: BTFSC 03.0
0028: BSF 07.7
0029: BTFSS 03.0
002A: BCF 07.7
002B: BSF 78.6
002C: GOTO 033
002D: BCF 78.6
002E: DECFSZ 78,F
002F: GOTO 026
0030: GOTO 031
0031: NOP
0032: BSF 07.7
0033: MOVLW 3F
0034: MOVWF 04
0035: DECFSZ 04,F
0036: GOTO 035
0037: NOP
0038: BTFSC 78.7
0039: GOTO 025
003A: BTFSC 78.6
003B: GOTO 02D
003C: RETURN
....................
.................... void setHUB(int d) //vstupuje 1-8
.................... //hodnota udava jaky port bude pripojen na master I2C
.................... //zde je nastaveno propojeni jen jedne brany, je mozne propojit i vice bran naraz
.................... {
.................... switch (d) {
*
00CD: MOVF 21,W
00CE: XORLW 01
00CF: BTFSC 03.2
00D0: GOTO 0E7
00D1: XORLW 03
00D2: BTFSC 03.2
00D3: GOTO 0EA
00D4: XORLW 01
00D5: BTFSC 03.2
00D6: GOTO 0ED
00D7: XORLW 07
00D8: BTFSC 03.2
00D9: GOTO 0F0
00DA: XORLW 01
00DB: BTFSC 03.2
00DC: GOTO 0F3
00DD: XORLW 03
00DE: BTFSC 03.2
00DF: GOTO 0F6
00E0: XORLW 01
00E1: BTFSC 03.2
00E2: GOTO 0F9
00E3: XORLW 0F
00E4: BTFSC 03.2
00E5: GOTO 0FC
00E6: GOTO 0FF
....................
.................... case 1: d=0x01;
00E7: MOVLW 01
00E8: MOVWF 21
....................
.................... break;
00E9: GOTO 107
....................
.................... case 2: d=0x02;
00EA: MOVLW 02
00EB: MOVWF 21
....................
.................... break;
00EC: GOTO 107
....................
.................... case 3: d=0x04;
00ED: MOVLW 04
00EE: MOVWF 21
....................
.................... break;
00EF: GOTO 107
....................
.................... case 4: d=0x08;
00F0: MOVLW 08
00F1: MOVWF 21
....................
.................... break;
00F2: GOTO 107
.................... case 5: d=0x10;
00F3: MOVLW 10
00F4: MOVWF 21
....................
.................... break;
00F5: GOTO 107
....................
.................... case 6: d=0x20;
00F6: MOVLW 20
00F7: MOVWF 21
....................
.................... break;
00F8: GOTO 107
.................... case 7: d=0x40;
00F9: MOVLW 40
00FA: MOVWF 21
....................
.................... break;
00FB: GOTO 107
....................
.................... case 8: d=0x80;
00FC: MOVLW 80
00FD: MOVWF 21
....................
.................... break;
00FE: GOTO 107
....................
.................... default:printf("chyba");
00FF: MOVLW 04
0100: BSF 03.6
0101: MOVWF 0D
0102: MOVLW 00
0103: MOVWF 0F
0104: BCF 03.6
0105: CALL 03D
....................
.................... break; }
0106: GOTO 107
....................
.................... i2c_start();
0107: BSF 20.4
0108: MOVF 20,W
0109: BSF 03.5
010A: MOVWF 07
010B: NOP
010C: BCF 03.5
010D: BSF 20.3
010E: MOVF 20,W
010F: BSF 03.5
0110: MOVWF 07
0111: NOP
0112: BCF 03.5
0113: BCF 07.4
0114: BCF 20.4
0115: MOVF 20,W
0116: BSF 03.5
0117: MOVWF 07
0118: NOP
0119: BCF 03.5
011A: BCF 07.3
011B: BCF 20.3
011C: MOVF 20,W
011D: BSF 03.5
011E: MOVWF 07
.................... I2C_Write(0xE0);
011F: MOVLW E0
0120: BCF 03.5
0121: MOVWF 22
0122: CALL 083
....................
.................... I2C_write(d);
0123: MOVF 21,W
0124: MOVWF 22
0125: CALL 083
.................... i2c_stop();
0126: BCF 20.4
0127: MOVF 20,W
0128: BSF 03.5
0129: MOVWF 07
012A: NOP
012B: BCF 03.5
012C: BSF 20.3
012D: MOVF 20,W
012E: BSF 03.5
012F: MOVWF 07
0130: BCF 03.5
0131: BTFSS 07.3
0132: GOTO 131
0133: NOP
0134: GOTO 135
0135: NOP
0136: BSF 20.4
0137: MOVF 20,W
0138: BSF 03.5
0139: MOVWF 07
013A: NOP
....................
.................... }
013B: BCF 03.5
013C: BCF 0A.3
013D: BCF 0A.4
013E: GOTO 1CB (RETURN)
....................
....................
.................... void main()
.................... {
*
0018: DATA 00,00
*
0155: CLRF 04
0156: BCF 03.7
0157: MOVLW 1F
0158: ANDWF 03,F
0159: MOVLW 71
015A: BSF 03.5
015B: MOVWF 0F
015C: MOVF 0F,W
015D: BCF 03.5
015E: BCF 20.7
015F: MOVF 20,W
0160: BSF 03.5
0161: MOVWF 07
0162: BCF 03.5
0163: BSF 07.7
0164: BSF 03.5
0165: BSF 03.6
0166: MOVF 09,W
0167: ANDLW C0
0168: MOVWF 09
0169: BCF 03.6
016A: BCF 1F.4
016B: BCF 1F.5
016C: MOVLW 00
016D: BSF 03.6
016E: MOVWF 08
016F: BCF 03.5
0170: CLRF 07
0171: CLRF 08
0172: CLRF 09
....................
.................... setup_adc_ports(NO_ANALOGS|VSS_VDD);
*
0176: BSF 03.5
0177: BSF 03.6
0178: MOVF 09,W
0179: ANDLW C0
017A: MOVWF 09
017B: BCF 03.6
017C: BCF 1F.4
017D: BCF 1F.5
017E: MOVLW 00
017F: BSF 03.6
0180: MOVWF 08
.................... setup_adc(ADC_CLOCK_DIV_2);
0181: BCF 03.5
0182: BCF 03.6
0183: BCF 1F.6
0184: BCF 1F.7
0185: BSF 03.5
0186: BCF 1F.7
0187: BCF 03.5
0188: BSF 1F.0
.................... setup_spi(SPI_SS_DISABLED);
0189: BCF 14.5
018A: BCF 20.5
018B: MOVF 20,W
018C: BSF 03.5
018D: MOVWF 07
018E: BCF 03.5
018F: BSF 20.4
0190: MOVF 20,W
0191: BSF 03.5
0192: MOVWF 07
0193: BCF 03.5
0194: BCF 20.3
0195: MOVF 20,W
0196: BSF 03.5
0197: MOVWF 07
0198: MOVLW 01
0199: BCF 03.5
019A: MOVWF 14
019B: MOVLW 00
019C: BSF 03.5
019D: MOVWF 14
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
019E: MOVF 01,W
019F: ANDLW C7
01A0: IORLW 08
01A1: MOVWF 01
.................... setup_timer_1(T1_DISABLED);
01A2: BCF 03.5
01A3: CLRF 10
.................... setup_timer_2(T2_DISABLED,0,1);
01A4: MOVLW 00
01A5: MOVWF 78
01A6: MOVWF 12
01A7: MOVLW 00
01A8: BSF 03.5
01A9: MOVWF 12
.................... setup_ccp1(CCP_OFF);
01AA: BCF 03.5
01AB: BSF 20.2
01AC: MOVF 20,W
01AD: BSF 03.5
01AE: MOVWF 07
01AF: BCF 03.5
01B0: CLRF 17
01B1: BSF 03.5
01B2: CLRF 1B
01B3: CLRF 1C
01B4: MOVLW 01
01B5: MOVWF 1D
.................... setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard
01B6: BCF 03.5
01B7: BSF 03.6
01B8: CLRF 07
01B9: CLRF 08
01BA: CLRF 09
....................
.................... printf("I2CHUB \r\n",);
01BB: MOVLW 07
01BC: MOVWF 0D
01BD: MOVLW 00
01BE: MOVWF 0F
01BF: BCF 03.6
01C0: CALL 03D
.................... printf("(c)MLAB 2013 JACHO \r\n",);
01C1: MOVLW 0D
01C2: BSF 03.6
01C3: MOVWF 0D
01C4: MOVLW 00
01C5: MOVWF 0F
01C6: BCF 03.6
01C7: CALL 03D
....................
.................... while(TRUE)
.................... {
.................... setHUB(3); //pripoji prislusnou branu
01C8: MOVLW 03
01C9: MOVWF 21
01CA: GOTO 0CD
.................... delay_ms(1000);
01CB: MOVLW 04
01CC: MOVWF 21
01CD: MOVLW FA
01CE: MOVWF 22
01CF: GOTO 13F
01D0: DECFSZ 21,F
01D1: GOTO 1CD
.................... }
01D2: GOTO 1C8
.................... }
....................
01D3: SLEEP
 
Configuration Fuses:
Word 1: 2CF5 INTRC NOWDT NOPUT MCLR NOPROTECT NOCPD NOBROWNOUT IESO FCMEN NOLVP NODEBUG
Word 2: 3FFF NOWRT BORV40
/Modules/CommSerial/I2CHUB02A/SW/PIC16F887/main.pjt
0,0 → 1,24
[PROJECT]
Target=C:\Users\Honza\Documents\pic\I2C_HUB\main.hex
Development_Mode=
Processor_Text=PIC16F887
ToolSuite=CCS
Processor=0x887F
[C:\Users\Honza\Documents\pic\I2C_HUB\main]
Type=4
Path=
FileList=
BuildTool=
OptionString=
AdditionalOptionString=
[mru-list]
1=C:\Users\Honza\Documents\pic\I2C_HUB\main.c
[Windows]
0=0000 %S 0 0 796 451 3 0
[Units]
Link=0
Count=1
1=C:\Users\Honza\Documents\pic\I2C_HUB\main
[Opened Files]
1=..\I2C_HUB\main.c
2=
/Modules/CommSerial/I2CHUB02A/SW/PIC16F887/main.sta
0,0 → 1,54
 
ROM used: 468 (6%)
468 (6%) including unused fragments
 
1 Average locations per line
13 Average locations per statement
 
RAM used: 7 (2%) at main() level
11 (3%) worst case
 
Stack used: 3 worst case (out of 8 total available)
 
Lines Stmts % Files
----- ----- --- -----
85 37 100 main.c
20 0 0 main.h
423 0 0 ..\..\..\..\..\Program Files (x86)\PICC\devices\16F887.h
----- -----
528 37 Total
 
Page ROM % RAM Vol Diff Functions:
---- --- --- --- --- ---- ----------
0 22 5 1 @delay_ms1
0 74 16 1 105 3.4 @I2C_WRITE_1
0 36 8 1 @PUTCHAR_1_
0 114 24 1 567 4.1 setHUB
0 3 1 0 5394 6.3 @const78
0 70 15 3 59 2.3 @PSTRINGC7_69
0 127 27 1 336 2.7 MAIN
0 6 1 0 59 2.3 @const82
0 12 3 0 59 2.3 @const83
 
Program metrics:
Functions 7
Statements 37
Comments 94
Volume (V) 7859
Difficilty (D) 26.4
Effort to implement (E) 207738
Time to implement (T) 3 hours, 12 minutes
Est Delivered Bugs (B) 1
Cyclomatic Complexity 9
Maintainability (MI) 79
 
Segment Used Free
----------- ---- ----
00000-00003 4 0
00004-007FF 464 1580
00800-00FFF 0 2048
01000-017FF 0 2048
01800-01FFF 0 2048
 
 
 
/Modules/CommSerial/I2CHUB02A/SW/PIC16F887/main.sym
0,0 → 1,73
004-005 @READ_PROGRAM_MEMORY8.P1
004 @WRITE_PROGRAM_MEMORY8.P2
015 CCP_1_LOW
015 CCP_1
016 CCP_1_HIGH
01B CCP_2_LOW
01B CCP_2
01C CCP_2_HIGH
020 @TRIS_C
021 setHUB.d
021 MAIN.@SCRATCH1
022 @delay_ms1.P1
022 @I2C_WRITE_1.P2
022 @PSTRINGC7_69.@SCRATCH1
023 @PSTRINGC7_69.@SCRATCH2
024 @PSTRINGC7_69.@SCRATCH3
025 @PUTCHAR_1_.P1
077 @SCRATCH
078 @SCRATCH
078 _RETURN_
079 @SCRATCH
07A @SCRATCH
107.6 C1OUT
108.6 C2OUT
10D-10E @READ_PROGRAM_MEMORY8.P1
10D-10E @WRITE_PROGRAM_MEMORY8.P2
 
ROM Allocation:
013F @delay_ms1
0083 @I2C_WRITE_1
0019 @PUTCHAR_1_
00CD setHUB
0004 @const78
003D @PSTRINGC7_69
0155 MAIN
0007 @const82
000D @const83
0155 @cinit
 
 
User Memory space:
 
User Memory space:
 
Project Directory:
c:\users\honza\documents\pic\i2c_hub\
 
Project Files:
main.c
main.h
..\..\..\..\..\Program Files (x86)\PICC\devices\16F887.h
 
Units:
c:\users\honza\documents\pic\i2c_hub\main (main)
 
Compiler Settings:
Processor: PIC16F887
Pointer Size: 16
ADC Range: 0-255
Opt Level: 9
Short,Int,Long: UNSIGNED: 1,8,16
Float,Double: 32,32
 
Output Files:
Errors: main.err
Ext Symbols: main.esym
INHX8: main.hex
Symbols: main.sym
List: main.lst
Debug/COFF: main.cof
Project: main.PJT
Call Tree: main.tre
Statistics: main.sta
/Modules/CommSerial/I2CHUB02A/SW/PIC16F887/main.tre
0,0 → 1,16
ÀÄmain
ÀÄMAIN 0/127 Ram=1
ÃÄ??0??
ÃÄ@PSTRINGC7_69 0/70 Ram=3
³ ÃÄ@PUTCHAR_1_ 0/36 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/36 Ram=1
ÃÄ@PSTRINGC7_69 0/70 Ram=3
³ ÃÄ@PUTCHAR_1_ 0/36 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/36 Ram=1
ÃÄsetHUB 0/114 Ram=1
³ ÃÄ@PSTRINGC7_69 0/70 Ram=3
³ ³ ÃÄ@PUTCHAR_1_ 0/36 Ram=1
³ ³ ÀÄ@PUTCHAR_1_ 0/36 Ram=1
³ ÃÄ@I2C_WRITE_1 0/74 Ram=1
³ ÀÄ@I2C_WRITE_1 0/74 Ram=1
ÀÄ@delay_ms1 0/22 Ram=1