(export (version D)
  (design
    (source /home/eddy/Docs/SAO/ELECTRONICS/STM32/c8t6/canbus/kicad/stm32.sch)
    (date "Пн 18 июн 2018 13:42:04")
    (tool "Eeschema 4.0.7")
    (sheet (number 1) (name /) (tstamps /)
      (title_block
        (title)
        (company)
        (rev)
        (date)
        (source stm32.sch)
        (comment (number 1) (value ""))
        (comment (number 2) (value ""))
        (comment (number 3) (value ""))
        (comment (number 4) (value "")))))
  (components
    (comp (ref C11)
      (value 0.1)
      (footprint Capacitors_SMD.pretty:C_0603_HandSoldering)
      (libsource (lib device) (part C))
      (sheetpath (names /) (tstamps /))
      (tstamp 58C42D39))
    (comp (ref U2)
      (value LM1117-3.3)
      (footprint TO_SOT_Packages_SMD.pretty:SOT-223)
      (libsource (lib stm32-rescue) (part LM1117-3.3-RESCUE-stm32))
      (sheetpath (names /) (tstamps /))
      (tstamp 58C431FC))
    (comp (ref U4)
      (value MCP2551-I/SN)
      (footprint Housings_SOIC.pretty:SOIC-8_3.9x4.9mm_Pitch1.27mm)
      (libsource (lib interface) (part MCP2551-I/SN))
      (sheetpath (names /) (tstamps /))
      (tstamp 58C43297))
    (comp (ref P13)
      (value USB_A)
      (footprint Connect.pretty:USB_Mini-B)
      (libsource (lib stm32-cache) (part USB_A-RESCUE-stm32))
      (sheetpath (names /) (tstamps /))
      (tstamp 58C433D0))
    (comp (ref C2)
      (value 47u)
      (footprint Capacitors_Tantalum_SMD.pretty:Tantalum_Case-A_EIA-3216-18_Hand)
      (libsource (lib device) (part CP))
      (sheetpath (names /) (tstamps /))
      (tstamp 58C454F6))
    (comp (ref D3)
      (value PESD1CAN)
      (footprint TO_SOT_Packages_SMD.pretty:SOT-23)
      (libsource (lib elements) (part PESD1CAN))
      (sheetpath (names /) (tstamps /))
      (tstamp 58C46522))
    (comp (ref R8)
      (value 4k7)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 58C47F04))
    (comp (ref R9)
      (value 120)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 58C488C6))
    (comp (ref JP1)
      (value Terminal)
      (footprint Pin_Headers.pretty:Pin_Header_Straight_1x02)
      (libsource (lib device) (part Jumper_NO_Small))
      (sheetpath (names /) (tstamps /))
      (tstamp 58C4940D))
    (comp (ref D5)
      (value LED0)
      (footprint LEDs.pretty:LED_0805)
      (libsource (lib stm32-cache) (part LED-RESCUE-stm32))
      (sheetpath (names /) (tstamps /))
      (tstamp 5908EA64))
    (comp (ref R29)
      (value 330)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 5908EB17))
    (comp (ref C12)
      (value 0.1)
      (footprint Capacitors_SMD.pretty:C_0603_HandSoldering)
      (libsource (lib device) (part C))
      (sheetpath (names /) (tstamps /))
      (tstamp 590935EA))
    (comp (ref C13)
      (value 0.1)
      (footprint Capacitors_SMD.pretty:C_0603_HandSoldering)
      (libsource (lib device) (part C))
      (sheetpath (names /) (tstamps /))
      (tstamp 59093675))
    (comp (ref D7)
      (value USB6B1)
      (footprint Housings_SOIC.pretty:SOIC-8_3.9x4.9mm_Pitch1.27mm)
      (libsource (lib elements) (part USB6B1))
      (sheetpath (names /) (tstamps /))
      (tstamp 59098D4D))
    (comp (ref D6)
      (value LED1)
      (footprint LEDs.pretty:LED_0805)
      (libsource (lib stm32-cache) (part LED-RESCUE-stm32))
      (sheetpath (names /) (tstamps /))
      (tstamp 5909AF9A))
    (comp (ref R30)
      (value 330)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 5909AFA0))
    (comp (ref D2)
      (value LED)
      (footprint LEDs.pretty:LED_0805)
      (libsource (lib stm32-cache) (part LED-RESCUE-stm32))
      (sheetpath (names /) (tstamps /))
      (tstamp 5909BFFC))
    (comp (ref R5)
      (value 330)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 5909C002))
    (comp (ref C14)
      (value 0.1)
      (footprint Capacitors_SMD.pretty:C_0603_HandSoldering)
      (libsource (lib device) (part C))
      (sheetpath (names /) (tstamps /))
      (tstamp 590A8102))
    (comp (ref P12)
      (value USART_BOOT)
      (footprint Pin_Headers.pretty:Pin_Header_Straight_1x03)
      (libsource (lib stm32-cache) (part CONN_01X03))
      (sheetpath (names /) (tstamps /))
      (tstamp 590AD3A7))
    (comp (ref Q1)
      (value AO3407)
      (footprint TO_SOT_Packages_SMD.pretty:SOT-23_Handsoldering)
      (libsource (lib device) (part Q_PMOS_GSD))
      (sheetpath (names /) (tstamps /))
      (tstamp 5910E2F2))
    (comp (ref R3)
      (value 220k)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 590A6DD4))
    (comp (ref R4)
      (value 56k)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 590A6DDA))
    (comp (ref R6)
      (value 47k)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 590A6F68))
    (comp (ref R7)
      (value 47k)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 590A6F6E))
    (comp (ref R27)
      (value 10k)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 590D30C8))
    (comp (ref R28)
      (value 10k)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 590D3334))
    (comp (ref C6)
      (value 0.1)
      (footprint Capacitors_SMD.pretty:C_0603_HandSoldering)
      (libsource (lib device) (part C))
      (sheetpath (names /) (tstamps /))
      (tstamp 590D4150))
    (comp (ref C5)
      (value 0.1)
      (footprint Capacitors_SMD.pretty:C_0603_HandSoldering)
      (libsource (lib device) (part C))
      (sheetpath (names /) (tstamps /))
      (tstamp 590D4832))
    (comp (ref SW2)
      (value Boot)
      (footprint Buttons_Switches_SMD.pretty:SW_SPST_FSMSM)
      (libsource (lib stm32-cache) (part SW_Push))
      (sheetpath (names /) (tstamps /))
      (tstamp 5909F6B6))
    (comp (ref SW1)
      (value Reset)
      (footprint Buttons_Switches_SMD.pretty:SW_SPST_FSMSM)
      (libsource (lib stm32-cache) (part SW_Push))
      (sheetpath (names /) (tstamps /))
      (tstamp 590A0134))
    (comp (ref P15)
      (value Hole)
      (footprint my_footprints:Hole_3mm)
      (libsource (lib stm32-cache) (part CONN_01X01))
      (sheetpath (names /) (tstamps /))
      (tstamp 59143415))
    (comp (ref P16)
      (value Hole)
      (footprint my_footprints:Hole_3mm)
      (libsource (lib stm32-cache) (part CONN_01X01))
      (sheetpath (names /) (tstamps /))
      (tstamp 5914456D))
    (comp (ref P17)
      (value Hole)
      (footprint my_footprints:Hole_3mm)
      (libsource (lib stm32-cache) (part CONN_01X01))
      (sheetpath (names /) (tstamps /))
      (tstamp 591446F3))
    (comp (ref P18)
      (value Hole)
      (footprint my_footprints:Hole_3mm)
      (libsource (lib stm32-cache) (part CONN_01X01))
      (sheetpath (names /) (tstamps /))
      (tstamp 591446F9))
    (comp (ref C15)
      (value 0.1)
      (footprint Capacitors_SMD.pretty:C_0603_HandSoldering)
      (libsource (lib device) (part C))
      (sheetpath (names /) (tstamps /))
      (tstamp 596772D4))
    (comp (ref D9)
      (value SMAJ5.0A)
      (footprint Diode_SMD.pretty:D_SMA)
      (libsource (lib device) (part D_Zener))
      (sheetpath (names /) (tstamps /))
      (tstamp 5968325A))
    (comp (ref D8)
      (value SMAJ5.0A)
      (footprint Diode_SMD.pretty:D_SMA)
      (libsource (lib device) (part D_Zener))
      (sheetpath (names /) (tstamps /))
      (tstamp 59684468))
    (comp (ref R34)
      (value 22)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 5968E385))
    (comp (ref R35)
      (value 22)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 5968E83B))
    (comp (ref J1)
      (value CONN_02X03)
      (footprint Pin_Headers.pretty:Pin_Header_Straight_2x03_Pitch2.54mm)
      (libsource (lib stm32-cache) (part CONN_02X03))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A50A198))
    (comp (ref D4)
      (value MBRS130L)
      (footprint Diodes_SMD.pretty:D_SMB_Handsoldering)
      (libsource (lib device) (part D_Schottky))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A545B43))
    (comp (ref U1)
      (value LM1117-5.0)
      (footprint TO_SOT_Packages_SMD.pretty:SOT-223)
      (libsource (lib stm32-rescue) (part LM1117-3.3-RESCUE-stm32))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5866DE))
    (comp (ref C1)
      (value 0.1)
      (footprint Capacitors_SMD.pretty:C_0603_HandSoldering)
      (libsource (lib device) (part C))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A586F5C))
    (comp (ref J2)
      (value DB9_Female)
      (footprint Connectors.pretty:DB9FC)
      (libsource (lib conn) (part DB9_Female))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5935B2))
    (comp (ref J3)
      (value DB9_Male)
      (footprint Connectors.pretty:DB9MC)
      (libsource (lib conn) (part DB9_Male))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A59367B))
    (comp (ref Q2)
      (value SI2300)
      (footprint TO_SOT_Packages_SMD.pretty:SOT-23_Handsoldering)
      (libsource (lib device) (part Q_NMOS_GSD))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5A1353))
    (comp (ref R1)
      (value 330)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5A1F28))
    (comp (ref J4)
      (value Conn_01x07)
      (footprint Pin_Headers.pretty:Pin_Header_Straight_1x07_Pitch2.54mm)
      (libsource (lib conn) (part Conn_01x07))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5A2990))
    (comp (ref R13)
      (value 4.7)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5A3B4E))
    (comp (ref Q3)
      (value SI2300)
      (footprint TO_SOT_Packages_SMD.pretty:SOT-23_Handsoldering)
      (libsource (lib device) (part Q_NMOS_GSD))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5A57A1))
    (comp (ref R2)
      (value 330)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5A57A7))
    (comp (ref Q4)
      (value SI2300)
      (footprint TO_SOT_Packages_SMD.pretty:SOT-23_Handsoldering)
      (libsource (lib device) (part Q_NMOS_GSD))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5A5C15))
    (comp (ref R10)
      (value 330)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5A5C1B))
    (comp (ref R11)
      (value 330)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5A929C))
    (comp (ref R12)
      (value 330)
      (footprint Resistors_SMD.pretty:R_0603_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5A93D0))
    (comp (ref J5)
      (value 12v)
      (footprint Connectors_Terminal_Blocks.pretty:TerminalBlock_Pheonix_MKDS1.5-2pol)
      (libsource (lib conn) (part Conn_01x02))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5B6143))
    (comp (ref D1)
      (value SP0502BAHT)
      (footprint TO_SOT_Packages_SMD.pretty:SOT-23)
      (libsource (lib ESD_Protection) (part SP0502BAHT))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5D29E2))
    (comp (ref R14)
      (value 0)
      (footprint Resistors_SMD.pretty:R_0805_HandSoldering)
      (libsource (lib device) (part R))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A5D5996))
    (comp (ref U7)
      (value STM32F042C6Tx)
      (footprint Housings_QFP.pretty:LQFP-48_7x7mm_Pitch0.5mm)
      (libsource (lib stm32-cache) (part STM32F042C6Tx))
      (sheetpath (names /) (tstamps /))
      (tstamp 58C42C0E))
    (comp (ref J6)
      (value Conn_01x01)
      (footprint Pin_Headers.pretty:Pin_Header_Straight_1x01_Pitch2.54mm)
      (libsource (lib conn) (part Conn_01x01))
      (sheetpath (names /) (tstamps /))
      (tstamp 5A6066AA)))
  (libparts
    (libpart (lib device) (part C)
      (description "Unpolarized capacitor")
      (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 stm32-cache) (part CONN_01X01)
      (footprints
        (fp Pin_Header_Straight_1X*)
        (fp Pin_Header_Angled_1X*)
        (fp Socket_Strip_Straight_1X*)
        (fp Socket_Strip_Angled_1X*))
      (fields
        (field (name Reference) J)
        (field (name Value) CONN_01X01))
      (pins
        (pin (num 1) (name P1) (type passive))))
    (libpart (lib stm32-cache) (part CONN_01X03)
      (footprints
        (fp Pin_Header_Straight_1X*)
        (fp Pin_Header_Angled_1X*)
        (fp Socket_Strip_Straight_1X*)
        (fp Socket_Strip_Angled_1X*))
      (fields
        (field (name Reference) J)
        (field (name Value) CONN_01X03))
      (pins
        (pin (num 1) (name P1) (type passive))
        (pin (num 2) (name P2) (type passive))
        (pin (num 3) (name P3) (type passive))))
    (libpart (lib stm32-cache) (part CONN_02X03)
      (footprints
        (fp Pin_Header_Straight_2X*)
        (fp Pin_Header_Angled_2X*)
        (fp Socket_Strip_Straight_2X*)
        (fp Socket_Strip_Angled_2X*)
        (fp IDC_Header_Straight_*))
      (fields
        (field (name Reference) J)
        (field (name Value) CONN_02X03))
      (pins
        (pin (num 1) (name P1) (type passive))
        (pin (num 2) (name P2) (type passive))
        (pin (num 3) (name P3) (type passive))
        (pin (num 4) (name P4) (type passive))
        (pin (num 5) (name P5) (type passive))
        (pin (num 6) (name P6) (type passive))))
    (libpart (lib device) (part CP)
      (description "Polarised capacitor")
      (footprints
        (fp CP_*))
      (fields
        (field (name Reference) C)
        (field (name Value) CP))
      (pins
        (pin (num 1) (name ~) (type passive))
        (pin (num 2) (name ~) (type passive))))
    (libpart (lib conn) (part Conn_01x01)
      (description "Generic connector, single row, 01x01")
      (docs ~)
      (footprints
        (fp Connector*:*_??x*mm*)
        (fp Connector*:*1x??x*mm*)
        (fp Pin?Header?Straight?1X*)
        (fp Pin?Header?Angled?1X*)
        (fp Socket?Strip?Straight?1X*)
        (fp Socket?Strip?Angled?1X*))
      (fields
        (field (name Reference) J)
        (field (name Value) Conn_01x01))
      (pins
        (pin (num 1) (name Pin_1) (type passive))))
    (libpart (lib conn) (part Conn_01x02)
      (description "Generic connector, single row, 01x02")
      (docs ~)
      (footprints
        (fp Connector*:*_??x*mm*)
        (fp Connector*:*1x??x*mm*)
        (fp Pin?Header?Straight?1X*)
        (fp Pin?Header?Angled?1X*)
        (fp Socket?Strip?Straight?1X*)
        (fp Socket?Strip?Angled?1X*))
      (fields
        (field (name Reference) J)
        (field (name Value) Conn_01x02))
      (pins
        (pin (num 1) (name Pin_1) (type passive))
        (pin (num 2) (name Pin_2) (type passive))))
    (libpart (lib conn) (part Conn_01x07)
      (description "Generic connector, single row, 01x07")
      (docs ~)
      (footprints
        (fp Connector*:*_??x*mm*)
        (fp Connector*:*1x??x*mm*)
        (fp Pin?Header?Straight?1X*)
        (fp Pin?Header?Angled?1X*)
        (fp Socket?Strip?Straight?1X*)
        (fp Socket?Strip?Angled?1X*))
      (fields
        (field (name Reference) J)
        (field (name Value) Conn_01x07))
      (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))))
    (libpart (lib conn) (part DB9_Female)
      (description "9-pin female D-SUB connector")
      (footprints
        (fp DB*F*))
      (fields
        (field (name Reference) J)
        (field (name Value) DB9_Female))
      (pins
        (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 conn) (part DB9_Male)
      (description "9-pin male D-SUB connector")
      (footprints
        (fp DB*M*))
      (fields
        (field (name Reference) J)
        (field (name Value) DB9_Male))
      (pins
        (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 device) (part D_Schottky)
      (description "Schottky diode")
      (footprints
        (fp TO-???*)
        (fp *SingleDiode)
        (fp *_Diode_*)
        (fp *SingleDiode*)
        (fp D_*))
      (fields
        (field (name Reference) D)
        (field (name Value) D_Schottky))
      (pins
        (pin (num 1) (name K) (type passive))
        (pin (num 2) (name A) (type passive))))
    (libpart (lib device) (part D_Zener)
      (description "Zener Diode")
      (docs https://en.wikipedia.org/wiki/Zener_diode)
      (footprints
        (fp TO-???*)
        (fp *SingleDiode)
        (fp *_Diode_*)
        (fp *SingleDiode*)
        (fp D_*))
      (fields
        (field (name Reference) D)
        (field (name Value) D_Zener))
      (pins
        (pin (num 1) (name K) (type passive))
        (pin (num 2) (name A) (type passive))))
    (libpart (lib device) (part Jumper_NO_Small)
      (description "Jumper, normally open")
      (fields
        (field (name Reference) JP)
        (field (name Value) Jumper_NO_Small))
      (pins
        (pin (num 1) (name 1) (type passive))
        (pin (num 2) (name 2) (type passive))))
    (libpart (lib stm32-cache) (part LED-RESCUE-stm32)
      (footprints
        (fp LED*))
      (fields
        (field (name Reference) D)
        (field (name Value) LED-RESCUE-stm32))
      (pins
        (pin (num 1) (name K) (type passive))
        (pin (num 2) (name A) (type passive))))
    (libpart (lib stm32-rescue) (part LM1117-3.3-RESCUE-stm32)
      (footprints
        (fp SOT-223*)
        (fp TO-263*)
        (fp TO-252*))
      (fields
        (field (name Reference) U)
        (field (name Value) LM1117-3.3-RESCUE-stm32))
      (pins
        (pin (num 1) (name GND/ADJ) (type power_in))
        (pin (num 2) (name VO) (type passive))
        (pin (num 3) (name VI) (type power_in))
        (pin (num 4) (name VO) (type power_out))))
    (libpart (lib interface) (part MCP2551-I/SN)
      (description "High-Speed CAN Transceiver, 1Mbps, 5V supply, SOIC8 package")
      (docs http://ww1.microchip.com/downloads/en/devicedoc/21667d.pdf)
      (footprints
        (fp SOIC*Pitch1.27mm*))
      (fields
        (field (name Reference) U)
        (field (name Value) MCP2551-I/SN)
        (field (name Footprint) Housings_SOIC:SOIC-8_3.9x4.9mm_Pitch1.27mm))
      (pins
        (pin (num 1) (name TXD) (type input))
        (pin (num 2) (name VSS) (type power_in))
        (pin (num 3) (name VDD) (type power_in))
        (pin (num 4) (name RXD) (type output))
        (pin (num 5) (name Vref) (type power_out))
        (pin (num 6) (name CANL) (type BiDi))
        (pin (num 7) (name CANH) (type BiDi))
        (pin (num 8) (name Rs) (type input))))
    (libpart (lib elements) (part PESD1CAN)
      (description "CAN bus ESD protection")
      (footprints
        (fp SOT23))
      (fields
        (field (name Reference) D)
        (field (name Value) PESD1CAN))
      (pins
        (pin (num 1) (name K) (type passive))
        (pin (num 2) (name K) (type passive))
        (pin (num 3) (name O) (type passive))))
    (libpart (lib device) (part Q_NMOS_GSD)
      (description "Transistor N-MOSFETwith substrate diode (general)")
      (fields
        (field (name Reference) Q)
        (field (name Value) Q_NMOS_GSD))
      (pins
        (pin (num 1) (name G) (type input))
        (pin (num 2) (name S) (type passive))
        (pin (num 3) (name D) (type passive))))
    (libpart (lib device) (part Q_PMOS_GSD)
      (description "Transistor P-MOSFET with substrate diode (general)")
      (fields
        (field (name Reference) Q)
        (field (name Value) Q_PMOS_GSD))
      (pins
        (pin (num 1) (name G) (type input))
        (pin (num 2) (name S) (type passive))
        (pin (num 3) (name D) (type passive))))
    (libpart (lib device) (part R)
      (description Resistor)
      (footprints
        (fp R_*)
        (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 ESD_Protection) (part SP0502BAHT)
      (description "TVS Diode Array, 5.5V Standoff, 2 Channels, SOT-23 package")
      (docs http://www.littelfuse.com/~/media/files/littelfuse/technical%20resources/documents/data%20sheets/sp05xxba.pdf)
      (footprints
        (fp SOT?23*))
      (fields
        (field (name Reference) D)
        (field (name Value) SP0502BAHT)
        (field (name Footprint) TO_SOT_Packages_SMD:SOT-23))
      (pins
        (pin (num 1) (name K) (type input))
        (pin (num 2) (name K) (type input))
        (pin (num 3) (name A) (type input))))
    (libpart (lib stm32-cache) (part STM32F042C4Tx)
      (aliases
        (alias STM32F042C6Tx))
      (fields
        (field (name Reference) U)
        (field (name Value) STM32F042C4Tx)
        (field (name Footprint) LQFP48))
      (pins
        (pin (num 1) (name VBAT) (type power_in))
        (pin (num 2) (name PC13/RTC_OUT_ALARM/RTC_OUT_CALIB/RTC_TAMP1/RTC_TS/SYS_WKUP2) (type BiDi))
        (pin (num 3) (name PC14/RCC_OSC32_IN) (type BiDi))
        (pin (num 4) (name PC15/RCC_OSC32_OUT) (type BiDi))
        (pin (num 5) (name PF0/CRS_SYNC/I2C1_SDA/RCC_OSC_IN) (type input))
        (pin (num 6) (name PF1/I2C1_SCL/RCC_OSC_OUT) (type input))
        (pin (num 7) (name NRST) (type input))
        (pin (num 8) (name VSSA) (type power_in))
        (pin (num 9) (name VDDA) (type power_in))
        (pin (num 10) (name ADC_IN0/RTC_TAMP2/SYS_WKUP1/TIM2_CH1/TIM2_ETR/TSC_G1_IO1/USART2_CTS/PA0) (type BiDi))
        (pin (num 11) (name ADC_IN1/TIM2_CH2/TSC_G1_IO2/USART2_DE/USART2_RTS/PA1) (type BiDi))
        (pin (num 12) (name ADC_IN2/SYS_WKUP4/TIM2_CH3/TSC_G1_IO3/USART2_TX/PA2) (type BiDi))
        (pin (num 13) (name ADC_IN3/TIM2_CH4/TSC_G1_IO4/USART2_RX/PA3) (type BiDi))
        (pin (num 14) (name ADC_IN4/I2S1_WS/SPI1_NSS/TIM14_CH1/TSC_G2_IO1/USART2_CK/USB_OE/PA4) (type BiDi))
        (pin (num 15) (name ADC_IN5/CEC/I2S1_CK/SPI1_SCK/TIM2_CH1/TIM2_ETR/TSC_G2_IO2/PA5) (type BiDi))
        (pin (num 16) (name ADC_IN6/I2S1_MCK/SPI1_MISO/TIM16_CH1/TIM1_BKIN/TIM3_CH1/TSC_G2_IO3/PA6) (type BiDi))
        (pin (num 17) (name ADC_IN7/I2S1_SD/SPI1_MOSI/TIM14_CH1/TIM17_CH1/TIM1_CH1N/TIM3_CH2/TSC_G2_IO4/PA7) (type BiDi))
        (pin (num 18) (name PB0/ADC_IN8/TIM1_CH2N/TIM3_CH3/TSC_G3_IO2) (type BiDi))
        (pin (num 19) (name PB1/ADC_IN9/TIM14_CH1/TIM1_CH3N/TIM3_CH4/TSC_G3_IO3) (type BiDi))
        (pin (num 20) (name PB2/TSC_G3_IO4) (type BiDi))
        (pin (num 21) (name PB10/CEC/I2C1_SCL/SPI2_SCK/TIM2_CH3/TSC_SYNC) (type BiDi))
        (pin (num 22) (name PB11/I2C1_SDA/TIM2_CH4) (type BiDi))
        (pin (num 23) (name VSS) (type power_in))
        (pin (num 24) (name VDD) (type power_in))
        (pin (num 25) (name PB12/SPI2_NSS/TIM1_BKIN) (type BiDi))
        (pin (num 26) (name PB13/I2C1_SCL/SPI2_SCK/TIM1_CH1N) (type BiDi))
        (pin (num 27) (name PB14/I2C1_SDA/SPI2_MISO/TIM1_CH2N) (type BiDi))
        (pin (num 28) (name PB15/RTC_REFIN/SPI2_MOSI/SYS_WKUP7/TIM1_CH3N) (type BiDi))
        (pin (num 29) (name CRS_SYNC/RCC_MCO/TIM1_CH1/USART1_CK/PA8) (type BiDi))
        (pin (num 30) (name I2C1_SCL/TIM1_CH2/TSC_G4_IO1/USART1_TX/PA9) (type BiDi))
        (pin (num 31) (name I2C1_SDA/TIM17_BKIN/TIM1_CH3/TSC_G4_IO2/USART1_RX/PA10) (type BiDi))
        (pin (num 32) (name CAN_RX/I2C1_SCL/TIM1_CH4/TSC_G4_IO3/USART1_CTS/USB_DM/PA11) (type BiDi))
        (pin (num 33) (name CAN_TX/I2C1_SDA/TIM1_ETR/TSC_G4_IO4/USART1_DE/USART1_RTS/USB_DP/PA12) (type BiDi))
        (pin (num 34) (name IR_OUT/SYS_SWDIO/USB_OE/PA13) (type BiDi))
        (pin (num 35) (name VSS) (type power_in))
        (pin (num 36) (name VDDIO2) (type power_in))
        (pin (num 37) (name SYS_SWCLK/USART2_TX/PA14) (type BiDi))
        (pin (num 38) (name I2S1_WS/SPI1_NSS/TIM2_CH1/TIM2_ETR/USART2_RX/USB_OE/PA15) (type BiDi))
        (pin (num 39) (name PB3/I2S1_CK/SPI1_SCK/TIM2_CH2/TSC_G5_IO1) (type BiDi))
        (pin (num 40) (name PB4/I2S1_MCK/SPI1_MISO/TIM17_BKIN/TIM3_CH1/TSC_G5_IO2) (type BiDi))
        (pin (num 41) (name PB5/I2C1_SMBA/I2S1_SD/SPI1_MOSI/SYS_WKUP6/TIM16_BKIN/TIM3_CH2) (type BiDi))
        (pin (num 42) (name PB6/I2C1_SCL/TIM16_CH1N/TSC_G5_IO3/USART1_TX) (type BiDi))
        (pin (num 43) (name PB7/I2C1_SDA/TIM17_CH1N/TSC_G5_IO4/USART1_RX) (type BiDi))
        (pin (num 44) (name PF11) (type BiDi))
        (pin (num 45) (name PB8/CAN_RX/CEC/I2C1_SCL/TIM16_CH1/TSC_SYNC) (type BiDi))
        (pin (num 46) (name PB9/CAN_TX/I2C1_SDA/IR_OUT/SPI2_NSS/TIM17_CH1) (type BiDi))
        (pin (num 47) (name VSS) (type power_in))
        (pin (num 48) (name VDD) (type power_in))))
    (libpart (lib stm32-cache) (part SW_Push)
      (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 elements) (part USB6B1)
      (description "USB bus ESD protection")
      (footprints
        (fp SO8))
      (fields
        (field (name Reference) D)
        (field (name Value) USB6B1))
      (pins
        (pin (num 1) (name VCC) (type passive))
        (pin (num 2) (name I/O1) (type passive))
        (pin (num 3) (name I/O2) (type passive))
        (pin (num 4) (name GND) (type passive))
        (pin (num 5) (name GND) (type passive))
        (pin (num 6) (name I/O2) (type passive))
        (pin (num 7) (name I/O1) (type passive))
        (pin (num 8) (name VCC) (type passive))))
    (libpart (lib stm32-cache) (part USB_A-RESCUE-stm32)
      (footprints
        (fp USB*))
      (fields
        (field (name Reference) P)
        (field (name Value) USB_A-RESCUE-stm32))
      (pins
        (pin (num 1) (name VBUS) (type power_in))
        (pin (num 2) (name D-) (type passive))
        (pin (num 3) (name D+) (type passive))
        (pin (num 4) (name GND) (type power_in))
        (pin (num 5) (name shield) (type passive)))))
  (libraries
    (library (logical stm32-rescue)
      (uri stm32-rescue.lib))
    (library (logical device)
      (uri /usr/share/kicad/library/device.lib))
    (library (logical conn)
      (uri /usr/share/kicad/library/conn.lib))
    (library (logical interface)
      (uri /usr/share/kicad/library/interface.lib))
    (library (logical elements)
      (uri elements.lib))
    (library (logical ESD_Protection)
      (uri /usr/share/kicad/library/ESD_Protection.lib))
    (library (logical stm32-cache)
      (uri /home/eddy/Docs/SAO/ELECTRONICS/STM32/c8t6/canbus/kicad/stm32-cache.lib)))
  (nets
    (net (code 1) (name "Net-(J2-Pad9)")
      (node (ref J3) (pin 9))
      (node (ref J5) (pin 1))
      (node (ref Q1) (pin 3))
      (node (ref J2) (pin 9)))
    (net (code 2) (name "Net-(J3-Pad1)")
      (node (ref J3) (pin 1)))
    (net (code 3) (name "Net-(J3-Pad6)")
      (node (ref J3) (pin 6)))
    (net (code 4) (name "Net-(J3-Pad8)")
      (node (ref J3) (pin 8)))
    (net (code 5) (name "Net-(J3-Pad4)")
      (node (ref J3) (pin 4)))
    (net (code 6) (name /OUTP2)
      (node (ref J4) (pin 3))
      (node (ref Q3) (pin 3)))
    (net (code 7) (name +3V3)
      (node (ref C11) (pin 2))
      (node (ref C13) (pin 2))
      (node (ref C12) (pin 2))
      (node (ref U2) (pin 4))
      (node (ref U2) (pin 2))
      (node (ref R29) (pin 2))
      (node (ref U7) (pin 48))
      (node (ref SW2) (pin 2))
      (node (ref U7) (pin 36))
      (node (ref U7) (pin 9))
      (node (ref D2) (pin 2))
      (node (ref C14) (pin 2))
      (node (ref U7) (pin 24))
      (node (ref R28) (pin 2))
      (node (ref C6) (pin 2))
      (node (ref R30) (pin 2))
      (node (ref C2) (pin 1))
      (node (ref R13) (pin 1)))
    (net (code 8) (name "Net-(J4-Pad1)")
      (node (ref J4) (pin 1))
      (node (ref R13) (pin 2)))
    (net (code 9) (name "Net-(J3-Pad5)")
      (node (ref J3) (pin 5)))
    (net (code 10) (name "Net-(J2-Pad1)")
      (node (ref J2) (pin 1)))
    (net (code 11) (name "Net-(J2-Pad6)")
      (node (ref J2) (pin 6)))
    (net (code 12) (name "Net-(J2-Pad8)")
      (node (ref J2) (pin 8)))
    (net (code 13) (name "Net-(J2-Pad4)")
      (node (ref J2) (pin 4)))
    (net (code 14) (name "Net-(J2-Pad5)")
      (node (ref J2) (pin 5)))
    (net (code 15) (name GND)
      (node (ref Q1) (pin 1))
      (node (ref P12) (pin 1))
      (node (ref C1) (pin 2))
      (node (ref J1) (pin 5))
      (node (ref J2) (pin 3))
      (node (ref C15) (pin 2))
      (node (ref R5) (pin 1))
      (node (ref R4) (pin 2))
      (node (ref C14) (pin 1))
      (node (ref Q3) (pin 2))
      (node (ref U1) (pin 1))
      (node (ref Q4) (pin 2))
      (node (ref C11) (pin 1))
      (node (ref J5) (pin 2))
      (node (ref U7) (pin 47))
      (node (ref D1) (pin 3))
      (node (ref D3) (pin 3))
      (node (ref U2) (pin 1))
      (node (ref U4) (pin 2))
      (node (ref C12) (pin 1))
      (node (ref C13) (pin 1))
      (node (ref D7) (pin 5))
      (node (ref R8) (pin 2))
      (node (ref R27) (pin 2))
      (node (ref J1) (pin 1))
      (node (ref D9) (pin 2))
      (node (ref C5) (pin 2))
      (node (ref SW1) (pin 2))
      (node (ref D8) (pin 2))
      (node (ref R7) (pin 2))
      (node (ref J1) (pin 3))
      (node (ref J3) (pin 3))
      (node (ref C2) (pin 2))
      (node (ref P13) (pin 5))
      (node (ref U7) (pin 23))
      (node (ref U7) (pin 8))
      (node (ref U7) (pin 35))
      (node (ref J4) (pin 7))
      (node (ref Q2) (pin 2)))
    (net (code 16) (name /OUTP1)
      (node (ref J4) (pin 2))
      (node (ref Q2) (pin 3)))
    (net (code 17) (name /O1)
      (node (ref U7) (pin 20))
      (node (ref R1) (pin 1)))
    (net (code 18) (name "Net-(Q2-Pad1)")
      (node (ref Q2) (pin 1))
      (node (ref R1) (pin 2)))
    (net (code 19) (name +5V)
      (node (ref R6) (pin 1))
      (node (ref D4) (pin 1))
      (node (ref U1) (pin 2))
      (node (ref U1) (pin 4))
      (node (ref C1) (pin 1))
      (node (ref J6) (pin 1))
      (node (ref U4) (pin 3))
      (node (ref U2) (pin 3)))
    (net (code 20) (name "Net-(R35-Pad2)")
      (node (ref U7) (pin 33))
      (node (ref R35) (pin 2)))
    (net (code 21) (name "Net-(D7-Pad6)")
      (node (ref D7) (pin 6))
      (node (ref R35) (pin 1)))
    (net (code 22) (name "Net-(D7-Pad7)")
      (node (ref D7) (pin 7))
      (node (ref R34) (pin 1)))
    (net (code 23) (name "Net-(U7-Pad22)")
      (node (ref U7) (pin 22)))
    (net (code 24) (name "Net-(R34-Pad2)")
      (node (ref R34) (pin 2))
      (node (ref U7) (pin 32)))
    (net (code 25) (name "Net-(U7-Pad42)")
      (node (ref U7) (pin 42)))
    (net (code 26) (name "Net-(U7-Pad13)")
      (node (ref U7) (pin 13)))
    (net (code 27) (name "Net-(U7-Pad43)")
      (node (ref U7) (pin 43)))
    (net (code 28) (name "Net-(U7-Pad12)")
      (node (ref U7) (pin 12)))
    (net (code 29) (name "Net-(U7-Pad34)")
      (node (ref U7) (pin 34)))
    (net (code 30) (name /BOOT0)
      (node (ref C6) (pin 1))
      (node (ref SW2) (pin 1))
      (node (ref R27) (pin 1))
      (node (ref U7) (pin 44)))
    (net (code 31) (name "Net-(U7-Pad25)")
      (node (ref U7) (pin 25)))
    (net (code 32) (name "Net-(U7-Pad16)")
      (node (ref U7) (pin 16)))
    (net (code 33) (name "Net-(U7-Pad26)")
      (node (ref U7) (pin 26)))
    (net (code 34) (name "Net-(U7-Pad1)")
      (node (ref U7) (pin 1)))
    (net (code 35) (name /LED0)
      (node (ref D5) (pin 1))
      (node (ref U7) (pin 2)))
    (net (code 36) (name /LED1)
      (node (ref D6) (pin 1))
      (node (ref U7) (pin 3)))
    (net (code 37) (name "Net-(U7-Pad4)")
      (node (ref U7) (pin 4)))
    (net (code 38) (name "Net-(U7-Pad5)")
      (node (ref U7) (pin 5)))
    (net (code 39) (name "Net-(U7-Pad6)")
      (node (ref U7) (pin 6)))
    (net (code 40) (name /NRST)
      (node (ref SW1) (pin 1))
      (node (ref C5) (pin 1))
      (node (ref U7) (pin 7))
      (node (ref R28) (pin 1)))
    (net (code 41) (name /V12)
      (node (ref U7) (pin 10))
      (node (ref D8) (pin 1))
      (node (ref R4) (pin 1))
      (node (ref R3) (pin 2)))
    (net (code 42) (name "Net-(U7-Pad40)")
      (node (ref U7) (pin 40)))
    (net (code 43) (name /V5)
      (node (ref R6) (pin 2))
      (node (ref R7) (pin 1))
      (node (ref D9) (pin 1))
      (node (ref U7) (pin 11)))
    (net (code 44) (name "Net-(U7-Pad21)")
      (node (ref U7) (pin 21)))
    (net (code 45) (name /Rx)
      (node (ref U7) (pin 31))
      (node (ref P12) (pin 2)))
    (net (code 46) (name "Net-(U7-Pad41)")
      (node (ref U7) (pin 41)))
    (net (code 47) (name /Tx)
      (node (ref U7) (pin 30))
      (node (ref P12) (pin 3)))
    (net (code 48) (name "Net-(U7-Pad38)")
      (node (ref U7) (pin 38)))
    (net (code 49) (name "Net-(U7-Pad37)")
      (node (ref U7) (pin 37)))
    (net (code 50) (name "Net-(U7-Pad17)")
      (node (ref U7) (pin 17)))
    (net (code 51) (name /brdaddr0)
      (node (ref U7) (pin 27))
      (node (ref J1) (pin 2)))
    (net (code 52) (name /brdaddr1)
      (node (ref J1) (pin 4))
      (node (ref U7) (pin 28)))
    (net (code 53) (name /brdaddr2)
      (node (ref U7) (pin 29))
      (node (ref J1) (pin 6)))
    (net (code 54) (name "Net-(U7-Pad39)")
      (node (ref U7) (pin 39)))
    (net (code 55) (name "Net-(J4-Pad5)")
      (node (ref R11) (pin 2))
      (node (ref J4) (pin 5)))
    (net (code 56) (name "Net-(J4-Pad6)")
      (node (ref R12) (pin 2))
      (node (ref J4) (pin 6)))
    (net (code 57) (name /O2)
      (node (ref R2) (pin 1))
      (node (ref U7) (pin 19)))
    (net (code 58) (name "Net-(Q3-Pad1)")
      (node (ref R2) (pin 2))
      (node (ref Q3) (pin 1)))
    (net (code 59) (name /OUTP3)
      (node (ref Q4) (pin 3))
      (node (ref J4) (pin 4)))
    (net (code 60) (name /O3)
      (node (ref R10) (pin 1))
      (node (ref U7) (pin 18)))
    (net (code 61) (name "Net-(Q4-Pad1)")
      (node (ref R10) (pin 2))
      (node (ref Q4) (pin 1)))
    (net (code 62) (name /INP2)
      (node (ref R12) (pin 1))
      (node (ref U7) (pin 15))
      (node (ref D1) (pin 2)))
    (net (code 63) (name /INP1)
      (node (ref R11) (pin 1))
      (node (ref D1) (pin 1))
      (node (ref U7) (pin 14)))
    (net (code 64) (name "Net-(D3-Pad1)")
      (node (ref D3) (pin 1))
      (node (ref U4) (pin 7))
      (node (ref R14) (pin 2)))
    (net (code 65) (name "Net-(D2-Pad1)")
      (node (ref D2) (pin 1))
      (node (ref R5) (pin 2)))
    (net (code 66) (name "Net-(U4-Pad5)")
      (node (ref U4) (pin 5)))
    (net (code 67) (name /CAN_Rx)
      (node (ref U7) (pin 45))
      (node (ref U4) (pin 4)))
    (net (code 68) (name /CAN_Tx)
      (node (ref U7) (pin 46))
      (node (ref U4) (pin 1)))
    (net (code 69) (name "Net-(R8-Pad1)")
      (node (ref R8) (pin 1))
      (node (ref U4) (pin 8)))
    (net (code 70) (name "Net-(D7-Pad2)")
      (node (ref D7) (pin 2))
      (node (ref P13) (pin 2)))
    (net (code 71) (name "Net-(D7-Pad4)")
      (node (ref P13) (pin 4))
      (node (ref D7) (pin 4)))
    (net (code 72) (name "Net-(D7-Pad3)")
      (node (ref P13) (pin 3))
      (node (ref D7) (pin 3)))
    (net (code 73) (name "Net-(D7-Pad1)")
      (node (ref D7) (pin 1))
      (node (ref P13) (pin 1)))
    (net (code 74) (name /5Vusb)
      (node (ref D4) (pin 2))
      (node (ref D7) (pin 8)))
    (net (code 75) (name "Net-(D6-Pad2)")
      (node (ref D6) (pin 2))
      (node (ref R30) (pin 1)))
    (net (code 76) (name "Net-(D3-Pad2)")
      (node (ref U4) (pin 6))
      (node (ref D3) (pin 2))
      (node (ref R9) (pin 1))
      (node (ref J3) (pin 2))
      (node (ref J2) (pin 2)))
    (net (code 77) (name "Net-(JP1-Pad2)")
      (node (ref JP1) (pin 2))
      (node (ref R9) (pin 2)))
    (net (code 78) (name "Net-(J2-Pad7)")
      (node (ref R14) (pin 1))
      (node (ref JP1) (pin 1))
      (node (ref J2) (pin 7))
      (node (ref J3) (pin 7)))
    (net (code 79) (name "Net-(D5-Pad2)")
      (node (ref R29) (pin 1))
      (node (ref D5) (pin 2)))
    (net (code 80) (name "Net-(P17-Pad1)")
      (node (ref P17) (pin 1)))
    (net (code 81) (name /12Vin)
      (node (ref U1) (pin 3))
      (node (ref C15) (pin 1))
      (node (ref Q1) (pin 2))
      (node (ref R3) (pin 1)))
    (net (code 82) (name "Net-(P15-Pad1)")
      (node (ref P15) (pin 1)))
    (net (code 83) (name "Net-(P16-Pad1)")
      (node (ref P16) (pin 1)))
    (net (code 84) (name "Net-(P18-Pad1)")
      (node (ref P18) (pin 1)))))