<?xml version="1.0" encoding="utf-8"?><!DOCTYPE eagle SYSTEM "eagle.dtd"><eagle version="6.4"><drawing><settings><setting alwaysvectorfont="no"/><setting verticaltext="up"/></settings><grid distance="0.05" unitdist="inch" unit="mm" style="lines" multiple="1" display="yes" altdistance="0.025" altunitdist="inch" altunit="inch"/><layers><layer number="1" name="Top" color="4" fill="1" visible="yes" active="yes"/><layer number="16" name="Bottom" color="1" fill="1" visible="yes" active="yes"/><layer number="17" name="Pads" color="2" fill="1" visible="yes" active="yes"/><layer number="18" name="Vias" color="2" fill="1" visible="yes" active="yes"/><layer number="19" name="Unrouted" color="6" fill="1" visible="yes" active="yes"/><layer number="20" name="Dimension" color="15" fill="1" visible="yes" active="yes"/><layer number="21" name="tPlace" color="7" fill="1" visible="yes" active="yes"/><layer number="22" name="bPlace" color="7" fill="1" visible="yes" active="yes"/><layer number="23" name="tOrigins" color="13" fill="1" visible="yes" active="yes"/><layer number="24" name="bOrigins" color="15" fill="1" visible="yes" active="yes"/><layer number="25" name="tNames" color="3" fill="1" visible="yes" active="yes"/><layer number="26" name="bNames" color="7" fill="1" visible="yes" active="yes"/><layer number="27" name="tValues" color="11" fill="1" visible="yes" active="yes"/><layer number="28" name="bValues" color="7" fill="1" visible="yes" active="yes"/><layer number="29" name="tStop" color="7" fill="3" visible="no" active="yes"/><layer number="30" name="bStop" color="7" fill="6" visible="no" active="yes"/><layer number="41" name="tRestrict" color="4" fill="10" visible="yes" active="yes"/><layer number="42" name="bRestrict" color="1" fill="10" visible="yes" active="yes"/><layer number="43" name="vRestrict" color="2" fill="10" visible="yes" active="yes"/><layer number="44" name="Drills" color="7" fill="1" visible="no" active="yes"/><layer number="45" name="Holes" color="10" fill="1" visible="no" active="yes"/><layer number="46" name="Milling" color="3" fill="1" visible="no" active="yes"/><layer number="47" name="Measures" color="7" fill="1" visible="no" active="yes"/><layer number="48" name="Document" color="7" fill="1" visible="yes" active="yes"/><layer number="49" name="Reference" color="7" fill="1" visible="yes" active="yes"/><layer number="51" name="tDocu" color="14" fill="1" visible="yes" active="yes"/><layer number="52" name="bDocu" color="7" fill="1" visible="yes" active="yes"/><layer number="91" name="Nets" color="2" fill="1" visible="yes" active="yes"/><layer number="92" name="Busses" color="1" fill="1" visible="yes" active="yes"/><layer number="93" name="Pins" color="2" fill="1" visible="yes" active="yes"/><layer number="94" name="Symbols" color="4" fill="1" visible="yes" active="yes"/><layer number="95" name="Names" color="3" fill="1" visible="yes" active="yes"/><layer number="96" name="Values" color="9" fill="1" visible="yes" active="yes"/><layer number="100" name="PaJa" color="12" fill="7" visible="yes" active="yes"/><layer number="101" name="Doplnky" color="5" fill="1" visible="yes" active="yes"/><layer number="102" name="Kola" color="11" fill="7" visible="yes" active="yes"/><layer number="31" name="tCream" color="7" fill="4" visible="no" active="no"/><layer number="32" name="bCream" color="7" fill="5" visible="no" active="no"/><layer number="33" name="tFinish" color="6" fill="3" visible="no" active="no"/><layer number="34" name="bFinish" color="6" fill="6" visible="no" active="no"/><layer number="35" name="tGlue" color="7" fill="4" visible="no" active="no"/><layer number="36" name="bGlue" color="7" fill="5" visible="no" active="no"/><layer number="37" name="tTest" color="7" fill="1" visible="no" active="no"/><layer number="38" name="bTest" color="7" fill="1" visible="no" active="no"/><layer number="39" name="tKeepout" color="4" fill="11" visible="no" active="no"/><layer number="40" name="bKeepout" color="1" fill="11" visible="no" active="no"/><layer number="97" name="Info" color="7" fill="1" visible="no" active="no"/><layer number="98" name="Guide" color="6" fill="1" visible="no" active="no"/></layers><library><packages><package name="DRB-N8"><smd name="8" x="0" y="0" dx="0.35" dy="0.85" layer="1"/><smd name="7" x="0.65" y="0" dx="0.35" dy="0.85" layer="1"/><smd name="6" x="1.3" y="0" dx="0.35" dy="0.85" layer="1"/><smd name="5" x="1.95" y="0" dx="0.35" dy="0.85" layer="1"/><smd name="1" x="0" y="2.95" dx="0.35" dy="0.85" layer="1"/><smd name="2" x="0.65" y="2.95" dx="0.35" dy="0.85" layer="1"/><smd name="3" x="1.3" y="2.95" dx="0.35" dy="0.85" layer="1"/><smd name="4" x="1.95" y="2.95" dx="0.35" dy="0.85" layer="1"/><wire x1="-0.3175" y1="2.54" x2="2.2225" y2="2.54" width="0.127" layer="20"/><wire x1="2.2225" y1="2.54" x2="2.2225" y2="0.3175" width="0.127" layer="20"/><wire x1="2.2225" y1="0.3175" x2="-0.3175" y2="0.3175" width="0.127" layer="20"/><wire x1="-0.3175" y1="0.3175" x2="-0.3175" y2="2.54" width="0.127" layer="20"/><rectangle x1="-0.15875" y1="1.5875" x2="0.79375" y2="2.2225" layer="1"/><rectangle x1="1.11125" y1="1.5875" x2="2.06375" y2="2.2225" layer="1"/><rectangle x1="1.11125" y1="0.635" x2="2.06375" y2="1.27" layer="1"/><rectangle x1="-0.15875" y1="0.635" x2="0.79375" y2="1.27" layer="1"/><text x="-0.635" y="-0.635" size="0.8128" layer="25" rot="R90">>NAME</text><text x="3.33375" y="-0.9525" size="0.8128" layer="27" rot="R90">>VALUE</text></package><package name="MSOP-8"><smd name="1" x="-0.975" y="-1.95" dx="0.42" dy="0.89" layer="1"/><smd name="2" x="-0.325" y="-1.95" dx="0.42" dy="0.89" layer="1"/><smd name="3" x="0.325" y="-1.95" dx="0.42" dy="0.89" layer="1"/><smd name="4" x="0.975" y="-1.95" dx="0.42" dy="0.89" layer="1"/><smd name="8" x="-0.975" y="2.375" dx="0.42" dy="0.89" layer="1"/><smd name="7" x="-0.325" y="2.375" dx="0.42" dy="0.89" layer="1"/><smd name="6" x="0.325" y="2.375" dx="0.42" dy="0.89" layer="1"/><smd name="5" x="0.975" y="2.375" dx="0.42" dy="0.89" layer="1"/><wire x1="-1.3" y1="-1.495" x2="1.365" y2="-1.495" width="0.4064" layer="21"/><wire x1="1.365" y1="-1.495" x2="1.365" y2="1.755" width="0.4064" layer="21"/><wire x1="1.365" y1="1.755" x2="-1.3" y2="1.755" width="0.4064" layer="21"/><wire x1="-1.3" y1="1.755" x2="-1.3" y2="-1.495" width="0.4064" layer="21"/><circle x="-0.845" y="-0.975" radius="0.065" width="0.127" layer="21"/><text x="1.95" y="1.365" size="0.6096" layer="25" rot="R270">>NAME</text><text x="-1.82" y="-1.495" size="0.6096" layer="27" rot="R90">>VALUE</text></package><package name="40PIN-PDIP"><pad name="P$1" x="-0.9525" y="0.9525" drill="0.6" diameter="0.254" shape="octagon"/><pad name="1" x="0" y="0" drill="0.7" diameter="1.5"/><pad name="2" x="2.54" y="0" drill="0.7" diameter="1.5"/><pad name="3" x="5.08" y="0" drill="0.7" diameter="1.5"/><pad name="4" x="7.62" y="0" drill="0.7" diameter="1.5"/><pad name="5" x="10.16" y="0" drill="0.7" diameter="1.5"/><pad name="6" x="12.7" y="0" drill="0.7" diameter="1.5"/><pad name="7" x="15.24" y="0" drill="0.7" diameter="1.5"/><pad name="8" x="17.78" y="0" drill="0.7" diameter="1.5"/><pad name="9" x="20.32" y="0" drill="0.7" diameter="1.5"/><pad name="10" x="22.86" y="0" drill="0.7" diameter="1.5"/><pad name="11" x="25.4" y="0" drill="0.7" diameter="1.5"/><pad name="12" x="27.94" y="0" drill="0.7" diameter="1.5"/><pad name="13" x="30.48" y="0" drill="0.7" diameter="1.5"/><pad name="14" x="33.02" y="0" drill="0.7" diameter="1.5"/><pad name="15" x="35.56" y="0" drill="0.7" diameter="1.5"/><pad name="16" x="38.1" y="0" drill="0.7" diameter="1.5"/><pad name="17" x="40.64" y="0" drill="0.7" diameter="1.5"/><pad name="18" x="43.18" y="0" drill="0.7" diameter="1.5"/><pad name="19" x="45.72" y="0" drill="0.7" diameter="1.5"/><pad name="20" x="48.26" y="0" drill="0.7" diameter="1.5"/><pad name="21" x="48.26" y="15.24" drill="0.7" diameter="1.5"/><pad name="22" x="45.72" y="15.24" drill="0.7" diameter="1.5"/><pad name="23" x="43.18" y="15.24" drill="0.7" diameter="1.5"/><pad name="24" x="40.64" y="15.24" drill="0.7" diameter="1.5"/><pad name="25" x="38.1" y="15.24" drill="0.7" diameter="1.5"/><pad name="26" x="35.56" y="15.24" drill="0.7" diameter="1.5"/><pad name="27" x="33.02" y="15.24" drill="0.7" diameter="1.5"/><pad name="28" x="30.48" y="15.24" drill="0.7" diameter="1.5"/><pad name="29" x="27.94" y="15.24" drill="0.7" diameter="1.5"/><pad name="30" x="25.4" y="15.24" drill="0.7" diameter="1.5"/><pad name="31" x="22.86" y="15.24" drill="0.7" diameter="1.5"/><pad name="32" x="20.32" y="15.24" drill="0.7" diameter="1.5"/><pad name="33" x="17.78" y="15.24" drill="0.7" diameter="1.5"/><pad name="34" x="15.24" y="15.24" drill="0.7" diameter="1.5"/><pad name="35" x="12.7" y="15.24" drill="0.7" diameter="1.5"/><pad name="36" x="10.16" y="15.24" drill="0.7" diameter="1.5"/><pad name="37" x="7.62" y="15.24" drill="0.7" diameter="1.5"/><pad name="38" x="5.08" y="15.24" drill="0.7" diameter="1.5"/><pad name="39" x="2.54" y="15.24" drill="0.7" diameter="1.5"/><pad name="40" x="0" y="15.24" drill="0.7" diameter="1.5"/><wire x1="-1.905" y1="14.2875" x2="50.4825" y2="14.2875" width="0.4064" layer="20"/><wire x1="50.4825" y1="14.2875" x2="50.4825" y2="0.9525" width="0.4064" layer="20"/><wire x1="50.4825" y1="0.9525" x2="-1.905" y2="0.9525" width="0.4064" layer="20"/><text x="5.3975" y="8.5725" size="1.6764" layer="25">>NAME</text><text x="5.3975" y="5.715" size="1.6764" layer="27">>VALUE</text><wire x1="-1.905" y1="14.2875" x2="-1.905" y2="9.2075" width="0.4064" layer="20"/><wire x1="-1.905" y1="9.2075" x2="-1.905" y2="6.35" width="0.4064" layer="20"/><wire x1="-1.905" y1="6.35" x2="-1.905" y2="0.9525" width="0.4064" layer="20"/><wire x1="-1.905" y1="9.2075" x2="-1.905" y2="6.35" width="0.4064" layer="20" curve="-180"/></package></packages><symbols><symbol name="BQ29209"><pin name="VC2" x="-25.4" y="20.32" visible="pin" length="short" direction="pas"/><pin name="VC1" x="-25.4" y="17.78" visible="pin" length="short" direction="pas"/><pin name="VC1_CB" x="-25.4" y="15.24" visible="pin" length="short" direction="pas"/><pin name="CD" x="-25.4" y="12.7" visible="pin" length="short" direction="pas"/><pin name="OUT" x="2.54" y="20.32" visible="pin" length="short" direction="pas" rot="R180"/><pin name="VDD" x="2.54" y="17.78" visible="pin" length="short" direction="pas" rot="R180"/><pin name="CB_EN" x="2.54" y="15.24" visible="pin" length="short" direction="pas" rot="R180"/><pin name="GND" x="2.54" y="12.7" visible="pin" length="short" direction="pas" rot="R180"/><wire x1="-22.86" y1="22.86" x2="-22.86" y2="10.16" width="0.127" layer="94"/><wire x1="-22.86" y1="10.16" x2="0" y2="10.16" width="0.127" layer="94"/><wire x1="0" y1="10.16" x2="0" y2="22.86" width="0.127" layer="94"/><wire x1="0" y1="22.86" x2="-22.86" y2="22.86" width="0.127" layer="94"/><text x="-15.24" y="25.4" size="1.778" layer="95">>NAME</text><text x="-15.24" y="5.08" size="1.778" layer="96">>VALUE</text></symbol><symbol name="LM3485"><pin name="ISENSE" x="-12.7" y="0" visible="pin" length="short" direction="pas"/><pin name="GND" x="-12.7" y="-2.54" visible="pin" length="short" direction="pas"/><pin name="NC" x="-12.7" y="-5.08" visible="pin" length="short" direction="pas"/><pin name="FB" x="-12.7" y="-7.62" visible="pin" length="short" direction="pas"/><pin name="VIN" x="12.7" y="0" visible="pin" length="short" direction="pas" rot="R180"/><pin name="PGATE" x="12.7" y="-2.54" visible="pin" length="short" direction="pas" rot="R180"/><pin name="PWRGND" x="12.7" y="-5.08" visible="pin" length="short" direction="pas" rot="R180"/><pin name="ADJ" x="12.7" y="-7.62" visible="pin" length="short" direction="pas" rot="R180"/><text x="-10.16" y="5.08" size="1.778" layer="96">>VALUE</text><text x="-10.16" y="-12.7" size="1.778" layer="95">>NAME</text><wire x1="-10.16" y1="2.54" x2="-10.16" y2="-10.16" width="0.6096" layer="94"/><wire x1="-10.16" y1="-10.16" x2="10.16" y2="-10.16" width="0.6096" layer="94"/><wire x1="10.16" y1="-10.16" x2="10.16" y2="2.54" width="0.6096" layer="94"/><wire x1="10.16" y1="2.54" x2="-10.16" y2="2.54" width="0.6096" layer="94"/></symbol><symbol name="PIC16F877"><pin name="MCLR/VPP" x="-22.86" y="25.4" length="short" direction="pas"/><pin name="RA0/AN0" x="-22.86" y="22.86" length="short" direction="pas"/><pin name="RA1/AN1" x="-22.86" y="20.32" length="short" direction="pas"/><pin name="RA2/AN2/VREF-/CVREF" x="-22.86" y="17.78" length="short" direction="pas"/><pin name="RA3/AN3/VREF+" x="-22.86" y="15.24" length="short" direction="pas"/><pin name="RA4/T0CKI/C1OUT" x="-22.86" y="12.7" length="short" direction="pas"/><pin name="RA5/AN4/SS/C2OUT" x="-22.86" y="10.16" length="short" direction="pas"/><pin name="RE0/RD/AN5" x="-22.86" y="7.62" length="short" direction="pas"/><pin name="RE1/WR/AN6" x="-22.86" y="5.08" length="short" direction="pas"/><pin name="RE2/CS/AN7" x="-22.86" y="2.54" length="short" direction="pas"/><pin name="VDD1" x="-22.86" y="0" length="short" direction="pas"/><pin name="GND1" x="-22.86" y="-2.54" length="short" direction="pas"/><pin name="OSC1/CLKI" x="-22.86" y="-5.08" length="short" direction="pas"/><pin name="OSC2/CLKO" x="-22.86" y="-7.62" length="short" direction="pas"/><pin name="RC0/T1OSO/T1CKI" x="-22.86" y="-10.16" length="short" direction="pas"/><pin name="RC1/T1OSI/CCP2" x="-22.86" y="-12.7" length="short" direction="pas"/><pin name="RC2/CCP1" x="-22.86" y="-15.24" length="short" direction="pas"/><pin name="RC3/SCK/SCL" x="-22.86" y="-17.78" length="short" direction="pas"/><pin name="RD0/PSP0" x="-22.86" y="-20.32" length="short" direction="pas"/><pin name="RD1/PSP1" x="-22.86" y="-22.86" length="short" direction="pas"/><pin name="RD2/PSP2" x="22.86" y="-22.86" length="short" direction="pas" rot="R180"/><pin name="RD3/PSP3" x="22.86" y="-20.32" length="short" direction="pas" rot="R180"/><pin name="RC4/SDI/SDA" x="22.86" y="-17.78" length="short" direction="pas" rot="R180"/><pin name="RC5/SDO" x="22.86" y="-15.24" length="short" direction="pas" rot="R180"/><pin name="RC6/TX/CK" x="22.86" y="-12.7" length="short" direction="pas" rot="R180"/><pin name="RC7/RX/DT" x="22.86" y="-10.16" length="short" direction="pas" rot="R180"/><pin name="RD4/PSP4" x="22.86" y="-7.62" length="short" direction="pas" rot="R180"/><pin name="RD5/PSP5" x="22.86" y="-5.08" length="short" direction="pas" rot="R180"/><pin name="RD6/PSP6" x="22.86" y="-2.54" length="short" direction="pas" rot="R180"/><pin name="RD7/PSP7" x="22.86" y="0" length="short" direction="pas" rot="R180"/><pin name="GND2" x="22.86" y="2.54" length="short" direction="pas" rot="R180"/><pin name="VDD2" x="22.86" y="5.08" length="short" direction="pas" rot="R180"/><pin name="RB0/INT" x="22.86" y="7.62" length="short" direction="pas" rot="R180"/><pin name="RB1" x="22.86" y="10.16" length="short" direction="pas" rot="R180"/><pin name="RB2" x="22.86" y="12.7" length="short" direction="pas" rot="R180"/><pin name="RB3/PGM" x="22.86" y="15.24" length="short" direction="pas" rot="R180"/><pin name="RB4" x="22.86" y="17.78" length="short" direction="pas" rot="R180"/><pin name="RB5" x="22.86" y="20.32" length="short" direction="pas" rot="R180"/><pin name="RB6/PGC" x="22.86" y="22.86" length="short" direction="pas" rot="R180"/><pin name="RB7/PGD" x="22.86" y="25.4" length="short" direction="pas" rot="R180"/><wire x1="-20.32" y1="27.94" x2="-20.32" y2="-25.4" width="0.127" layer="94"/><wire x1="-20.32" y1="-25.4" x2="20.32" y2="-25.4" width="0.127" layer="94"/><wire x1="20.32" y1="-25.4" x2="20.32" y2="27.94" width="0.127" layer="94"/><wire x1="20.32" y1="27.94" x2="-20.32" y2="27.94" width="0.127" layer="94"/><text x="-20.32" y="30.48" size="1.6764" layer="95">>NAME</text><text x="20.32" y="30.48" size="1.6764" layer="95" align="bottom-right">>VALUE</text></symbol></symbols><devicesets><deviceset name="BQ29209"><gates><gate name="G$1" symbol="BQ29209" x="12.7" y="-25.4"/></gates><devices><device name="" package="DRB-N8"><connects><connect gate="G$1" pin="CB_EN" pad="6"/><connect gate="G$1" pin="CD" pad="4"/><connect gate="G$1" pin="GND" pad="5"/><connect gate="G$1" pin="OUT" pad="8"/><connect gate="G$1" pin="VC1" pad="2"/><connect gate="G$1" pin="VC1_CB" pad="3"/><connect gate="G$1" pin="VC2" pad="1"/><connect gate="G$1" pin="VDD" pad="7"/></connects><technologies><technology name=""/></technologies></device></devices></deviceset><deviceset name="LM3485"><gates><gate name="G$1" symbol="LM3485" x="0" y="5.08"/></gates><devices><device name="" package="MSOP-8"><connects><connect gate="G$1" pin="ADJ" pad="5"/><connect gate="G$1" pin="FB" pad="4"/><connect gate="G$1" pin="GND" pad="2"/><connect gate="G$1" pin="ISENSE" pad="1"/><connect gate="G$1" pin="NC" pad="3"/><connect gate="G$1" pin="PGATE" pad="7"/><connect gate="G$1" pin="PWRGND" pad="6"/><connect gate="G$1" pin="VIN" pad="8"/></connects><technologies><technology name=""/></technologies></device></devices></deviceset><deviceset name="PIC16F877"><gates><gate name="G$1" symbol="PIC16F877" x="0" y="0"/></gates><devices><device name="" package="40PIN-PDIP"><connects><connect gate="G$1" pin="GND1" pad="12"/><connect gate="G$1" pin="GND2" pad="31"/><connect gate="G$1" pin="MCLR/VPP" pad="1"/><connect gate="G$1" pin="OSC1/CLKI" pad="13"/><connect gate="G$1" pin="OSC2/CLKO" pad="14"/><connect gate="G$1" pin="RA0/AN0" pad="2"/><connect gate="G$1" pin="RA1/AN1" pad="3"/><connect gate="G$1" pin="RA2/AN2/VREF-/CVREF" pad="4"/><connect gate="G$1" pin="RA3/AN3/VREF+" pad="5"/><connect gate="G$1" pin="RA4/T0CKI/C1OUT" pad="6"/><connect gate="G$1" pin="RA5/AN4/SS/C2OUT" pad="7"/><connect gate="G$1" pin="RB0/INT" pad="33"/><connect gate="G$1" pin="RB1" pad="34"/><connect gate="G$1" pin="RB2" pad="35"/><connect gate="G$1" pin="RB3/PGM" pad="36"/><connect gate="G$1" pin="RB4" pad="37"/><connect gate="G$1" pin="RB5" pad="38"/><connect gate="G$1" pin="RB6/PGC" pad="39"/><connect gate="G$1" pin="RB7/PGD" pad="40"/><connect gate="G$1" pin="RC0/T1OSO/T1CKI" pad="15"/><connect gate="G$1" pin="RC1/T1OSI/CCP2" pad="16"/><connect gate="G$1" pin="RC2/CCP1" pad="17"/><connect gate="G$1" pin="RC3/SCK/SCL" pad="18"/><connect gate="G$1" pin="RC4/SDI/SDA" pad="23"/><connect gate="G$1" pin="RC5/SDO" pad="24"/><connect gate="G$1" pin="RC6/TX/CK" pad="25"/><connect gate="G$1" pin="RC7/RX/DT" pad="26"/><connect gate="G$1" pin="RD0/PSP0" pad="19"/><connect gate="G$1" pin="RD1/PSP1" pad="20"/><connect gate="G$1" pin="RD2/PSP2" pad="21"/><connect gate="G$1" pin="RD3/PSP3" pad="22"/><connect gate="G$1" pin="RD4/PSP4" pad="27"/><connect gate="G$1" pin="RD5/PSP5" pad="28"/><connect gate="G$1" pin="RD6/PSP6" pad="29"/><connect gate="G$1" pin="RD7/PSP7" pad="30"/><connect gate="G$1" pin="RE0/RD/AN5" pad="8"/><connect gate="G$1" pin="RE1/WR/AN6" pad="9"/><connect gate="G$1" pin="RE2/CS/AN7" pad="10"/><connect gate="G$1" pin="VDD1" pad="11"/><connect gate="G$1" pin="VDD2" pad="32"/></connects><technologies><technology name=""/></technologies></device></devices></deviceset></devicesets></library></drawing></eagle>