Controller.s#2 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE eagle SYSTEM "eagle.dtd">
  3. <eagle version="7.2.0">
  4. <drawing>
  5. <settings>
  6. <setting alwaysvectorfont="no"/>
  7. <setting verticaltext="up"/>
  8. </settings>
  9. <grid distance="50" unitdist="mil" unit="mil" style="lines" multiple="1" display="yes" altdistance="0.01" altunitdist="inch" altunit="inch"/>
  10. <layers>
  11. <layer number="1" name="Top" color="4" fill="1" visible="no" active="no"/>
  12. <layer number="2" name="Route2" color="1" fill="3" visible="no" active="no"/>
  13. <layer number="3" name="Route3" color="4" fill="3" visible="no" active="no"/>
  14. <layer number="4" name="Route4" color="1" fill="4" visible="no" active="no"/>
  15. <layer number="5" name="Route5" color="4" fill="4" visible="no" active="no"/>
  16. <layer number="6" name="Route6" color="1" fill="8" visible="no" active="no"/>
  17. <layer number="7" name="Route7" color="4" fill="8" visible="no" active="no"/>
  18. <layer number="8" name="Route8" color="1" fill="2" visible="no" active="no"/>
  19. <layer number="9" name="Route9" color="4" fill="2" visible="no" active="no"/>
  20. <layer number="10" name="Route10" color="1" fill="7" visible="no" active="no"/>
  21. <layer number="11" name="Route11" color="4" fill="7" visible="no" active="no"/>
  22. <layer number="12" name="Route12" color="1" fill="5" visible="no" active="no"/>
  23. <layer number="13" name="Route13" color="4" fill="5" visible="no" active="no"/>
  24. <layer number="14" name="Route14" color="1" fill="6" visible="no" active="no"/>
  25. <layer number="15" name="Route15" color="4" fill="6" visible="no" active="no"/>
  26. <layer number="16" name="Bottom" color="1" fill="1" visible="no" active="no"/>
  27. <layer number="17" name="Pads" color="2" fill="1" visible="no" active="no"/>
  28. <layer number="18" name="Vias" color="2" fill="1" visible="no" active="no"/>
  29. <layer number="19" name="Unrouted" color="6" fill="1" visible="no" active="no"/>
  30. <layer number="20" name="Dimension" color="15" fill="1" visible="no" active="no"/>
  31. <layer number="21" name="tPlace" color="7" fill="1" visible="no" active="no"/>
  32. <layer number="22" name="bPlace" color="7" fill="1" visible="no" active="no"/>
  33. <layer number="23" name="tOrigins" color="15" fill="1" visible="no" active="no"/>
  34. <layer number="24" name="bOrigins" color="15" fill="1" visible="no" active="no"/>
  35. <layer number="25" name="tNames" color="7" fill="1" visible="no" active="no"/>
  36. <layer number="26" name="bNames" color="7" fill="1" visible="no" active="no"/>
  37. <layer number="27" name="tValues" color="7" fill="1" visible="no" active="no"/>
  38. <layer number="28" name="bValues" color="7" fill="1" visible="no" active="no"/>
  39. <layer number="29" name="tStop" color="7" fill="3" visible="no" active="no"/>
  40. <layer number="30" name="bStop" color="7" fill="6" visible="no" active="no"/>
  41. <layer number="31" name="tCream" color="7" fill="4" visible="no" active="no"/>
  42. <layer number="32" name="bCream" color="7" fill="5" visible="no" active="no"/>
  43. <layer number="33" name="tFinish" color="6" fill="3" visible="no" active="no"/>
  44. <layer number="34" name="bFinish" color="6" fill="6" visible="no" active="no"/>
  45. <layer number="35" name="tGlue" color="7" fill="4" visible="no" active="no"/>
  46. <layer number="36" name="bGlue" color="7" fill="5" visible="no" active="no"/>
  47. <layer number="37" name="tTest" color="7" fill="1" visible="no" active="no"/>
  48. <layer number="38" name="bTest" color="7" fill="1" visible="no" active="no"/>
  49. <layer number="39" name="tKeepout" color="4" fill="11" visible="no" active="no"/>
  50. <layer number="40" name="bKeepout" color="1" fill="11" visible="no" active="no"/>
  51. <layer number="41" name="tRestrict" color="4" fill="10" visible="no" active="no"/>
  52. <layer number="42" name="bRestrict" color="1" fill="10" visible="no" active="no"/>
  53. <layer number="43" name="vRestrict" color="2" fill="10" visible="no" active="no"/>
  54. <layer number="44" name="Drills" color="7" fill="1" visible="no" active="no"/>
  55. <layer number="45" name="Holes" color="7" fill="1" visible="no" active="no"/>
  56. <layer number="46" name="Milling" color="3" fill="1" visible="no" active="no"/>
  57. <layer number="47" name="Measures" color="7" fill="1" visible="no" active="no"/>
  58. <layer number="48" name="Document" color="7" fill="1" visible="no" active="no"/>
  59. <layer number="49" name="Reference" color="7" fill="1" visible="no" active="no"/>
  60. <layer number="51" name="tDocu" color="7" fill="1" visible="no" active="no"/>
  61. <layer number="52" name="bDocu" color="7" fill="1" visible="no" active="no"/>
  62. <layer number="90" name="Modules" color="5" fill="1" visible="yes" active="yes"/>
  63. <layer number="91" name="Nets" color="2" fill="1" visible="yes" active="yes"/>
  64. <layer number="92" name="Busses" color="1" fill="1" visible="yes" active="yes"/>
  65. <layer number="93" name="Pins" color="2" fill="1" visible="no" active="yes"/>
  66. <layer number="94" name="Symbols" color="4" fill="1" visible="yes" active="yes"/>
  67. <layer number="95" name="Names" color="7" fill="1" visible="yes" active="yes"/>
  68. <layer number="96" name="Values" color="7" fill="1" visible="yes" active="yes"/>
  69. <layer number="97" name="Info" color="7" fill="1" visible="yes" active="yes"/>
  70. <layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/>
  71. </layers>
  72. <schematic xreflabel="%F%N/%S.%C%R" xrefpart="/%S.%C%R">
  73. <libraries>
  74. <library name="stm8s103">
  75. <description>&lt;b&gt;STM8S103 in TSSOP-20, SO-20 and LQFP32&lt;/b&gt;
  76. &lt;br /&gt;
  77. Source:
  78. &lt;a href="http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00226640.pdf"&gt;STM8S103K3, STM8S103F3, STM8S103F2 Datasheet&lt;/a&gt;</description>
  79. <packages>
  80. <package name="TSSOP20">
  81. <description>&lt;b&gt;Thin Shrink Small Outline Plastic 20&lt;/b&gt;&lt;p&gt;
  82. MAX3223-MAX3243.pdf</description>
  83. <wire x1="-3.1646" y1="-2.2828" x2="3.1646" y2="-2.2828" width="0.1524" layer="21"/>
  84. <wire x1="3.1646" y1="2.2828" x2="3.1646" y2="-2.2828" width="0.1524" layer="21"/>
  85. <wire x1="3.1646" y1="2.2828" x2="-3.1646" y2="2.2828" width="0.1524" layer="21"/>
  86. <wire x1="-3.1646" y1="-2.2828" x2="-3.1646" y2="2.2828" width="0.1524" layer="21"/>
  87. <wire x1="-2.936" y1="-2.0542" x2="2.936" y2="-2.0542" width="0.0508" layer="21"/>
  88. <wire x1="2.936" y1="2.0542" x2="2.936" y2="-2.0542" width="0.0508" layer="21"/>
  89. <wire x1="2.936" y1="2.0542" x2="-2.936" y2="2.0542" width="0.0508" layer="21"/>
  90. <wire x1="-2.936" y1="-2.0542" x2="-2.936" y2="2.0542" width="0.0508" layer="21"/>
  91. <circle x="-2.2756" y="-1.2192" radius="0.4572" width="0.1524" layer="21"/>
  92. <smd name="1" x="-2.925" y="-2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  93. <smd name="2" x="-2.275" y="-2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  94. <smd name="3" x="-1.625" y="-2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  95. <smd name="4" x="-0.975" y="-2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  96. <smd name="5" x="-0.325" y="-2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  97. <smd name="6" x="0.325" y="-2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  98. <smd name="7" x="0.975" y="-2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  99. <smd name="8" x="1.625" y="-2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  100. <smd name="9" x="2.275" y="-2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  101. <smd name="10" x="2.925" y="-2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  102. <smd name="11" x="2.925" y="2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  103. <smd name="12" x="2.275" y="2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  104. <smd name="13" x="1.625" y="2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  105. <smd name="14" x="0.975" y="2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  106. <smd name="15" x="0.325" y="2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  107. <smd name="16" x="-0.325" y="2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  108. <smd name="17" x="-0.975" y="2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  109. <smd name="18" x="-1.625" y="2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  110. <smd name="19" x="-2.275" y="2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  111. <smd name="20" x="-2.925" y="2.9178" dx="0.3048" dy="0.9906" layer="1"/>
  112. <text x="-3.5456" y="-2.0828" size="1.016" layer="25" ratio="10" rot="R90">&gt;NAME</text>
  113. <text x="4.5362" y="-2.0828" size="1.016" layer="27" ratio="10" rot="R90">&gt;VALUE</text>
  114. <rectangle x1="-3.0266" y1="-3.121" x2="-2.8234" y2="-2.2828" layer="51"/>
  115. <rectangle x1="-2.3766" y1="-3.121" x2="-2.1734" y2="-2.2828" layer="51"/>
  116. <rectangle x1="-1.7266" y1="-3.121" x2="-1.5234" y2="-2.2828" layer="51"/>
  117. <rectangle x1="-1.0766" y1="-3.121" x2="-0.8734" y2="-2.2828" layer="51"/>
  118. <rectangle x1="-0.4266" y1="-3.121" x2="-0.2234" y2="-2.2828" layer="51"/>
  119. <rectangle x1="0.2234" y1="-3.121" x2="0.4266" y2="-2.2828" layer="51"/>
  120. <rectangle x1="0.8734" y1="-3.121" x2="1.0766" y2="-2.2828" layer="51"/>
  121. <rectangle x1="1.5234" y1="-3.121" x2="1.7266" y2="-2.2828" layer="51"/>
  122. <rectangle x1="2.1734" y1="-3.121" x2="2.3766" y2="-2.2828" layer="51"/>
  123. <rectangle x1="2.8234" y1="-3.121" x2="3.0266" y2="-2.2828" layer="51"/>
  124. <rectangle x1="2.8234" y1="2.2828" x2="3.0266" y2="3.121" layer="51"/>
  125. <rectangle x1="2.1734" y1="2.2828" x2="2.3766" y2="3.121" layer="51"/>
  126. <rectangle x1="1.5234" y1="2.2828" x2="1.7266" y2="3.121" layer="51"/>
  127. <rectangle x1="0.8734" y1="2.2828" x2="1.0766" y2="3.121" layer="51"/>
  128. <rectangle x1="0.2234" y1="2.2828" x2="0.4266" y2="3.121" layer="51"/>
  129. <rectangle x1="-0.4266" y1="2.2828" x2="-0.2234" y2="3.121" layer="51"/>
  130. <rectangle x1="-1.0766" y1="2.2828" x2="-0.8734" y2="3.121" layer="51"/>
  131. <rectangle x1="-1.7266" y1="2.2828" x2="-1.5234" y2="3.121" layer="51"/>
  132. <rectangle x1="-2.3766" y1="2.2828" x2="-2.1734" y2="3.121" layer="51"/>
  133. <rectangle x1="-3.0266" y1="2.2828" x2="-2.8234" y2="3.121" layer="51"/>
  134. </package>
  135. <package name="SO20W">
  136. <description>&lt;b&gt;SMALL OUTLINE INTEGRATED CIRCUIT&lt;/b&gt;&lt;p&gt;
  137. wide body 7.5 mm/JEDEC MS-013AC</description>
  138. <wire x1="-6.895" y1="5.9" x2="6.895" y2="5.9" width="0.1998" layer="39"/>
  139. <wire x1="6.895" y1="-5.9" x2="-6.895" y2="-5.9" width="0.1998" layer="39"/>
  140. <wire x1="-6.895" y1="-5.9" x2="-6.895" y2="5.9" width="0.1998" layer="39"/>
  141. <wire x1="6.46" y1="-3.7" x2="-6.46" y2="-3.7" width="0.2032" layer="51"/>
  142. <wire x1="-6.46" y1="-3.7" x2="-6.46" y2="-3.2" width="0.2032" layer="51"/>
  143. <wire x1="-6.46" y1="-3.2" x2="-6.46" y2="3.7" width="0.2032" layer="51"/>
  144. <wire x1="-6.46" y1="3.7" x2="6.46" y2="3.7" width="0.2032" layer="51"/>
  145. <wire x1="6.46" y1="-3.2" x2="-6.46" y2="-3.2" width="0.2032" layer="51"/>
  146. <wire x1="6.46" y1="3.7" x2="6.46" y2="-3.2" width="0.2032" layer="51"/>
  147. <wire x1="6.46" y1="-3.2" x2="6.46" y2="-3.7" width="0.2032" layer="51"/>
  148. <wire x1="6.895" y1="5.9" x2="6.895" y2="-5.9" width="0.1998" layer="39"/>
  149. <smd name="2" x="-4.445" y="-4.6" dx="0.6" dy="2.2" layer="1"/>
  150. <smd name="13" x="3.175" y="4.6" dx="0.6" dy="2.2" layer="1"/>
  151. <smd name="1" x="-5.715" y="-4.6" dx="0.6" dy="2.2" layer="1"/>
  152. <smd name="3" x="-3.175" y="-4.6" dx="0.6" dy="2.2" layer="1"/>
  153. <smd name="4" x="-1.905" y="-4.6" dx="0.6" dy="2.2" layer="1"/>
  154. <smd name="14" x="1.905" y="4.6" dx="0.6" dy="2.2" layer="1"/>
  155. <smd name="12" x="4.445" y="4.6" dx="0.6" dy="2.2" layer="1"/>
  156. <smd name="11" x="5.715" y="4.6" dx="0.6" dy="2.2" layer="1"/>
  157. <smd name="6" x="0.635" y="-4.6" dx="0.6" dy="2.2" layer="1"/>
  158. <smd name="9" x="4.445" y="-4.6" dx="0.6" dy="2.2" layer="1"/>
  159. <smd name="5" x="-0.635" y="-4.6" dx="0.6" dy="2.2" layer="1"/>
  160. <smd name="7" x="1.905" y="-4.6" dx="0.6" dy="2.2" layer="1"/>
  161. <smd name="10" x="5.715" y="-4.6" dx="0.6" dy="2.2" layer="1"/>
  162. <smd name="8" x="3.175" y="-4.6" dx="0.6" dy="2.2" layer="1"/>
  163. <smd name="15" x="0.635" y="4.6" dx="0.6" dy="2.2" layer="1"/>
  164. <smd name="16" x="-0.635" y="4.6" dx="0.6" dy="2.2" layer="1"/>
  165. <smd name="17" x="-1.905" y="4.6" dx="0.6" dy="2.2" layer="1"/>
  166. <smd name="18" x="-3.175" y="4.6" dx="0.6" dy="2.2" layer="1"/>
  167. <smd name="19" x="-4.445" y="4.6" dx="0.6" dy="2.2" layer="1"/>
  168. <smd name="20" x="-5.715" y="4.6" dx="0.6" dy="2.2" layer="1"/>
  169. <text x="-5.715" y="1.27" size="1.27" layer="25">&gt;NAME</text>
  170. <text x="-5.715" y="-2.54" size="1.27" layer="27">&gt;VALUE</text>
  171. <rectangle x1="-5.9601" y1="-5.32" x2="-5.4699" y2="-3.8001" layer="51"/>
  172. <rectangle x1="-4.6901" y1="-5.32" x2="-4.1999" y2="-3.8001" layer="51"/>
  173. <rectangle x1="-3.4201" y1="-5.32" x2="-2.9299" y2="-3.8001" layer="51"/>
  174. <rectangle x1="-2.1501" y1="-5.32" x2="-1.6599" y2="-3.8001" layer="51"/>
  175. <rectangle x1="-0.8801" y1="-5.32" x2="-0.3899" y2="-3.8001" layer="51"/>
  176. <rectangle x1="0.3899" y1="-5.32" x2="0.8801" y2="-3.8001" layer="51"/>
  177. <rectangle x1="1.6599" y1="-5.32" x2="2.1501" y2="-3.8001" layer="51"/>
  178. <rectangle x1="2.9299" y1="-5.32" x2="3.4201" y2="-3.8001" layer="51"/>
  179. <rectangle x1="4.1999" y1="-5.32" x2="4.6901" y2="-3.8001" layer="51"/>
  180. <rectangle x1="5.4699" y1="-5.32" x2="5.9601" y2="-3.8001" layer="51"/>
  181. <rectangle x1="5.4699" y1="3.8001" x2="5.9601" y2="5.32" layer="51"/>
  182. <rectangle x1="4.1999" y1="3.8001" x2="4.6901" y2="5.32" layer="51"/>
  183. <rectangle x1="2.9299" y1="3.8001" x2="3.4201" y2="5.32" layer="51"/>
  184. <rectangle x1="1.6599" y1="3.8001" x2="2.1501" y2="5.32" layer="51"/>
  185. <rectangle x1="0.3899" y1="3.8001" x2="0.8801" y2="5.32" layer="51"/>
  186. <rectangle x1="-0.8801" y1="3.8001" x2="-0.3899" y2="5.32" layer="51"/>
  187. <rectangle x1="-2.1501" y1="3.8001" x2="-1.6599" y2="5.32" layer="51"/>
  188. <rectangle x1="-3.4201" y1="3.8001" x2="-2.9299" y2="5.32" layer="51"/>
  189. <rectangle x1="-4.6901" y1="3.8001" x2="-4.1999" y2="5.32" layer="51"/>
  190. <rectangle x1="-5.9601" y1="3.8001" x2="-5.4699" y2="5.32" layer="51"/>
  191. </package>
  192. </packages>
  193. <symbols>
  194. <symbol name="STM8S103F">
  195. <wire x1="-33.02" y1="27.94" x2="35.56" y2="27.94" width="0.254" layer="94"/>
  196. <wire x1="35.56" y1="27.94" x2="35.56" y2="-30.48" width="0.254" layer="94"/>
  197. <wire x1="35.56" y1="-30.48" x2="-33.02" y2="-30.48" width="0.254" layer="94"/>
  198. <wire x1="-33.02" y1="-30.48" x2="-33.02" y2="27.94" width="0.254" layer="94"/>
  199. <pin name="NRST" x="-38.1" y="22.86" length="middle" function="dot"/>
  200. <pin name="VDDA" x="-38.1" y="17.78" length="middle" direction="pwr"/>
  201. <pin name="PA0/USART1_CTS/ADC_IN0" x="-38.1" y="15.24" length="middle"/>
  202. <pin name="PA1/USART1_RTS/ADC_IN1" x="-38.1" y="7.62" length="middle"/>
  203. <pin name="PA3/USART1_RX/ADC_IN3" x="-38.1" y="5.08" length="middle"/>
  204. <pin name="PA2/USART1_TX/ADC_IN2" x="-38.1" y="-2.54" length="middle"/>
  205. <pin name="PA10" x="40.64" y="25.4" length="middle" rot="R180"/>
  206. <pin name="PA13/SWDIO" x="40.64" y="22.86" length="middle" rot="R180"/>
  207. <pin name="PA14/SWD_CLK" x="40.64" y="20.32" length="middle" rot="R180"/>
  208. <pin name="BOOT0" x="40.64" y="17.78" length="middle" rot="R180"/>
  209. <pin name="PF0-OSC_IN" x="40.64" y="15.24" length="middle" function="clk" rot="R180"/>
  210. <pin name="PF1-OSC_OUT" x="40.64" y="12.7" length="middle" function="clk" rot="R180"/>
  211. <pin name="PA4/SPI1_NSS/ADC_IN4" x="40.64" y="5.08" length="middle" rot="R180"/>
  212. <pin name="PA6/SPI_MISO/ADC_IN6" x="40.64" y="-2.54" length="middle" rot="R180"/>
  213. <pin name="PA5/SPI1_SCK/ADC_IN5" x="40.64" y="-5.08" length="middle" rot="R180"/>
  214. <pin name="PA7/SPI_MOSI/ADC_IN7" x="40.64" y="-15.24" length="middle" rot="R180"/>
  215. <pin name="PB0/ADC_IN8" x="40.64" y="-17.78" length="middle" rot="R180"/>
  216. <pin name="VSS" x="40.64" y="-20.32" length="middle" direction="pwr" rot="R180"/>
  217. <pin name="VDD" x="40.64" y="-22.86" length="middle" direction="pwr" rot="R180"/>
  218. <pin name="PA9" x="40.64" y="-25.4" length="middle" rot="R180"/>
  219. <text x="-33.02" y="27.94" size="1.27" layer="96">&gt;VALUE</text>
  220. <text x="-33.02" y="30.48" size="1.27" layer="95">&gt;NAME</text>
  221. </symbol>
  222. </symbols>
  223. <devicesets>
  224. <deviceset name="STM8S103F*" prefix="IC">
  225. <description>STM8S103F*</description>
  226. <gates>
  227. <gate name="G$1" symbol="STM8S103F" x="0" y="0"/>
  228. </gates>
  229. <devices>
  230. <device name="P" package="TSSOP20">
  231. <connects>
  232. <connect gate="G$1" pin="BOOT0" pad="1"/>
  233. <connect gate="G$1" pin="NRST" pad="4"/>
  234. <connect gate="G$1" pin="PA0/USART1_CTS/ADC_IN0" pad="6"/>
  235. <connect gate="G$1" pin="PA1/USART1_RTS/ADC_IN1" pad="7"/>
  236. <connect gate="G$1" pin="PA10" pad="18"/>
  237. <connect gate="G$1" pin="PA13/SWDIO" pad="19"/>
  238. <connect gate="G$1" pin="PA14/SWD_CLK" pad="20"/>
  239. <connect gate="G$1" pin="PA2/USART1_TX/ADC_IN2" pad="8"/>
  240. <connect gate="G$1" pin="PA3/USART1_RX/ADC_IN3" pad="9"/>
  241. <connect gate="G$1" pin="PA4/SPI1_NSS/ADC_IN4" pad="10"/>
  242. <connect gate="G$1" pin="PA5/SPI1_SCK/ADC_IN5" pad="11"/>
  243. <connect gate="G$1" pin="PA6/SPI_MISO/ADC_IN6" pad="12"/>
  244. <connect gate="G$1" pin="PA7/SPI_MOSI/ADC_IN7" pad="13"/>
  245. <connect gate="G$1" pin="PA9" pad="17"/>
  246. <connect gate="G$1" pin="PB0/ADC_IN8" pad="14"/>
  247. <connect gate="G$1" pin="PF0-OSC_IN" pad="2"/>
  248. <connect gate="G$1" pin="PF1-OSC_OUT" pad="3"/>
  249. <connect gate="G$1" pin="VDD" pad="16"/>
  250. <connect gate="G$1" pin="VDDA" pad="5"/>
  251. <connect gate="G$1" pin="VSS" pad="15"/>
  252. </connects>
  253. <technologies>
  254. <technology name=""/>
  255. </technologies>
  256. </device>
  257. <device name="M" package="SO20W">
  258. <connects>
  259. <connect gate="G$1" pin="BOOT0" pad="1"/>
  260. <connect gate="G$1" pin="NRST" pad="4"/>
  261. <connect gate="G$1" pin="PA0/USART1_CTS/ADC_IN0" pad="6"/>
  262. <connect gate="G$1" pin="PA1/USART1_RTS/ADC_IN1" pad="7"/>
  263. <connect gate="G$1" pin="PA10" pad="18"/>
  264. <connect gate="G$1" pin="PA13/SWDIO" pad="19"/>
  265. <connect gate="G$1" pin="PA14/SWD_CLK" pad="20"/>
  266. <connect gate="G$1" pin="PA2/USART1_TX/ADC_IN2" pad="8"/>
  267. <connect gate="G$1" pin="PA3/USART1_RX/ADC_IN3" pad="9"/>
  268. <connect gate="G$1" pin="PA4/SPI1_NSS/ADC_IN4" pad="10"/>
  269. <connect gate="G$1" pin="PA5/SPI1_SCK/ADC_IN5" pad="11"/>
  270. <connect gate="G$1" pin="PA6/SPI_MISO/ADC_IN6" pad="12"/>
  271. <connect gate="G$1" pin="PA7/SPI_MOSI/ADC_IN7" pad="13"/>
  272. <connect gate="G$1" pin="PA9" pad="17"/>
  273. <connect gate="G$1" pin="PB0/ADC_IN8" pad="14"/>
  274. <connect gate="G$1" pin="PF0-OSC_IN" pad="2"/>
  275. <connect gate="G$1" pin="PF1-OSC_OUT" pad="3"/>
  276. <connect gate="G$1" pin="VDD" pad="16"/>
  277. <connect gate="G$1" pin="VDDA" pad="5"/>
  278. <connect gate="G$1" pin="VSS" pad="15"/>
  279. </connects>
  280. <technologies>
  281. <technology name=""/>
  282. </technologies>
  283. </device>
  284. </devices>
  285. </deviceset>
  286. </devicesets>
  287. </library>
  288. <library name="pinhead">
  289. <description>&lt;b&gt;Pin Header Connectors&lt;/b&gt;&lt;p&gt;
  290. &lt;author&gt;Created by librarian@cadsoft.de&lt;/author&gt;</description>
  291. <packages>
  292. <package name="1X10">
  293. <description>&lt;b&gt;PIN HEADER&lt;/b&gt;</description>
  294. <wire x1="7.62" y1="0.635" x2="8.255" y2="1.27" width="0.1524" layer="21"/>
  295. <wire x1="8.255" y1="1.27" x2="9.525" y2="1.27" width="0.1524" layer="21"/>
  296. <wire x1="9.525" y1="1.27" x2="10.16" y2="0.635" width="0.1524" layer="21"/>
  297. <wire x1="10.16" y1="0.635" x2="10.16" y2="-0.635" width="0.1524" layer="21"/>
  298. <wire x1="10.16" y1="-0.635" x2="9.525" y2="-1.27" width="0.1524" layer="21"/>
  299. <wire x1="9.525" y1="-1.27" x2="8.255" y2="-1.27" width="0.1524" layer="21"/>
  300. <wire x1="8.255" y1="-1.27" x2="7.62" y2="-0.635" width="0.1524" layer="21"/>
  301. <wire x1="3.175" y1="1.27" x2="4.445" y2="1.27" width="0.1524" layer="21"/>
  302. <wire x1="4.445" y1="1.27" x2="5.08" y2="0.635" width="0.1524" layer="21"/>
  303. <wire x1="5.08" y1="0.635" x2="5.08" y2="-0.635" width="0.1524" layer="21"/>
  304. <wire x1="5.08" y1="-0.635" x2="4.445" y2="-1.27" width="0.1524" layer="21"/>
  305. <wire x1="5.08" y1="0.635" x2="5.715" y2="1.27" width="0.1524" layer="21"/>
  306. <wire x1="5.715" y1="1.27" x2="6.985" y2="1.27" width="0.1524" layer="21"/>
  307. <wire x1="6.985" y1="1.27" x2="7.62" y2="0.635" width="0.1524" layer="21"/>
  308. <wire x1="7.62" y1="0.635" x2="7.62" y2="-0.635" width="0.1524" layer="21"/>
  309. <wire x1="7.62" y1="-0.635" x2="6.985" y2="-1.27" width="0.1524" layer="21"/>
  310. <wire x1="6.985" y1="-1.27" x2="5.715" y2="-1.27" width="0.1524" layer="21"/>
  311. <wire x1="5.715" y1="-1.27" x2="5.08" y2="-0.635" width="0.1524" layer="21"/>
  312. <wire x1="0" y1="0.635" x2="0.635" y2="1.27" width="0.1524" layer="21"/>
  313. <wire x1="0.635" y1="1.27" x2="1.905" y2="1.27" width="0.1524" layer="21"/>
  314. <wire x1="1.905" y1="1.27" x2="2.54" y2="0.635" width="0.1524" layer="21"/>
  315. <wire x1="2.54" y1="0.635" x2="2.54" y2="-0.635" width="0.1524" layer="21"/>
  316. <wire x1="2.54" y1="-0.635" x2="1.905" y2="-1.27" width="0.1524" layer="21"/>
  317. <wire x1="1.905" y1="-1.27" x2="0.635" y2="-1.27" width="0.1524" layer="21"/>
  318. <wire x1="0.635" y1="-1.27" x2="0" y2="-0.635" width="0.1524" layer="21"/>
  319. <wire x1="3.175" y1="1.27" x2="2.54" y2="0.635" width="0.1524" layer="21"/>
  320. <wire x1="2.54" y1="-0.635" x2="3.175" y2="-1.27" width="0.1524" layer="21"/>
  321. <wire x1="4.445" y1="-1.27" x2="3.175" y2="-1.27" width="0.1524" layer="21"/>
  322. <wire x1="-4.445" y1="1.27" x2="-3.175" y2="1.27" width="0.1524" layer="21"/>
  323. <wire x1="-3.175" y1="1.27" x2="-2.54" y2="0.635" width="0.1524" layer="21"/>
  324. <wire x1="-2.54" y1="0.635" x2="-2.54" y2="-0.635" width="0.1524" layer="21"/>
  325. <wire x1="-2.54" y1="-0.635" x2="-3.175" y2="-1.27" width="0.1524" layer="21"/>
  326. <wire x1="-2.54" y1="0.635" x2="-1.905" y2="1.27" width="0.1524" layer="21"/>
  327. <wire x1="-1.905" y1="1.27" x2="-0.635" y2="1.27" width="0.1524" layer="21"/>
  328. <wire x1="-0.635" y1="1.27" x2="0" y2="0.635" width="0.1524" layer="21"/>
  329. <wire x1="0" y1="0.635" x2="0" y2="-0.635" width="0.1524" layer="21"/>
  330. <wire x1="0" y1="-0.635" x2="-0.635" y2="-1.27" width="0.1524" layer="21"/>
  331. <wire x1="-0.635" y1="-1.27" x2="-1.905" y2="-1.27" width="0.1524" layer="21"/>
  332. <wire x1="-1.905" y1="-1.27" x2="-2.54" y2="-0.635" width="0.1524" layer="21"/>
  333. <wire x1="-7.62" y1="0.635" x2="-6.985" y2="1.27" width="0.1524" layer="21"/>
  334. <wire x1="-6.985" y1="1.27" x2="-5.715" y2="1.27" width="0.1524" layer="21"/>
  335. <wire x1="-5.715" y1="1.27" x2="-5.08" y2="0.635" width="0.1524" layer="21"/>
  336. <wire x1="-5.08" y1="0.635" x2="-5.08" y2="-0.635" width="0.1524" layer="21"/>
  337. <wire x1="-5.08" y1="-0.635" x2="-5.715" y2="-1.27" width="0.1524" layer="21"/>
  338. <wire x1="-5.715" y1="-1.27" x2="-6.985" y2="-1.27" width="0.1524" layer="21"/>
  339. <wire x1="-6.985" y1="-1.27" x2="-7.62" y2="-0.635" width="0.1524" layer="21"/>
  340. <wire x1="-4.445" y1="1.27" x2="-5.08" y2="0.635" width="0.1524" layer="21"/>
  341. <wire x1="-5.08" y1="-0.635" x2="-4.445" y2="-1.27" width="0.1524" layer="21"/>
  342. <wire x1="-3.175" y1="-1.27" x2="-4.445" y2="-1.27" width="0.1524" layer="21"/>
  343. <wire x1="-12.065" y1="1.27" x2="-10.795" y2="1.27" width="0.1524" layer="21"/>
  344. <wire x1="-10.795" y1="1.27" x2="-10.16" y2="0.635" width="0.1524" layer="21"/>
  345. <wire x1="-10.16" y1="0.635" x2="-10.16" y2="-0.635" width="0.1524" layer="21"/>
  346. <wire x1="-10.16" y1="-0.635" x2="-10.795" y2="-1.27" width="0.1524" layer="21"/>
  347. <wire x1="-10.16" y1="0.635" x2="-9.525" y2="1.27" width="0.1524" layer="21"/>
  348. <wire x1="-9.525" y1="1.27" x2="-8.255" y2="1.27" width="0.1524" layer="21"/>
  349. <wire x1="-8.255" y1="1.27" x2="-7.62" y2="0.635" width="0.1524" layer="21"/>
  350. <wire x1="-7.62" y1="0.635" x2="-7.62" y2="-0.635" width="0.1524" layer="21"/>
  351. <wire x1="-7.62" y1="-0.635" x2="-8.255" y2="-1.27" width="0.1524" layer="21"/>
  352. <wire x1="-8.255" y1="-1.27" x2="-9.525" y2="-1.27" width="0.1524" layer="21"/>
  353. <wire x1="-9.525" y1="-1.27" x2="-10.16" y2="-0.635" width="0.1524" layer="21"/>
  354. <wire x1="-12.7" y1="0.635" x2="-12.7" y2="-0.635" width="0.1524" layer="21"/>
  355. <wire x1="-12.065" y1="1.27" x2="-12.7" y2="0.635" width="0.1524" layer="21"/>
  356. <wire x1="-12.7" y1="-0.635" x2="-12.065" y2="-1.27" width="0.1524" layer="21"/>
  357. <wire x1="-10.795" y1="-1.27" x2="-12.065" y2="-1.27" width="0.1524" layer="21"/>
  358. <wire x1="10.795" y1="1.27" x2="12.065" y2="1.27" width="0.1524" layer="21"/>
  359. <wire x1="12.065" y1="1.27" x2="12.7" y2="0.635" width="0.1524" layer="21"/>
  360. <wire x1="12.7" y1="0.635" x2="12.7" y2="-0.635" width="0.1524" layer="21"/>
  361. <wire x1="12.7" y1="-0.635" x2="12.065" y2="-1.27" width="0.1524" layer="21"/>
  362. <wire x1="10.795" y1="1.27" x2="10.16" y2="0.635" width="0.1524" layer="21"/>
  363. <wire x1="10.16" y1="-0.635" x2="10.795" y2="-1.27" width="0.1524" layer="21"/>
  364. <wire x1="12.065" y1="-1.27" x2="10.795" y2="-1.27" width="0.1524" layer="21"/>
  365. <pad name="1" x="-11.43" y="0" drill="1.016" shape="long" rot="R90"/>
  366. <pad name="2" x="-8.89" y="0" drill="1.016" shape="long" rot="R90"/>
  367. <pad name="3" x="-6.35" y="0" drill="1.016" shape="long" rot="R90"/>
  368. <pad name="4" x="-3.81" y="0" drill="1.016" shape="long" rot="R90"/>
  369. <pad name="5" x="-1.27" y="0" drill="1.016" shape="long" rot="R90"/>
  370. <pad name="6" x="1.27" y="0" drill="1.016" shape="long" rot="R90"/>
  371. <pad name="7" x="3.81" y="0" drill="1.016" shape="long" rot="R90"/>
  372. <pad name="8" x="6.35" y="0" drill="1.016" shape="long" rot="R90"/>
  373. <pad name="9" x="8.89" y="0" drill="1.016" shape="long" rot="R90"/>
  374. <pad name="10" x="11.43" y="0" drill="1.016" shape="long" rot="R90"/>
  375. <text x="-12.7762" y="1.8288" size="1.27" layer="25" ratio="10">&gt;NAME</text>
  376. <text x="-12.7" y="-3.175" size="1.27" layer="27">&gt;VALUE</text>
  377. <rectangle x1="8.636" y1="-0.254" x2="9.144" y2="0.254" layer="51"/>
  378. <rectangle x1="6.096" y1="-0.254" x2="6.604" y2="0.254" layer="51"/>
  379. <rectangle x1="3.556" y1="-0.254" x2="4.064" y2="0.254" layer="51"/>
  380. <rectangle x1="1.016" y1="-0.254" x2="1.524" y2="0.254" layer="51"/>
  381. <rectangle x1="-1.524" y1="-0.254" x2="-1.016" y2="0.254" layer="51"/>
  382. <rectangle x1="-4.064" y1="-0.254" x2="-3.556" y2="0.254" layer="51"/>
  383. <rectangle x1="-6.604" y1="-0.254" x2="-6.096" y2="0.254" layer="51"/>
  384. <rectangle x1="-9.144" y1="-0.254" x2="-8.636" y2="0.254" layer="51"/>
  385. <rectangle x1="-11.684" y1="-0.254" x2="-11.176" y2="0.254" layer="51"/>
  386. <rectangle x1="11.176" y1="-0.254" x2="11.684" y2="0.254" layer="51"/>
  387. </package>
  388. <package name="1X10/90">
  389. <description>&lt;b&gt;PIN HEADER&lt;/b&gt;</description>
  390. <wire x1="-12.7" y1="-1.905" x2="-10.16" y2="-1.905" width="0.1524" layer="21"/>
  391. <wire x1="-10.16" y1="-1.905" x2="-10.16" y2="0.635" width="0.1524" layer="21"/>
  392. <wire x1="-10.16" y1="0.635" x2="-12.7" y2="0.635" width="0.1524" layer="21"/>
  393. <wire x1="-12.7" y1="0.635" x2="-12.7" y2="-1.905" width="0.1524" layer="21"/>
  394. <wire x1="-11.43" y1="6.985" x2="-11.43" y2="1.27" width="0.762" layer="21"/>
  395. <wire x1="-10.16" y1="-1.905" x2="-7.62" y2="-1.905" width="0.1524" layer="21"/>
  396. <wire x1="-7.62" y1="-1.905" x2="-7.62" y2="0.635" width="0.1524" layer="21"/>
  397. <wire x1="-7.62" y1="0.635" x2="-10.16" y2="0.635" width="0.1524" layer="21"/>
  398. <wire x1="-8.89" y1="6.985" x2="-8.89" y2="1.27" width="0.762" layer="21"/>
  399. <wire x1="-7.62" y1="-1.905" x2="-5.08" y2="-1.905" width="0.1524" layer="21"/>
  400. <wire x1="-5.08" y1="-1.905" x2="-5.08" y2="0.635" width="0.1524" layer="21"/>
  401. <wire x1="-5.08" y1="0.635" x2="-7.62" y2="0.635" width="0.1524" layer="21"/>
  402. <wire x1="-6.35" y1="6.985" x2="-6.35" y2="1.27" width="0.762" layer="21"/>
  403. <wire x1="-5.08" y1="-1.905" x2="-2.54" y2="-1.905" width="0.1524" layer="21"/>
  404. <wire x1="-2.54" y1="-1.905" x2="-2.54" y2="0.635" width="0.1524" layer="21"/>
  405. <wire x1="-2.54" y1="0.635" x2="-5.08" y2="0.635" width="0.1524" layer="21"/>
  406. <wire x1="-3.81" y1="6.985" x2="-3.81" y2="1.27" width="0.762" layer="21"/>
  407. <wire x1="-2.54" y1="-1.905" x2="0" y2="-1.905" width="0.1524" layer="21"/>
  408. <wire x1="0" y1="-1.905" x2="0" y2="0.635" width="0.1524" layer="21"/>
  409. <wire x1="0" y1="0.635" x2="-2.54" y2="0.635" width="0.1524" layer="21"/>
  410. <wire x1="-1.27" y1="6.985" x2="-1.27" y2="1.27" width="0.762" layer="21"/>
  411. <wire x1="0" y1="-1.905" x2="2.54" y2="-1.905" width="0.1524" layer="21"/>
  412. <wire x1="2.54" y1="-1.905" x2="2.54" y2="0.635" width="0.1524" layer="21"/>
  413. <wire x1="2.54" y1="0.635" x2="0" y2="0.635" width="0.1524" layer="21"/>
  414. <wire x1="1.27" y1="6.985" x2="1.27" y2="1.27" width="0.762" layer="21"/>
  415. <wire x1="2.54" y1="-1.905" x2="5.08" y2="-1.905" width="0.1524" layer="21"/>
  416. <wire x1="5.08" y1="-1.905" x2="5.08" y2="0.635" width="0.1524" layer="21"/>
  417. <wire x1="5.08" y1="0.635" x2="2.54" y2="0.635" width="0.1524" layer="21"/>
  418. <wire x1="3.81" y1="6.985" x2="3.81" y2="1.27" width="0.762" layer="21"/>
  419. <wire x1="5.08" y1="-1.905" x2="7.62" y2="-1.905" width="0.1524" layer="21"/>
  420. <wire x1="7.62" y1="-1.905" x2="7.62" y2="0.635" width="0.1524" layer="21"/>
  421. <wire x1="7.62" y1="0.635" x2="5.08" y2="0.635" width="0.1524" layer="21"/>
  422. <wire x1="6.35" y1="6.985" x2="6.35" y2="1.27" width="0.762" layer="21"/>
  423. <wire x1="7.62" y1="-1.905" x2="10.16" y2="-1.905" width="0.1524" layer="21"/>
  424. <wire x1="10.16" y1="-1.905" x2="10.16" y2="0.635" width="0.1524" layer="21"/>
  425. <wire x1="10.16" y1="0.635" x2="7.62" y2="0.635" width="0.1524" layer="21"/>
  426. <wire x1="8.89" y1="6.985" x2="8.89" y2="1.27" width="0.762" layer="21"/>
  427. <wire x1="10.16" y1="-1.905" x2="12.7" y2="-1.905" width="0.1524" layer="21"/>
  428. <wire x1="12.7" y1="-1.905" x2="12.7" y2="0.635" width="0.1524" layer="21"/>
  429. <wire x1="12.7" y1="0.635" x2="10.16" y2="0.635" width="0.1524" layer="21"/>
  430. <wire x1="11.43" y1="6.985" x2="11.43" y2="1.27" width="0.762" layer="21"/>
  431. <pad name="1" x="-11.43" y="-3.81" drill="1.016" shape="long" rot="R90"/>
  432. <pad name="2" x="-8.89" y="-3.81" drill="1.016" shape="long" rot="R90"/>
  433. <pad name="3" x="-6.35" y="-3.81" drill="1.016" shape="long" rot="R90"/>
  434. <pad name="4" x="-3.81" y="-3.81" drill="1.016" shape="long" rot="R90"/>
  435. <pad name="5" x="-1.27" y="-3.81" drill="1.016" shape="long" rot="R90"/>
  436. <pad name="6" x="1.27" y="-3.81" drill="1.016" shape="long" rot="R90"/>
  437. <pad name="7" x="3.81" y="-3.81" drill="1.016" shape="long" rot="R90"/>
  438. <pad name="8" x="6.35" y="-3.81" drill="1.016" shape="long" rot="R90"/>
  439. <pad name="9" x="8.89" y="-3.81" drill="1.016" shape="long" rot="R90"/>
  440. <pad name="10" x="11.43" y="-3.81" drill="1.016" shape="long" rot="R90"/>
  441. <text x="-13.335" y="-3.81" size="1.27" layer="25" ratio="10" rot="R90">&gt;NAME</text>
  442. <text x="14.605" y="-4.445" size="1.27" layer="27" rot="R90">&gt;VALUE</text>
  443. <rectangle x1="-11.811" y1="0.635" x2="-11.049" y2="1.143" layer="21"/>
  444. <rectangle x1="-9.271" y1="0.635" x2="-8.509" y2="1.143" layer="21"/>
  445. <rectangle x1="-6.731" y1="0.635" x2="-5.969" y2="1.143" layer="21"/>
  446. <rectangle x1="-4.191" y1="0.635" x2="-3.429" y2="1.143" layer="21"/>
  447. <rectangle x1="-1.651" y1="0.635" x2="-0.889" y2="1.143" layer="21"/>
  448. <rectangle x1="0.889" y1="0.635" x2="1.651" y2="1.143" layer="21"/>
  449. <rectangle x1="3.429" y1="0.635" x2="4.191" y2="1.143" layer="21"/>
  450. <rectangle x1="5.969" y1="0.635" x2="6.731" y2="1.143" layer="21"/>
  451. <rectangle x1="8.509" y1="0.635" x2="9.271" y2="1.143" layer="21"/>
  452. <rectangle x1="11.049" y1="0.635" x2="11.811" y2="1.143" layer="21"/>
  453. <rectangle x1="-11.811" y1="-2.921" x2="-11.049" y2="-1.905" layer="21"/>
  454. <rectangle x1="-9.271" y1="-2.921" x2="-8.509" y2="-1.905" layer="21"/>
  455. <rectangle x1="-6.731" y1="-2.921" x2="-5.969" y2="-1.905" layer="21"/>
  456. <rectangle x1="-4.191" y1="-2.921" x2="-3.429" y2="-1.905" layer="21"/>
  457. <rectangle x1="-1.651" y1="-2.921" x2="-0.889" y2="-1.905" layer="21"/>
  458. <rectangle x1="0.889" y1="-2.921" x2="1.651" y2="-1.905" layer="21"/>
  459. <rectangle x1="3.429" y1="-2.921" x2="4.191" y2="-1.905" layer="21"/>
  460. <rectangle x1="5.969" y1="-2.921" x2="6.731" y2="-1.905" layer="21"/>
  461. <rectangle x1="8.509" y1="-2.921" x2="9.271" y2="-1.905" layer="21"/>
  462. <rectangle x1="11.049" y1="-2.921" x2="11.811" y2="-1.905" layer="21"/>
  463. </package>
  464. </packages>
  465. <symbols>
  466. <symbol name="PINHD10">
  467. <wire x1="-6.35" y1="-15.24" x2="1.27" y2="-15.24" width="0.4064" layer="94"/>
  468. <wire x1="1.27" y1="-15.24" x2="1.27" y2="12.7" width="0.4064" layer="94"/>
  469. <wire x1="1.27" y1="12.7" x2="-6.35" y2="12.7" width="0.4064" layer="94"/>
  470. <wire x1="-6.35" y1="12.7" x2="-6.35" y2="-15.24" width="0.4064" layer="94"/>
  471. <text x="-6.35" y="13.335" size="1.778" layer="95">&gt;NAME</text>
  472. <text x="-6.35" y="-17.78" size="1.778" layer="96">&gt;VALUE</text>
  473. <pin name="1" x="-2.54" y="10.16" visible="pad" length="short" direction="pas" function="dot"/>
  474. <pin name="2" x="-2.54" y="7.62" visible="pad" length="short" direction="pas" function="dot"/>
  475. <pin name="3" x="-2.54" y="5.08" visible="pad" length="short" direction="pas" function="dot"/>
  476. <pin name="4" x="-2.54" y="2.54" visible="pad" length="short" direction="pas" function="dot"/>
  477. <pin name="5" x="-2.54" y="0" visible="pad" length="short" direction="pas" function="dot"/>
  478. <pin name="6" x="-2.54" y="-2.54" visible="pad" length="short" direction="pas" function="dot"/>
  479. <pin name="7" x="-2.54" y="-5.08" visible="pad" length="short" direction="pas" function="dot"/>
  480. <pin name="8" x="-2.54" y="-7.62" visible="pad" length="short" direction="pas" function="dot"/>
  481. <pin name="9" x="-2.54" y="-10.16" visible="pad" length="short" direction="pas" function="dot"/>
  482. <pin name="10" x="-2.54" y="-12.7" visible="pad" length="short" direction="pas" function="dot"/>
  483. </symbol>
  484. </symbols>
  485. <devicesets>
  486. <deviceset name="PINHD-1X10" prefix="JP" uservalue="yes">
  487. <description>&lt;b&gt;PIN HEADER&lt;/b&gt;</description>
  488. <gates>
  489. <gate name="A" symbol="PINHD10" x="0" y="0"/>
  490. </gates>
  491. <devices>
  492. <device name="" package="1X10">
  493. <connects>
  494. <connect gate="A" pin="1" pad="1"/>
  495. <connect gate="A" pin="10" pad="10"/>
  496. <connect gate="A" pin="2" pad="2"/>
  497. <connect gate="A" pin="3" pad="3"/>
  498. <connect gate="A" pin="4" pad="4"/>
  499. <connect gate="A" pin="5" pad="5"/>
  500. <connect gate="A" pin="6" pad="6"/>
  501. <connect gate="A" pin="7" pad="7"/>
  502. <connect gate="A" pin="8" pad="8"/>
  503. <connect gate="A" pin="9" pad="9"/>
  504. </connects>
  505. <technologies>
  506. <technology name=""/>
  507. </technologies>
  508. </device>
  509. <device name="/90" package="1X10/90">
  510. <connects>
  511. <connect gate="A" pin="1" pad="1"/>
  512. <connect gate="A" pin="10" pad="10"/>
  513. <connect gate="A" pin="2" pad="2"/>
  514. <connect gate="A" pin="3" pad="3"/>
  515. <connect gate="A" pin="4" pad="4"/>
  516. <connect gate="A" pin="5" pad="5"/>
  517. <connect gate="A" pin="6" pad="6"/>
  518. <connect gate="A" pin="7" pad="7"/>
  519. <connect gate="A" pin="8" pad="8"/>
  520. <connect gate="A" pin="9" pad="9"/>
  521. </connects>
  522. <technologies>
  523. <technology name=""/>
  524. </technologies>
  525. </device>
  526. </devices>
  527. </deviceset>
  528. </devicesets>
  529. </library>
  530. </libraries>
  531. <attributes>
  532. </attributes>
  533. <variantdefs>
  534. </variantdefs>
  535. <classes>
  536. <class number="0" name="default" width="0" drill="0">
  537. </class>
  538. </classes>
  539. <parts>
  540. <part name="IC1" library="stm8s103" deviceset="STM8S103F*" device="P"/>
  541. <part name="JP1" library="pinhead" deviceset="PINHD-1X10" device=""/>
  542. <part name="JP2" library="pinhead" deviceset="PINHD-1X10" device=""/>
  543. </parts>
  544. <sheets>
  545. <sheet>
  546. <plain>
  547. </plain>
  548. <instances>
  549. <instance part="IC1" gate="G$1" x="82.55" y="68.58"/>
  550. <instance part="JP1" gate="A" x="64.77" y="-19.05" rot="R270"/>
  551. <instance part="JP2" gate="A" x="109.22" y="-19.05" rot="R270"/>
  552. </instances>
  553. <busses>
  554. </busses>
  555. <nets>
  556. <net name="N$1" class="0">
  557. <segment>
  558. <pinref part="IC1" gate="G$1" pin="BOOT0"/>
  559. <wire x1="123.19" y1="86.36" x2="165.1" y2="86.36" width="0.1524" layer="91"/>
  560. <wire x1="165.1" y1="86.36" x2="165.1" y2="5.08" width="0.1524" layer="91"/>
  561. <wire x1="165.1" y1="5.08" x2="52.07" y2="5.08" width="0.1524" layer="91"/>
  562. <pinref part="JP1" gate="A" pin="10"/>
  563. <wire x1="52.07" y1="5.08" x2="52.07" y2="-16.51" width="0.1524" layer="91"/>
  564. </segment>
  565. </net>
  566. <net name="N$2" class="0">
  567. <segment>
  568. <pinref part="IC1" gate="G$1" pin="PF0-OSC_IN"/>
  569. <wire x1="123.19" y1="83.82" x2="162.56" y2="83.82" width="0.1524" layer="91"/>
  570. <wire x1="162.56" y1="83.82" x2="162.56" y2="7.62" width="0.1524" layer="91"/>
  571. <wire x1="162.56" y1="7.62" x2="54.61" y2="7.62" width="0.1524" layer="91"/>
  572. <pinref part="JP1" gate="A" pin="9"/>
  573. <wire x1="54.61" y1="7.62" x2="54.61" y2="-16.51" width="0.1524" layer="91"/>
  574. </segment>
  575. </net>
  576. <net name="N$3" class="0">
  577. <segment>
  578. <pinref part="IC1" gate="G$1" pin="PF1-OSC_OUT"/>
  579. <wire x1="123.19" y1="81.28" x2="160.02" y2="81.28" width="0.1524" layer="91"/>
  580. <wire x1="160.02" y1="81.28" x2="160.02" y2="10.16" width="0.1524" layer="91"/>
  581. <wire x1="160.02" y1="10.16" x2="57.15" y2="10.16" width="0.1524" layer="91"/>
  582. <pinref part="JP1" gate="A" pin="8"/>
  583. <wire x1="57.15" y1="10.16" x2="57.15" y2="-16.51" width="0.1524" layer="91"/>
  584. </segment>
  585. </net>
  586. <net name="N$4" class="0">
  587. <segment>
  588. <pinref part="IC1" gate="G$1" pin="NRST"/>
  589. <wire x1="44.45" y1="91.44" x2="13.97" y2="91.44" width="0.1524" layer="91"/>
  590. <wire x1="13.97" y1="91.44" x2="13.97" y2="19.05" width="0.1524" layer="91"/>
  591. <wire x1="13.97" y1="19.05" x2="59.69" y2="19.05" width="0.1524" layer="91"/>
  592. <pinref part="JP1" gate="A" pin="7"/>
  593. <wire x1="59.69" y1="19.05" x2="59.69" y2="-16.51" width="0.1524" layer="91"/>
  594. </segment>
  595. </net>
  596. <net name="N$5" class="0">
  597. <segment>
  598. <pinref part="IC1" gate="G$1" pin="VDDA"/>
  599. <wire x1="44.45" y1="86.36" x2="16.51" y2="86.36" width="0.1524" layer="91"/>
  600. <wire x1="16.51" y1="86.36" x2="16.51" y2="21.59" width="0.1524" layer="91"/>
  601. <wire x1="16.51" y1="21.59" x2="62.23" y2="21.59" width="0.1524" layer="91"/>
  602. <pinref part="JP1" gate="A" pin="6"/>
  603. <wire x1="62.23" y1="21.59" x2="62.23" y2="-16.51" width="0.1524" layer="91"/>
  604. </segment>
  605. </net>
  606. <net name="N$6" class="0">
  607. <segment>
  608. <pinref part="IC1" gate="G$1" pin="PA0/USART1_CTS/ADC_IN0"/>
  609. <wire x1="44.45" y1="83.82" x2="19.05" y2="83.82" width="0.1524" layer="91"/>
  610. <wire x1="19.05" y1="83.82" x2="19.05" y2="24.13" width="0.1524" layer="91"/>
  611. <wire x1="19.05" y1="24.13" x2="64.77" y2="24.13" width="0.1524" layer="91"/>
  612. <pinref part="JP1" gate="A" pin="5"/>
  613. <wire x1="64.77" y1="24.13" x2="64.77" y2="-16.51" width="0.1524" layer="91"/>
  614. </segment>
  615. </net>
  616. <net name="N$7" class="0">
  617. <segment>
  618. <pinref part="IC1" gate="G$1" pin="PA1/USART1_RTS/ADC_IN1"/>
  619. <wire x1="44.45" y1="76.2" x2="21.59" y2="76.2" width="0.1524" layer="91"/>
  620. <wire x1="21.59" y1="76.2" x2="21.59" y2="26.67" width="0.1524" layer="91"/>
  621. <wire x1="21.59" y1="26.67" x2="67.31" y2="26.67" width="0.1524" layer="91"/>
  622. <pinref part="JP1" gate="A" pin="4"/>
  623. <wire x1="67.31" y1="26.67" x2="67.31" y2="-16.51" width="0.1524" layer="91"/>
  624. </segment>
  625. </net>
  626. <net name="N$8" class="0">
  627. <segment>
  628. <wire x1="45.72" y1="66.04" x2="24.13" y2="66.04" width="0.1524" layer="91"/>
  629. <wire x1="24.13" y1="66.04" x2="24.13" y2="29.21" width="0.1524" layer="91"/>
  630. <wire x1="24.13" y1="29.21" x2="69.85" y2="29.21" width="0.1524" layer="91"/>
  631. <wire x1="69.85" y1="29.21" x2="69.85" y2="-16.51" width="0.1524" layer="91"/>
  632. <wire x1="69.85" y1="-17.78" x2="69.85" y2="-16.51" width="0.1524" layer="91"/>
  633. </segment>
  634. </net>
  635. <net name="N$9" class="0">
  636. <segment>
  637. <pinref part="IC1" gate="G$1" pin="PA3/USART1_RX/ADC_IN3"/>
  638. <wire x1="44.45" y1="73.66" x2="26.67" y2="73.66" width="0.1524" layer="91"/>
  639. <wire x1="26.67" y1="73.66" x2="26.67" y2="31.75" width="0.1524" layer="91"/>
  640. <wire x1="26.67" y1="31.75" x2="72.39" y2="31.75" width="0.1524" layer="91"/>
  641. <pinref part="JP1" gate="A" pin="2"/>
  642. <wire x1="72.39" y1="31.75" x2="72.39" y2="-16.51" width="0.1524" layer="91"/>
  643. </segment>
  644. </net>
  645. <net name="N$10" class="0">
  646. <segment>
  647. <wire x1="121.92" y1="73.66" x2="157.48" y2="73.66" width="0.1524" layer="91"/>
  648. <wire x1="157.48" y1="73.66" x2="157.48" y2="12.7" width="0.1524" layer="91"/>
  649. <wire x1="157.48" y1="12.7" x2="74.93" y2="12.7" width="0.1524" layer="91"/>
  650. <pinref part="JP1" gate="A" pin="1"/>
  651. <wire x1="74.93" y1="12.7" x2="74.93" y2="-16.51" width="0.1524" layer="91"/>
  652. </segment>
  653. </net>
  654. <net name="N$11" class="0">
  655. <segment>
  656. <pinref part="IC1" gate="G$1" pin="PA5/SPI1_SCK/ADC_IN5"/>
  657. <wire x1="123.19" y1="63.5" x2="154.94" y2="63.5" width="0.1524" layer="91"/>
  658. <wire x1="154.94" y1="63.5" x2="154.94" y2="15.24" width="0.1524" layer="91"/>
  659. <wire x1="154.94" y1="15.24" x2="96.52" y2="15.24" width="0.1524" layer="91"/>
  660. <pinref part="JP2" gate="A" pin="10"/>
  661. <wire x1="96.52" y1="15.24" x2="96.52" y2="-16.51" width="0.1524" layer="91"/>
  662. </segment>
  663. </net>
  664. <net name="N$12" class="0">
  665. <segment>
  666. <pinref part="IC1" gate="G$1" pin="PA6/SPI_MISO/ADC_IN6"/>
  667. <wire x1="123.19" y1="66.04" x2="152.4" y2="66.04" width="0.1524" layer="91"/>
  668. <wire x1="152.4" y1="66.04" x2="152.4" y2="17.78" width="0.1524" layer="91"/>
  669. <pinref part="JP2" gate="A" pin="9"/>
  670. <wire x1="152.4" y1="17.78" x2="99.06" y2="17.78" width="0.1524" layer="91"/>
  671. <wire x1="99.06" y1="17.78" x2="99.06" y2="-16.51" width="0.1524" layer="91"/>
  672. </segment>
  673. </net>
  674. <net name="N$13" class="0">
  675. <segment>
  676. <pinref part="IC1" gate="G$1" pin="PA7/SPI_MOSI/ADC_IN7"/>
  677. <wire x1="123.19" y1="53.34" x2="149.86" y2="53.34" width="0.1524" layer="91"/>
  678. <wire x1="149.86" y1="53.34" x2="149.86" y2="20.32" width="0.1524" layer="91"/>
  679. <pinref part="JP2" gate="A" pin="8"/>
  680. <wire x1="149.86" y1="20.32" x2="101.6" y2="20.32" width="0.1524" layer="91"/>
  681. <wire x1="101.6" y1="20.32" x2="101.6" y2="-16.51" width="0.1524" layer="91"/>
  682. </segment>
  683. </net>
  684. <net name="N$14" class="0">
  685. <segment>
  686. <pinref part="IC1" gate="G$1" pin="PB0/ADC_IN8"/>
  687. <wire x1="123.19" y1="50.8" x2="147.32" y2="50.8" width="0.1524" layer="91"/>
  688. <wire x1="147.32" y1="50.8" x2="147.32" y2="22.86" width="0.1524" layer="91"/>
  689. <pinref part="JP2" gate="A" pin="7"/>
  690. <wire x1="147.32" y1="22.86" x2="104.14" y2="22.86" width="0.1524" layer="91"/>
  691. <wire x1="104.14" y1="22.86" x2="104.14" y2="-16.51" width="0.1524" layer="91"/>
  692. </segment>
  693. </net>
  694. <net name="N$15" class="0">
  695. <segment>
  696. <pinref part="IC1" gate="G$1" pin="VSS"/>
  697. <wire x1="123.19" y1="48.26" x2="144.78" y2="48.26" width="0.1524" layer="91"/>
  698. <wire x1="144.78" y1="48.26" x2="144.78" y2="25.4" width="0.1524" layer="91"/>
  699. <pinref part="JP2" gate="A" pin="6"/>
  700. <wire x1="144.78" y1="25.4" x2="106.68" y2="25.4" width="0.1524" layer="91"/>
  701. <wire x1="106.68" y1="25.4" x2="106.68" y2="-16.51" width="0.1524" layer="91"/>
  702. </segment>
  703. </net>
  704. <net name="N$16" class="0">
  705. <segment>
  706. <pinref part="IC1" gate="G$1" pin="VDD"/>
  707. <wire x1="123.19" y1="45.72" x2="142.24" y2="45.72" width="0.1524" layer="91"/>
  708. <wire x1="142.24" y1="45.72" x2="142.24" y2="27.94" width="0.1524" layer="91"/>
  709. <pinref part="JP2" gate="A" pin="5"/>
  710. <wire x1="142.24" y1="27.94" x2="109.22" y2="27.94" width="0.1524" layer="91"/>
  711. <wire x1="109.22" y1="27.94" x2="109.22" y2="-16.51" width="0.1524" layer="91"/>
  712. </segment>
  713. </net>
  714. <net name="N$17" class="0">
  715. <segment>
  716. <pinref part="IC1" gate="G$1" pin="PA9"/>
  717. <wire x1="123.19" y1="43.18" x2="139.7" y2="43.18" width="0.1524" layer="91"/>
  718. <wire x1="139.7" y1="43.18" x2="139.7" y2="30.48" width="0.1524" layer="91"/>
  719. <pinref part="JP2" gate="A" pin="4"/>
  720. <wire x1="139.7" y1="30.48" x2="111.76" y2="30.48" width="0.1524" layer="91"/>
  721. <wire x1="111.76" y1="30.48" x2="111.76" y2="-16.51" width="0.1524" layer="91"/>
  722. </segment>
  723. </net>
  724. <net name="N$18" class="0">
  725. <segment>
  726. <pinref part="IC1" gate="G$1" pin="PA10"/>
  727. <wire x1="123.19" y1="93.98" x2="137.16" y2="93.98" width="0.1524" layer="91"/>
  728. <wire x1="137.16" y1="93.98" x2="137.16" y2="33.02" width="0.1524" layer="91"/>
  729. <pinref part="JP2" gate="A" pin="3"/>
  730. <wire x1="137.16" y1="33.02" x2="114.3" y2="33.02" width="0.1524" layer="91"/>
  731. <wire x1="114.3" y1="33.02" x2="114.3" y2="-16.51" width="0.1524" layer="91"/>
  732. </segment>
  733. </net>
  734. <net name="N$19" class="0">
  735. <segment>
  736. <pinref part="IC1" gate="G$1" pin="PA13/SWDIO"/>
  737. <wire x1="123.19" y1="91.44" x2="134.62" y2="91.44" width="0.1524" layer="91"/>
  738. <wire x1="134.62" y1="91.44" x2="134.62" y2="35.56" width="0.1524" layer="91"/>
  739. <pinref part="JP2" gate="A" pin="2"/>
  740. <wire x1="134.62" y1="35.56" x2="116.84" y2="35.56" width="0.1524" layer="91"/>
  741. <wire x1="116.84" y1="35.56" x2="116.84" y2="-16.51" width="0.1524" layer="91"/>
  742. </segment>
  743. </net>
  744. <net name="N$20" class="0">
  745. <segment>
  746. <pinref part="IC1" gate="G$1" pin="PA14/SWD_CLK"/>
  747. <wire x1="123.19" y1="88.9" x2="132.08" y2="88.9" width="0.1524" layer="91"/>
  748. <wire x1="132.08" y1="88.9" x2="132.08" y2="38.1" width="0.1524" layer="91"/>
  749. <pinref part="JP2" gate="A" pin="1"/>
  750. <wire x1="132.08" y1="38.1" x2="119.38" y2="38.1" width="0.1524" layer="91"/>
  751. <wire x1="119.38" y1="38.1" x2="119.38" y2="-16.51" width="0.1524" layer="91"/>
  752. </segment>
  753. </net>
  754. </nets>
  755. </sheet>
  756. </sheets>
  757. </schematic>
  758. </drawing>
  759. </eagle>