<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="6.6.0">
<drawing>
<library>
<packages>
<package name="DIL20">
<description>&lt;b&gt;Dual In Line Package&lt;/b&gt;</description>
</package>
<package name="DIL28-3">
<description>&lt;B&gt;Dual In Line&lt;/B&gt; 0.3 inch</description>
</package>
<package name="2X03">
<description>&lt;b&gt;PIN HEADER&lt;/b&gt;</description>
</package>
<package name="2X05">
<description>&lt;b&gt;PIN HEADER&lt;/b&gt;</description>
</package>
<package name="DIL40">
<description>&lt;B&gt;Dual In Line&lt;/B&gt;</description>
</package>
<package name="DIL40S">
</package>
<package name="2X3W">
</package>
</packages>
<symbols>
<symbol name="ATTINY2313">
<pin name="PA2/-RESET/DW"/>
<pin name="PA1/XTAL2"/>
<pin name="PA0/XTAL1"/>
<pin name="AIN0/PCINT0/PB0"/>
<pin name="AIN1/PCINT1/PB1"/>
<pin name="OC0A/PCINT2/PB2"/>
<pin name="OC1A/PCINT3/PB3"/>
<pin name="OC1B/PCINT4/PB4"/>
<pin name="DI/MOSI/SDA/PCINT5/PB5"/>
<pin name="DO/MISO/PCINT6/PB6"/>
<pin name="UCSK/SCK/PCINT7/PB7"/>
<pin name="PD0/RXD"/>
<pin name="PD1/TXD"/>
<pin name="PD2/CKOUT/XCK/INT0"/>
<pin name="PD3/INT1"/>
<pin name="PD4/T0"/>
<pin name="PD5/OC0B/T1"/>
<pin name="ICP/PD6"/>
</symbol>
<symbol name="PWR">
<pin name="GND" direction="pwr"/>
<pin name="VCC" direction="pwr"/>
</symbol>
<symbol name="PWR-1VCC+2GND">
<pin name="GND@1" direction="pwr"/>
<pin name="VCC@1" direction="pwr"/>
<pin name="GND@2" direction="pwr"/>
</symbol>
<symbol name="ATMEGA8-P">
<pin name="SCK/PB5"/>
<pin name="PB7/XTAL2/TOSC2"/>
<pin name="PB6/XTAL1/TOSC1"/>
<pin name="AREF" direction="pas"/>
<pin name="AVCC" direction="in"/>
<pin name="MISO/PB4"/>
<pin name="MOSI/OC2/PB3"/>
<pin name="SS/OC1B/PB2"/>
<pin name="OC1A/PB1"/>
<pin name="ICP/PB0"/>
<pin name="AIN1/PD7"/>
<pin name="AIN0/PD6"/>
<pin name="T1/PD5"/>
<pin name="T0/XCK/PD4"/>
<pin name="INT1/PD3"/>
<pin name="INT0/PD2"/>
<pin name="TXD/PD1"/>
<pin name="RXD/PD0"/>
<pin name="SCL/ADC5/PC5"/>
<pin name="SDA/ADC4/PC4"/>
<pin name="ADC3/PC3"/>
<pin name="ADC2/PC2"/>
<pin name="ADC1/PC1"/>
<pin name="ADC0/PC0"/>
<pin name="PC6/-RESET"/>
<pin name="VCC" direction="pwr"/>
<pin name="GND@1" direction="pwr"/>
<pin name="GND@2" direction="pwr"/>
</symbol>
<symbol name="AVR-ISP-6">
<pin name="MOSI" direction="out"/>
<pin name="VCC.ISP" direction="sup"/>
<pin name="GND" direction="pwr"/>
<pin name="!RST" direction="out"/>
<pin name="SCK" direction="out"/>
<pin name="MISO" direction="in"/>
</symbol>
<symbol name="AVR-ISP-10">
<pin name="MOSI" direction="out"/>
<pin name="VCC" direction="pwr"/>
<pin name="GND@1" direction="pwr"/>
<pin name="!RST" direction="out"/>
<pin name="GND@2" direction="pwr"/>
<pin name="SCK" direction="out"/>
<pin name="GND@3" direction="pwr"/>
<pin name="MISO" direction="in"/>
<pin name="GND@4" direction="pwr"/>
</symbol>
<symbol name="32-I/O-M32-P">
<pin name="(ADC7)PA7"/>
<pin name="(ADC6)PA6"/>
<pin name="(ADC5)PA5"/>
<pin name="(ADC4)PA4"/>
<pin name="(ADC3)PA3"/>
<pin name="(ADC2)PA2"/>
<pin name="(ADC1)PA1"/>
<pin name="(ADC0)PA0"/>
<pin name="(SCK)PB7"/>
<pin name="(MISO)PB6"/>
<pin name="(MOSI)PB5"/>
<pin name="(SS)PB4"/>
<pin name="(AIN1/OC0)PB3"/>
<pin name="(AIN0/INT2)PB2"/>
<pin name="(T1)PB1"/>
<pin name="(T0/XCK)PB0"/>
<pin name="(TOSC2)PC7"/>
<pin name="(TOSC1)PC6"/>
<pin name="(TDI)PC5"/>
<pin name="(TDO)PC4"/>
<pin name="(TMS)PC3"/>
<pin name="(TCK)PC2"/>
<pin name="(SDA)PC1"/>
<pin name="(SCL)PC0"/>
<pin name="GND@1" direction="pwr"/>
<pin name="AVCC" direction="pwr"/>
<pin name="AREF" direction="pas"/>
<pin name="XTAL1"/>
<pin name="XTAL2"/>
<pin name="VCC" direction="pwr"/>
<pin name="GND" direction="pwr"/>
<pin name="RESET" direction="in" function="dot"/>
<pin name="(RXD)PD0"/>
<pin name="(TXD)PD1"/>
<pin name="(INT0)PD2"/>
<pin name="(INT1)PD3"/>
<pin name="(OC1B)PD4"/>
<pin name="(OC1A)PD5"/>
<pin name="(ICP)PD6"/>
<pin name="(OC2)PD7"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="ATTINY2313" prefix="IC">
<description>&lt;b&gt;MICROCONTROLLER&lt;/b&gt;&lt;p&gt;
2 kbytes FLASH, 128 bytes SRAM, 128 bytes EEPROM, 
USART, 4 PWM&lt;br&gt;</description>
<gates>
<gate name="AVR" symbol="ATTINY2313"/>
<gate name="PWR" symbol="PWR"/>
</gates>
<devices>
<device name="" package="DIL20">
<connects>
<connect gate="AVR" pin="AIN0/PCINT0/PB0" pad="12"/>
<connect gate="AVR" pin="AIN1/PCINT1/PB1" pad="13"/>
<connect gate="AVR" pin="DI/MOSI/SDA/PCINT5/PB5" pad="17"/>
<connect gate="AVR" pin="DO/MISO/PCINT6/PB6" pad="18"/>
<connect gate="AVR" pin="ICP/PD6" pad="11"/>
<connect gate="AVR" pin="OC0A/PCINT2/PB2" pad="14"/>
<connect gate="AVR" pin="OC1A/PCINT3/PB3" pad="15"/>
<connect gate="AVR" pin="OC1B/PCINT4/PB4" pad="16"/>
<connect gate="AVR" pin="PA0/XTAL1" pad="5"/>
<connect gate="AVR" pin="PA1/XTAL2" pad="4"/>
<connect gate="AVR" pin="PA2/-RESET/DW" pad="1"/>
<connect gate="AVR" pin="PD0/RXD" pad="2"/>
<connect gate="AVR" pin="PD1/TXD" pad="3"/>
<connect gate="AVR" pin="PD2/CKOUT/XCK/INT0" pad="6"/>
<connect gate="AVR" pin="PD3/INT1" pad="7"/>
<connect gate="AVR" pin="PD4/T0" pad="8"/>
<connect gate="AVR" pin="PD5/OC0B/T1" pad="9"/>
<connect gate="AVR" pin="UCSK/SCK/PCINT7/PB7" pad="19"/>
<connect gate="PWR" pin="GND" pad="10"/>
<connect gate="PWR" pin="VCC" pad="20"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="ATMEGA8-P" prefix="IC">
<description>&lt;b&gt;MICROCONTROLLER&lt;/b&gt;&lt;p&gt;
8 Kbytes FLASH, 1 kbytes SRAM, 512 bytes EEPROM, USART, 4-channel 10 bit ADC, 2-channel 8 bit ADC&lt;br&gt;
Pin compatible with Atmega48, ATMega88, ATMega168&lt;br&gt;</description>
<gates>
<gate name="G$2" symbol="ATMEGA8-P"/>
</gates>
<devices>
<device name="" package="DIL28-3">
<connects>
<connect gate="G$2" pin="ADC0/PC0" pad="23"/>
<connect gate="G$2" pin="ADC1/PC1" pad="24"/>
<connect gate="G$2" pin="ADC2/PC2" pad="25"/>
<connect gate="G$2" pin="ADC3/PC3" pad="26"/>
<connect gate="G$2" pin="AIN0/PD6" pad="12"/>
<connect gate="G$2" pin="AIN1/PD7" pad="13"/>
<connect gate="G$2" pin="AREF" pad="21"/>
<connect gate="G$2" pin="AVCC" pad="20"/>
<connect gate="G$2" pin="GND@1" pad="8"/>
<connect gate="G$2" pin="GND@2" pad="22"/>
<connect gate="G$2" pin="ICP/PB0" pad="14"/>
<connect gate="G$2" pin="INT0/PD2" pad="4"/>
<connect gate="G$2" pin="INT1/PD3" pad="5"/>
<connect gate="G$2" pin="MISO/PB4" pad="18"/>
<connect gate="G$2" pin="MOSI/OC2/PB3" pad="17"/>
<connect gate="G$2" pin="OC1A/PB1" pad="15"/>
<connect gate="G$2" pin="PB6/XTAL1/TOSC1" pad="9"/>
<connect gate="G$2" pin="PB7/XTAL2/TOSC2" pad="10"/>
<connect gate="G$2" pin="PC6/-RESET" pad="1"/>
<connect gate="G$2" pin="RXD/PD0" pad="2"/>
<connect gate="G$2" pin="SCK/PB5" pad="19"/>
<connect gate="G$2" pin="SCL/ADC5/PC5" pad="28"/>
<connect gate="G$2" pin="SDA/ADC4/PC4" pad="27"/>
<connect gate="G$2" pin="SS/OC1B/PB2" pad="16"/>
<connect gate="G$2" pin="T0/XCK/PD4" pad="6"/>
<connect gate="G$2" pin="T1/PD5" pad="11"/>
<connect gate="G$2" pin="TXD/PD1" pad="3"/>
<connect gate="G$2" pin="VCC" pad="7"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="ISP-HDR6" prefix="JP">
<description>&lt;p&gt;Programming Header for AVR Microcontroller
&lt;br&gt;6-pin variant
&lt;p&gt;Pinbelegung:
&lt;br&gt;1 = MISO  (Slave-&gt;Master)
&lt;br&gt;2 = Vcc (Master-&gt;Slave)
&lt;br&gt;3 = SCK (Master -&gt; Slave)
&lt;br&gt;4 = MOSI ( Master -&gt; Slave)
&lt;br&gt;5 = !Reset (Master -&gt; Slave)
&lt;br&gt;6 = GND</description>
<gates>
<gate name="G$1" symbol="AVR-ISP-6"/>
</gates>
<devices>
<device name="" package="2X03">
<connects>
<connect gate="G$1" pin="!RST" pad="5"/>
<connect gate="G$1" pin="GND" pad="6"/>
<connect gate="G$1" pin="MISO" pad="1"/>
<connect gate="G$1" pin="MOSI" pad="4"/>
<connect gate="G$1" pin="SCK" pad="3"/>
<connect gate="G$1" pin="VCC.ISP" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="W" package="2X3W">
<connects>
<connect gate="G$1" pin="!RST" pad="5"/>
<connect gate="G$1" pin="GND" pad="6"/>
<connect gate="G$1" pin="MISO" pad="1"/>
<connect gate="G$1" pin="MOSI" pad="4"/>
<connect gate="G$1" pin="SCK" pad="3"/>
<connect gate="G$1" pin="VCC.ISP" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="ISP-HDR10" prefix="JP">
<description>&lt;p&gt;Programming Header for AVR Microcontroller
&lt;br&gt;10-pin variant

&lt;p&gt;Pinbelegung:
&lt;br&gt;1 = MOSI ( Master -&gt; Slave)
&lt;br&gt;2 = Vcc (Master-&gt;Slave)
&lt;br&gt;3 = no pin
&lt;br&gt;5 = !Reset (Master -&gt; Slave)
&lt;br&gt;7 = SCK (Master -&gt; Slave)
&lt;br&gt;9 = MISO  (Slave-&gt;Master)
&lt;br&gt;4,6,8,10 = GND</description>
<gates>
<gate name="G$1" symbol="AVR-ISP-10"/>
</gates>
<devices>
<device name="" package="2X05">
<connects>
<connect gate="G$1" pin="!RST" pad="5"/>
<connect gate="G$1" pin="GND@1" pad="4"/>
<connect gate="G$1" pin="GND@2" pad="6"/>
<connect gate="G$1" pin="GND@3" pad="8"/>
<connect gate="G$1" pin="GND@4" pad="10"/>
<connect gate="G$1" pin="MISO" pad="9"/>
<connect gate="G$1" pin="MOSI" pad="1"/>
<connect gate="G$1" pin="SCK" pad="7"/>
<connect gate="G$1" pin="VCC" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="MEGA32-P" prefix="IC">
<description>&lt;b&gt;MICROCONTROLLER&lt;/b&gt;&lt;p&gt;
32 Kbytes FLASH&lt;br&gt;
2 Kbytes SRAM&lt;br&gt;
1 Kbytes EEPROM&lt;br&gt;
USART&lt;br&gt;
8-channel 10 bit ADC&lt;br&gt;
Source: www.atmel.com .. doc2503.pdf</description>
<gates>
<gate name="G$1" symbol="32-I/O-M32-P"/>
</gates>
<devices>
<device name="" package="DIL40">
<connects>
<connect gate="G$1" pin="(ADC0)PA0" pad="40"/>
<connect gate="G$1" pin="(ADC1)PA1" pad="39"/>
<connect gate="G$1" pin="(ADC2)PA2" pad="38"/>
<connect gate="G$1" pin="(ADC3)PA3" pad="37"/>
<connect gate="G$1" pin="(ADC4)PA4" pad="36"/>
<connect gate="G$1" pin="(ADC5)PA5" pad="35"/>
<connect gate="G$1" pin="(ADC6)PA6" pad="34"/>
<connect gate="G$1" pin="(ADC7)PA7" pad="33"/>
<connect gate="G$1" pin="(AIN0/INT2)PB2" pad="3"/>
<connect gate="G$1" pin="(AIN1/OC0)PB3" pad="4"/>
<connect gate="G$1" pin="(ICP)PD6" pad="20"/>
<connect gate="G$1" pin="(INT0)PD2" pad="16"/>
<connect gate="G$1" pin="(INT1)PD3" pad="17"/>
<connect gate="G$1" pin="(MISO)PB6" pad="7"/>
<connect gate="G$1" pin="(MOSI)PB5" pad="6"/>
<connect gate="G$1" pin="(OC1A)PD5" pad="19"/>
<connect gate="G$1" pin="(OC1B)PD4" pad="18"/>
<connect gate="G$1" pin="(OC2)PD7" pad="21"/>
<connect gate="G$1" pin="(RXD)PD0" pad="14"/>
<connect gate="G$1" pin="(SCK)PB7" pad="8"/>
<connect gate="G$1" pin="(SCL)PC0" pad="22"/>
<connect gate="G$1" pin="(SDA)PC1" pad="23"/>
<connect gate="G$1" pin="(SS)PB4" pad="5"/>
<connect gate="G$1" pin="(T0/XCK)PB0" pad="1"/>
<connect gate="G$1" pin="(T1)PB1" pad="2"/>
<connect gate="G$1" pin="(TCK)PC2" pad="24"/>
<connect gate="G$1" pin="(TDI)PC5" pad="27"/>
<connect gate="G$1" pin="(TDO)PC4" pad="26"/>
<connect gate="G$1" pin="(TMS)PC3" pad="25"/>
<connect gate="G$1" pin="(TOSC1)PC6" pad="28"/>
<connect gate="G$1" pin="(TOSC2)PC7" pad="29"/>
<connect gate="G$1" pin="(TXD)PD1" pad="15"/>
<connect gate="G$1" pin="AREF" pad="32"/>
<connect gate="G$1" pin="AVCC" pad="30"/>
<connect gate="G$1" pin="GND" pad="11"/>
<connect gate="G$1" pin="GND@1" pad="31"/>
<connect gate="G$1" pin="RESET" pad="9"/>
<connect gate="G$1" pin="VCC" pad="10"/>
<connect gate="G$1" pin="XTAL1" pad="13"/>
<connect gate="G$1" pin="XTAL2" pad="12"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="S" package="DIL40S">
<connects>
<connect gate="G$1" pin="(ADC0)PA0" pad="40"/>
<connect gate="G$1" pin="(ADC1)PA1" pad="39"/>
<connect gate="G$1" pin="(ADC2)PA2" pad="38"/>
<connect gate="G$1" pin="(ADC3)PA3" pad="37"/>
<connect gate="G$1" pin="(ADC4)PA4" pad="36"/>
<connect gate="G$1" pin="(ADC5)PA5" pad="35"/>
<connect gate="G$1" pin="(ADC6)PA6" pad="34"/>
<connect gate="G$1" pin="(ADC7)PA7" pad="33"/>
<connect gate="G$1" pin="(AIN0/INT2)PB2" pad="3"/>
<connect gate="G$1" pin="(AIN1/OC0)PB3" pad="4"/>
<connect gate="G$1" pin="(ICP)PD6" pad="20"/>
<connect gate="G$1" pin="(INT0)PD2" pad="16"/>
<connect gate="G$1" pin="(INT1)PD3" pad="17"/>
<connect gate="G$1" pin="(MISO)PB6" pad="7"/>
<connect gate="G$1" pin="(MOSI)PB5" pad="6"/>
<connect gate="G$1" pin="(OC1A)PD5" pad="19"/>
<connect gate="G$1" pin="(OC1B)PD4" pad="18"/>
<connect gate="G$1" pin="(OC2)PD7" pad="21"/>
<connect gate="G$1" pin="(RXD)PD0" pad="14"/>
<connect gate="G$1" pin="(SCK)PB7" pad="8"/>
<connect gate="G$1" pin="(SCL)PC0" pad="22"/>
<connect gate="G$1" pin="(SDA)PC1" pad="23"/>
<connect gate="G$1" pin="(SS)PB4" pad="5"/>
<connect gate="G$1" pin="(T0/XCK)PB0" pad="1"/>
<connect gate="G$1" pin="(T1)PB1" pad="2"/>
<connect gate="G$1" pin="(TCK)PC2" pad="24"/>
<connect gate="G$1" pin="(TDI)PC5" pad="27"/>
<connect gate="G$1" pin="(TDO)PC4" pad="26"/>
<connect gate="G$1" pin="(TMS)PC3" pad="25"/>
<connect gate="G$1" pin="(TOSC1)PC6" pad="28"/>
<connect gate="G$1" pin="(TOSC2)PC7" pad="29"/>
<connect gate="G$1" pin="(TXD)PD1" pad="15"/>
<connect gate="G$1" pin="AREF" pad="32"/>
<connect gate="G$1" pin="AVCC" pad="30"/>
<connect gate="G$1" pin="GND" pad="11"/>
<connect gate="G$1" pin="GND@1" pad="31"/>
<connect gate="G$1" pin="RESET" pad="9"/>
<connect gate="G$1" pin="VCC" pad="10"/>
<connect gate="G$1" pin="XTAL1" pad="13"/>
<connect gate="G$1" pin="XTAL2" pad="12"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
</drawing>
</eagle>
