(export (version D)
  (design
    (source /home/sukko/Documents/kicad/OpenPSX2AmigaPadAdapter/OpenPSX2AmigaPadAdapter.sch)
    (date "gio 2 gen 2020, 17:39:03")
    (tool "Eeschema 5.1.5")
    (sheet (number 1) (name /) (tstamps /)
      (title_block
        (title OpenPSX2AmigaPadAdapter)
        (company SukkoPera)
        (rev 3)
        (date 2019-12-10)
        (source OpenPSX2AmigaPadAdapter.sch)
        (comment (number 1) (value "Licensed under CERN OHL v.1.2"))
        (comment (number 2) (value ""))
        (comment (number 3) (value ""))
        (comment (number 4) (value "")))))
  (components
    (comp (ref R1)
      (value 10k)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D1B4196))
    (comp (ref R2)
      (value 10k)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D1DED72))
    (comp (ref R6)
      (value 10k)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D1E6A38))
    (comp (ref R3)
      (value 10k)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D1EE01D))
    (comp (ref R7)
      (value 10k)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D1F51C8))
    (comp (ref R4)
      (value 10k)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D1FC6CF))
    (comp (ref R8)
      (value 10k)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D20380C))
    (comp (ref R5)
      (value 10k)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D20AE08))
    (comp (ref R9)
      (value 10k)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D212533))
    (comp (ref Q1)
      (value BSS138)
      (footprint Package_TO_SOT_SMD:SOT-23_Handsoldering)
      (datasheet https://www.fairchildsemi.com/datasheets/BS/BSS138.pdf)
      (libsource (lib Transistor_FET) (part BSS138) (description "50V Vds, 0.22A Id, N-Channel MOSFET, SOT-23"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D219FE6))
    (comp (ref Q2)
      (value BSS138)
      (footprint Package_TO_SOT_SMD:SOT-23_Handsoldering)
      (datasheet https://www.fairchildsemi.com/datasheets/BS/BSS138.pdf)
      (libsource (lib Transistor_FET) (part BSS138) (description "50V Vds, 0.22A Id, N-Channel MOSFET, SOT-23"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D24FA51))
    (comp (ref Q3)
      (value BSS138)
      (footprint Package_TO_SOT_SMD:SOT-23_Handsoldering)
      (datasheet https://www.fairchildsemi.com/datasheets/BS/BSS138.pdf)
      (libsource (lib Transistor_FET) (part BSS138) (description "50V Vds, 0.22A Id, N-Channel MOSFET, SOT-23"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D253CD6))
    (comp (ref Q4)
      (value BSS138)
      (footprint Package_TO_SOT_SMD:SOT-23_Handsoldering)
      (datasheet https://www.fairchildsemi.com/datasheets/BS/BSS138.pdf)
      (libsource (lib Transistor_FET) (part BSS138) (description "50V Vds, 0.22A Id, N-Channel MOSFET, SOT-23"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D25783F))
    (comp (ref J2)
      (value DB9_F)
      (footprint OpenPSX2AmigaPadAdapter:DB_9F)
      (datasheet " ~")
      (libsource (lib Connector) (part DB9_Female_MountingHoles) (description "9-pin female D-SUB connector, Mounting Hole"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D284CA1))
    (comp (ref J1)
      (value TO_PSX_PAD)
      (footprint OpenPSX2AmigaPadAdapter:PSX_Pad_Connector)
      (datasheet ~)
      (libsource (lib Connector) (part Conn_01x09_Female) (description "Generic connector, single row, 01x09, script generated (kicad-library-utils/schlib/autogen/connector/)"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D28E286))
    (comp (ref J4)
      (value CONN_ICSP)
      (footprint Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical)
      (datasheet ~)
      (libsource (lib Connector_Generic) (part Conn_02x03_Odd_Even) (description "Generic connector, double row, 02x03, odd/even pin numbering scheme (row 1 odd numbers, row 2 even numbers), script generated (kicad-library-utils/schlib/autogen/connector/)"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D2A2C76))
    (comp (ref J3)
      (value CONN_FTDI)
      (footprint Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical)
      (datasheet ~)
      (libsource (lib Connector) (part Conn_01x06_Male) (description "Generic connector, single row, 01x06, script generated (kicad-library-utils/schlib/autogen/connector/)"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D2AB871))
    (comp (ref U2)
      (value LM1117-3.3)
      (footprint Package_TO_SOT_SMD:SOT-223-3_TabPin2)
      (datasheet http://www.ti.com/lit/ds/symlink/lm1117.pdf)
      (libsource (lib Regulator_Linear) (part LM1117-3.3) (description "800mA Low-Dropout Linear Regulator, 3.3V fixed output, TO-220/TO-252/TO-263/SOT-223"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D2B6EC5))
    (comp (ref C10)
      (value 100n)
      (footprint Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part C) (description "Unpolarized capacitor"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D1C8DC2))
    (comp (ref LD2)
      (value LED)
      (footprint LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part LED) (description "Light emitting diode"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D311FEE))
    (comp (ref LD1)
      (value LED)
      (footprint LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part LED) (description "Light emitting diode"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D332AA0))
    (comp (ref R16)
      (value 220)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D343268))
    (comp (ref R15)
      (value 220)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D343E5C))
    (comp (ref C5)
      (value 100n)
      (footprint Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part C) (description "Unpolarized capacitor"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D3C9801))
    (comp (ref C6)
      (value 100n)
      (footprint Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part C) (description "Unpolarized capacitor"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D3D42CF))
    (comp (ref C7)
      (value 100n)
      (footprint Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part C) (description "Unpolarized capacitor"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D3D4648))
    (comp (ref C2)
      (value 10u)
      (footprint Capacitor_SMD:C_1206_3216Metric_Pad1.42x1.75mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part C) (description "Unpolarized capacitor"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D3DD729))
    (comp (ref C1)
      (value 10u)
      (footprint Capacitor_SMD:C_1206_3216Metric_Pad1.42x1.75mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part C) (description "Unpolarized capacitor"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D3DDD18))
    (comp (ref C3)
      (value 22p)
      (footprint Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part C) (description "Unpolarized capacitor"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D19A701))
    (comp (ref Y1)
      (value 16M)
      (footprint Crystal:Crystal_HC49-U_Vertical)
      (datasheet ~)
      (libsource (lib Device) (part Crystal) (description "Two pin crystal"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D1AA380))
    (comp (ref C4)
      (value 22p)
      (footprint Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part C) (description "Unpolarized capacitor"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D1A882F))
    (comp (ref U1)
      (value ATmega328P-AU)
      (footprint Package_QFP:TQFP-32_7x7mm_P0.8mm)
      (datasheet http://ww1.microchip.com/downloads/en/DeviceDoc/ATmega328_P%20AVR%20MCU%20with%20picoPower%20Technology%20Data%20Sheet%2040001984A.pdf)
      (libsource (lib MCU_Microchip_ATmega) (part ATmega328P-AU) (description "20MHz, 32kB Flash, 2kB SRAM, 1kB EEPROM, TQFP-32"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D405EF9))
    (comp (ref D1)
      (value 1n5817)
      (footprint Diode_SMD:D_SMA)
      (datasheet ~)
      (libsource (lib Device) (part D) (description Diode))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D314735))
    (comp (ref J99)
      (value OSHW_LOGO)
      (footprint Symbol:OSHW-Logo_5.7x6mm_Copper)
      (datasheet ~)
      (libsource (lib Connector) (part Conn_01x01_Male) (description "Generic connector, single row, 01x01, script generated (kicad-library-utils/schlib/autogen/connector/)"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D3ECFE7))
    (comp (ref SW1)
      (value RESET)
      (datasheet ~)
      (libsource (lib Switch) (part SW_Push) (description "Push button switch, generic, two pins"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D7A8F65))
    (comp (ref Y2)
      (value 16M)
      (footprint OpenPSX2AmigaPadAdapter:Resonator_SMD_muRata_CSTxExxV)
      (datasheet ~)
      (libsource (lib Device) (part Resonator) (description "Three pin ceramic resonator"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D9E3CA4))
    (comp (ref C9)
      (value 220p)
      (footprint Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part C) (description "Unpolarized capacitor"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5DB50106))
    (comp (ref C8)
      (value 820p)
      (footprint Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part C) (description "Unpolarized capacitor"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5DB5B8E8))
    (comp (ref R13)
      (value 10k)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5DFD8E76))
    (comp (ref R14)
      (value 10k)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5DFD8E80))
    (comp (ref Q5)
      (value BSS138)
      (footprint Package_TO_SOT_SMD:SOT-23_Handsoldering)
      (datasheet https://www.fairchildsemi.com/datasheets/BS/BSS138.pdf)
      (libsource (lib Transistor_FET) (part BSS138) (description "50V Vds, 0.22A Id, N-Channel MOSFET, SOT-23"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5DFD8E8A))
    (comp (ref R10)
      (value 100)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5D1D6EF3))
    (comp (ref R12)
      (value 10k)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5DAFD7E8))
    (comp (ref R11)
      (value 10k)
      (footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 5DAF3262)))
  (libparts
    (libpart (lib Connector) (part Conn_01x01_Male)
      (description "Generic connector, single row, 01x01, script generated (kicad-library-utils/schlib/autogen/connector/)")
      (docs ~)
      (footprints
        (fp Connector*:*))
      (fields
        (field (name Reference) J)
        (field (name Value) Conn_01x01_Male))
      (pins
        (pin (num 1) (name Pin_1) (type passive))))
    (libpart (lib Connector) (part Conn_01x06_Male)
      (description "Generic connector, single row, 01x06, script generated (kicad-library-utils/schlib/autogen/connector/)")
      (docs ~)
      (footprints
        (fp Connector*:*_1x??_*))
      (fields
        (field (name Reference) J)
        (field (name Value) Conn_01x06_Male))
      (pins
        (pin (num 1) (name Pin_1) (type passive))
        (pin (num 2) (name Pin_2) (type passive))
        (pin (num 3) (name Pin_3) (type passive))
        (pin (num 4) (name Pin_4) (type passive))
        (pin (num 5) (name Pin_5) (type passive))
        (pin (num 6) (name Pin_6) (type passive))))
    (libpart (lib Connector) (part Conn_01x09_Female)
      (description "Generic connector, single row, 01x09, script generated (kicad-library-utils/schlib/autogen/connector/)")
      (docs ~)
      (footprints
        (fp Connector*:*_1x??_*))
      (fields
        (field (name Reference) J)
        (field (name Value) Conn_01x09_Female))
      (pins
        (pin (num 1) (name Pin_1) (type passive))
        (pin (num 2) (name Pin_2) (type passive))
        (pin (num 3) (name Pin_3) (type passive))
        (pin (num 4) (name Pin_4) (type passive))
        (pin (num 5) (name Pin_5) (type passive))
        (pin (num 6) (name Pin_6) (type passive))
        (pin (num 7) (name Pin_7) (type passive))
        (pin (num 8) (name Pin_8) (type passive))
        (pin (num 9) (name Pin_9) (type passive))))
    (libpart (lib Connector) (part DB9_Female_MountingHoles)
      (description "9-pin female D-SUB connector, Mounting Hole")
      (docs " ~")
      (footprints
        (fp DSUB*Female*))
      (fields
        (field (name Reference) J)
        (field (name Value) DB9_Female_MountingHoles))
      (pins
        (pin (num 0) (name PAD) (type passive))
        (pin (num 1) (name 1) (type passive))
        (pin (num 2) (name 2) (type passive))
        (pin (num 3) (name 3) (type passive))
        (pin (num 4) (name 4) (type passive))
        (pin (num 5) (name 5) (type passive))
        (pin (num 6) (name 6) (type passive))
        (pin (num 7) (name 7) (type passive))
        (pin (num 8) (name 8) (type passive))
        (pin (num 9) (name 9) (type passive))))
    (libpart (lib Connector_Generic) (part Conn_02x03_Odd_Even)
      (description "Generic connector, double row, 02x03, odd/even pin numbering scheme (row 1 odd numbers, row 2 even numbers), script generated (kicad-library-utils/schlib/autogen/connector/)")
      (docs ~)
      (footprints
        (fp Connector*:*_2x??_*))
      (fields
        (field (name Reference) J)
        (field (name Value) Conn_02x03_Odd_Even))
      (pins
        (pin (num 1) (name Pin_1) (type passive))
        (pin (num 2) (name Pin_2) (type passive))
        (pin (num 3) (name Pin_3) (type passive))
        (pin (num 4) (name Pin_4) (type passive))
        (pin (num 5) (name Pin_5) (type passive))
        (pin (num 6) (name Pin_6) (type passive))))
    (libpart (lib Device) (part C)
      (description "Unpolarized capacitor")
      (docs ~)
      (footprints
        (fp C_*))
      (fields
        (field (name Reference) C)
        (field (name Value) C))
      (pins
        (pin (num 1) (name ~) (type passive))
        (pin (num 2) (name ~) (type passive))))
    (libpart (lib Device) (part Crystal)
      (description "Two pin crystal")
      (docs ~)
      (footprints
        (fp Crystal*))
      (fields
        (field (name Reference) Y)
        (field (name Value) Crystal))
      (pins
        (pin (num 1) (name 1) (type passive))
        (pin (num 2) (name 2) (type passive))))
    (libpart (lib Device) (part D)
      (description Diode)
      (docs ~)
      (footprints
        (fp TO-???*)
        (fp *_Diode_*)
        (fp *SingleDiode*)
        (fp D_*))
      (fields
        (field (name Reference) D)
        (field (name Value) D))
      (pins
        (pin (num 1) (name K) (type passive))
        (pin (num 2) (name A) (type passive))))
    (libpart (lib Device) (part LED)
      (description "Light emitting diode")
      (docs ~)
      (footprints
        (fp LED*)
        (fp LED_SMD:*)
        (fp LED_THT:*))
      (fields
        (field (name Reference) D)
        (field (name Value) LED))
      (pins
        (pin (num 1) (name K) (type passive))
        (pin (num 2) (name A) (type passive))))
    (libpart (lib Device) (part R)
      (description Resistor)
      (docs ~)
      (footprints
        (fp R_*))
      (fields
        (field (name Reference) R)
        (field (name Value) R))
      (pins
        (pin (num 1) (name ~) (type passive))
        (pin (num 2) (name ~) (type passive))))
    (libpart (lib Device) (part Resonator)
      (description "Three pin ceramic resonator")
      (docs ~)
      (footprints
        (fp Filter*)
        (fp Resonator*))
      (fields
        (field (name Reference) Y)
        (field (name Value) Resonator))
      (pins
        (pin (num 1) (name 1) (type passive))
        (pin (num 2) (name 2) (type passive))
        (pin (num 3) (name 3) (type passive))))
    (libpart (lib MCU_Microchip_ATmega) (part ATmega48PV-10AU)
      (aliases
        (alias ATmega48P-20AU)
        (alias ATmega48A-AU)
        (alias ATmega48PA-AU)
        (alias ATmega88PV-10AU)
        (alias ATmega88P-20AU)
        (alias ATmega88A-AU)
        (alias ATmega88PA-AU)
        (alias ATmega168PV-10AU)
        (alias ATmega168P-20AU)
        (alias ATmega168A-AU)
        (alias ATmega168PA-AU)
        (alias ATmega328-AU)
        (alias ATmega328P-AU))
      (description "10MHz, 4kB Flash, 512B SRAM, 256B EEPROM, TQFP-32")
      (docs http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-8025-8-bit-AVR-Microcontroller-ATmega48P-88P-168P_Datasheet.pdf)
      (footprints
        (fp TQFP*7x7mm*P0.8mm*))
      (fields
        (field (name Reference) U)
        (field (name Value) ATmega48PV-10AU)
        (field (name Footprint) Package_QFP:TQFP-32_7x7mm_P0.8mm))
      (pins
        (pin (num 1) (name PD3) (type BiDi))
        (pin (num 2) (name PD4) (type BiDi))
        (pin (num 3) (name GND) (type power_in))
        (pin (num 4) (name VCC) (type power_in))
        (pin (num 5) (name GND) (type passive))
        (pin (num 6) (name VCC) (type passive))
        (pin (num 7) (name XTAL1/PB6) (type BiDi))
        (pin (num 8) (name XTAL2/PB7) (type BiDi))
        (pin (num 9) (name PD5) (type BiDi))
        (pin (num 10) (name PD6) (type BiDi))
        (pin (num 11) (name PD7) (type BiDi))
        (pin (num 12) (name PB0) (type BiDi))
        (pin (num 13) (name PB1) (type BiDi))
        (pin (num 14) (name PB2) (type BiDi))
        (pin (num 15) (name PB3) (type BiDi))
        (pin (num 16) (name PB4) (type BiDi))
        (pin (num 17) (name PB5) (type BiDi))
        (pin (num 18) (name AVCC) (type power_in))
        (pin (num 19) (name ADC6) (type input))
        (pin (num 20) (name AREF) (type passive))
        (pin (num 21) (name GND) (type passive))
        (pin (num 22) (name ADC7) (type input))
        (pin (num 23) (name PC0) (type BiDi))
        (pin (num 24) (name PC1) (type BiDi))
        (pin (num 25) (name PC2) (type BiDi))
        (pin (num 26) (name PC3) (type BiDi))
        (pin (num 27) (name PC4) (type BiDi))
        (pin (num 28) (name PC5) (type BiDi))
        (pin (num 29) (name ~RESET~/PC6) (type BiDi))
        (pin (num 30) (name PD0) (type BiDi))
        (pin (num 31) (name PD1) (type BiDi))
        (pin (num 32) (name PD2) (type BiDi))))
    (libpart (lib Regulator_Linear) (part LM1117-1.8)
      (aliases
        (alias LM1117-2.5)
        (alias LM1117-3.3)
        (alias LM1117-5.0)
        (alias TLV1117-15)
        (alias TLV1117-18)
        (alias TLV1117-25)
        (alias TLV1117-33)
        (alias TLV1117-50))
      (description "800mA Low-Dropout Linear Regulator, 1.8V fixed output, TO-220/TO-252/TO-263/SOT-223")
      (docs http://www.ti.com/lit/ds/symlink/lm1117.pdf)
      (footprints
        (fp SOT?223*)
        (fp TO?263*)
        (fp TO?252*)
        (fp TO?220*))
      (fields
        (field (name Reference) U)
        (field (name Value) LM1117-1.8))
      (pins
        (pin (num 1) (name GND) (type power_in))
        (pin (num 2) (name VO) (type power_out))
        (pin (num 3) (name VI) (type power_in))))
    (libpart (lib Switch) (part SW_Push)
      (description "Push button switch, generic, two pins")
      (docs ~)
      (fields
        (field (name Reference) SW)
        (field (name Value) SW_Push))
      (pins
        (pin (num 1) (name 1) (type passive))
        (pin (num 2) (name 2) (type passive))))
    (libpart (lib Transistor_FET) (part BSS138)
      (aliases
        (alias 2N7002)
        (alias 2N7002E)
        (alias 2N7002H)
        (alias 2N7002K)
        (alias BS170F)
        (alias BS870)
        (alias BSN20)
        (alias BSS123)
        (alias BSS127S)
        (alias DMG2302U)
        (alias DMG3402L)
        (alias DMG3404L)
        (alias DMG3406L)
        (alias DMG3414U)
        (alias DMG3418L)
        (alias DMN10H220L)
        (alias DMN10H700S)
        (alias DMN13H750S)
        (alias DMN2041L)
        (alias DMN2050L)
        (alias DMN2056U)
        (alias DMN2058U)
        (alias DMN2075U)
        (alias DMN2230U)
        (alias DMN24H11DS)
        (alias DMN24H3D5L)
        (alias DMN3042L)
        (alias DMN3051L)
        (alias DMN30H4D0L)
        (alias DMN3110S)
        (alias DMN3150L)
        (alias DMN3300U)
        (alias DMN3404L)
        (alias DMN6075S)
        (alias DMN6140L)
        (alias DMN67D7L)
        (alias DMN67D8L)
        (alias MMBF170)
        (alias VN10LF)
        (alias ZVN3306F)
        (alias ZVN3310F)
        (alias ZVN3320F)
        (alias ZVN4106F)
        (alias ZXM61N02F)
        (alias ZXM61N03F)
        (alias ZXMN10A07F)
        (alias ZXMN2A01F)
        (alias ZXMN2A14F)
        (alias ZXMN2B01F)
        (alias ZXMN2B14FH)
        (alias ZXMN2F30FH)
        (alias ZXMN2F34FH)
        (alias ZXMN3A01F)
        (alias ZXMN3A14F)
        (alias ZXMN3B01F)
        (alias ZXMN3B14F)
        (alias ZXMN3F30FH)
        (alias ZXMN6A07F)
        (alias IRLML0030)
        (alias IRLML2060))
      (description "50V Vds, 0.22A Id, N-Channel MOSFET, SOT-23")
      (docs https://www.fairchildsemi.com/datasheets/BS/BSS138.pdf)
      (footprints
        (fp SOT?23*))
      (fields
        (field (name Reference) Q)
        (field (name Value) BSS138)
        (field (name Footprint) Package_TO_SOT_SMD:SOT-23))
      (pins
        (pin (num 1) (name G) (type input))
        (pin (num 2) (name S) (type passive))
        (pin (num 3) (name D) (type passive)))))
  (libraries
    (library (logical Connector)
      (uri /usr/share/kicad/library/Connector.lib))
    (library (logical Connector_Generic)
      (uri /usr/share/kicad/library/Connector_Generic.lib))
    (library (logical Device)
      (uri /usr/share/kicad/library/Device.lib))
    (library (logical MCU_Microchip_ATmega)
      (uri /usr/share/kicad/library/MCU_Microchip_ATmega.lib))
    (library (logical Regulator_Linear)
      (uri /usr/share/kicad/library/Regulator_Linear.lib))
    (library (logical Switch)
      (uri /usr/share/kicad/library/Switch.lib))
    (library (logical Transistor_FET)
      (uri /usr/share/kicad/library/Transistor_FET.lib)))
  (nets
    (net (code 1) (name "Net-(C3-Pad2)")
      (node (ref Y1) (pin 1))
      (node (ref U1) (pin 7))
      (node (ref Y2) (pin 3))
      (node (ref C3) (pin 2)))
    (net (code 2) (name /ami_fire)
      (node (ref R11) (pin 2))
      (node (ref R10) (pin 1))
      (node (ref J2) (pin 6)))
    (net (code 3) (name "Net-(R10-Pad2)")
      (node (ref R10) (pin 2))
      (node (ref U1) (pin 1)))
    (net (code 4) (name /ami_right)
      (node (ref U1) (pin 11))
      (node (ref J2) (pin 4)))
    (net (code 5) (name /ami_left)
      (node (ref J2) (pin 3))
      (node (ref U1) (pin 10)))
    (net (code 6) (name /ami_down)
      (node (ref U1) (pin 9))
      (node (ref J2) (pin 2)))
    (net (code 7) (name /ami_up)
      (node (ref J2) (pin 1))
      (node (ref U1) (pin 2)))
    (net (code 8) (name /ami_potx)
      (node (ref U1) (pin 32))
      (node (ref J2) (pin 5))
      (node (ref C9) (pin 1)))
    (net (code 9) (name /tx)
      (node (ref U1) (pin 31))
      (node (ref J3) (pin 5)))
    (net (code 10) (name "Net-(U1-Pad19)")
      (node (ref U1) (pin 19)))
    (net (code 11) (name "Net-(U1-Pad22)")
      (node (ref U1) (pin 22)))
    (net (code 12) (name "Net-(U1-Pad20)")
      (node (ref U1) (pin 20)))
    (net (code 13) (name /rx)
      (node (ref U1) (pin 30))
      (node (ref J3) (pin 4)))
    (net (code 14) (name "Net-(C4-Pad2)")
      (node (ref Y2) (pin 1))
      (node (ref U1) (pin 8))
      (node (ref C4) (pin 2))
      (node (ref Y1) (pin 2)))
    (net (code 15) (name GND)
      (node (ref C9) (pin 2))
      (node (ref U1) (pin 21))
      (node (ref C8) (pin 2))
      (node (ref U1) (pin 3))
      (node (ref U1) (pin 5))
      (node (ref J3) (pin 2))
      (node (ref Y2) (pin 2))
      (node (ref J2) (pin 0))
      (node (ref SW1) (pin 2))
      (node (ref J2) (pin 8))
      (node (ref J1) (pin 4))
      (node (ref J4) (pin 6))
      (node (ref J3) (pin 1))
      (node (ref LD1) (pin 1))
      (node (ref C5) (pin 1))
      (node (ref C3) (pin 1))
      (node (ref LD2) (pin 1))
      (node (ref C2) (pin 1))
      (node (ref U2) (pin 1))
      (node (ref C4) (pin 1))
      (node (ref C6) (pin 1))
      (node (ref C7) (pin 1))
      (node (ref C1) (pin 1)))
    (net (code 16) (name /ps_attn)
      (node (ref Q3) (pin 3))
      (node (ref R4) (pin 2))
      (node (ref U1) (pin 14)))
    (net (code 17) (name /mosi)
      (node (ref U1) (pin 15))
      (node (ref J4) (pin 4))
      (node (ref Q2) (pin 3))
      (node (ref R3) (pin 2)))
    (net (code 18) (name /miso)
      (node (ref Q1) (pin 3))
      (node (ref R2) (pin 2))
      (node (ref J4) (pin 1))
      (node (ref U1) (pin 16)))
    (net (code 19) (name /ps_clk)
      (node (ref J4) (pin 3))
      (node (ref Q4) (pin 3))
      (node (ref R5) (pin 2))
      (node (ref U1) (pin 17)))
    (net (code 20) (name /ami_poty)
      (node (ref U1) (pin 12))
      (node (ref C8) (pin 1))
      (node (ref J2) (pin 9))
      (node (ref R12) (pin 2)))
    (net (code 21) (name "Net-(U1-Pad28)")
      (node (ref U1) (pin 28)))
    (net (code 22) (name "Net-(LD1-Pad2)")
      (node (ref LD1) (pin 2))
      (node (ref R15) (pin 1)))
    (net (code 23) (name /led1)
      (node (ref R15) (pin 2))
      (node (ref U1) (pin 24)))
    (net (code 24) (name /led2)
      (node (ref R16) (pin 2))
      (node (ref U1) (pin 23)))
    (net (code 25) (name "Net-(LD2-Pad2)")
      (node (ref R16) (pin 1))
      (node (ref LD2) (pin 2)))
    (net (code 26) (name "Net-(U1-Pad26)")
      (node (ref U1) (pin 26)))
    (net (code 27) (name "Net-(U1-Pad27)")
      (node (ref U1) (pin 27)))
    (net (code 28) (name /ps_ack_3v3)
      (node (ref Q5) (pin 2))
      (node (ref R14) (pin 2))
      (node (ref J1) (pin 9)))
    (net (code 29) (name "Net-(U1-Pad25)")
      (node (ref U1) (pin 25)))
    (net (code 30) (name /ps_ack)
      (node (ref Q5) (pin 3))
      (node (ref R13) (pin 2))
      (node (ref U1) (pin 13)))
    (net (code 31) (name +3V3)
      (node (ref Q4) (pin 1))
      (node (ref R9) (pin 1))
      (node (ref Q1) (pin 1))
      (node (ref Q3) (pin 1))
      (node (ref Q2) (pin 1))
      (node (ref U2) (pin 2))
      (node (ref C1) (pin 2))
      (node (ref R8) (pin 1))
      (node (ref R14) (pin 1))
      (node (ref Q5) (pin 1))
      (node (ref R6) (pin 1))
      (node (ref R7) (pin 1))
      (node (ref J1) (pin 5)))
    (net (code 32) (name +5V)
      (node (ref R4) (pin 1))
      (node (ref R5) (pin 1))
      (node (ref R3) (pin 1))
      (node (ref R1) (pin 1))
      (node (ref J4) (pin 2))
      (node (ref R2) (pin 1))
      (node (ref D1) (pin 1))
      (node (ref R13) (pin 1))
      (node (ref R12) (pin 1))
      (node (ref R11) (pin 1))
      (node (ref U1) (pin 6))
      (node (ref U1) (pin 4))
      (node (ref J3) (pin 3))
      (node (ref U1) (pin 18))
      (node (ref U2) (pin 3))
      (node (ref C2) (pin 2))
      (node (ref C7) (pin 2))
      (node (ref C6) (pin 2))
      (node (ref C5) (pin 2)))
    (net (code 33) (name "Net-(J99-Pad1)")
      (node (ref J99) (pin 1)))
    (net (code 34) (name /ps_attn_3v3)
      (node (ref J1) (pin 6))
      (node (ref Q3) (pin 2))
      (node (ref R8) (pin 2)))
    (net (code 35) (name /ps_cmd_3v3)
      (node (ref Q2) (pin 2))
      (node (ref R7) (pin 2))
      (node (ref J1) (pin 2)))
    (net (code 36) (name /ps_data_3v3)
      (node (ref R6) (pin 2))
      (node (ref Q1) (pin 2))
      (node (ref J1) (pin 1)))
    (net (code 37) (name /ps_clk_3v3)
      (node (ref J1) (pin 7))
      (node (ref R9) (pin 2))
      (node (ref Q4) (pin 2)))
    (net (code 38) (name +9V)
      (node (ref J1) (pin 3)))
    (net (code 39) (name "Net-(D1-Pad2)")
      (node (ref J2) (pin 7))
      (node (ref D1) (pin 2)))
    (net (code 40) (name "Net-(J1-Pad8)")
      (node (ref J1) (pin 8)))
    (net (code 41) (name /dtr)
      (node (ref C10) (pin 1))
      (node (ref J3) (pin 6)))
    (net (code 42) (name /reset)
      (node (ref R1) (pin 2))
      (node (ref C10) (pin 2))
      (node (ref SW1) (pin 1))
      (node (ref U1) (pin 29))
      (node (ref J4) (pin 5)))))