add LEDS_BT

This commit is contained in:
eddyem 2019-12-17 21:49:29 +03:00
parent 897a2f1cbf
commit 0425dc8981
20 changed files with 1624 additions and 866 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,47 +1,35 @@
Component,Description,Part,References,Value,Footprint,Quantity Per PCB,Datasheet "Id";"Designator";"Package";"Quantity";"Designation";"Supplier and ref";
1,Unpolarized capacitor,C,C1 C2 C4 C6 C7 C8 C9 C10 C11 C13,0.1,C_0603_1608Metric_Pad0.84x1.00mm_HandSolder,10, 1;"R17,R7,R8,R9,R10,R15";"R_0603_1608Metric_Pad0.84x1.00mm_HandSolder";6;"150";;;
2,Unpolarized capacitor,C,C12,1n,C_0603_1608Metric_Pad0.84x1.00mm_HandSolder,1, 2;"C1,C2,C4,C6,C7,C8,C9,C10,C11,C13";"C_0603_1608Metric_Pad0.84x1.00mm_HandSolder";10;"0.1";;;
3,Unpolarized capacitor,C,C3 C5,22p,C_0603_1608Metric_Pad0.84x1.00mm_HandSolder,2, 3;"U1";"SOP-16_4.4x10.4mm_P1.27mm";1;"MAX3232";;;
4,triode for alternating current (TRIAC),BT137-600E,D3 D4,BT137-600E,TO-220-3_Vertical,2, 4;"C3,C5";"C_0603_1608Metric_Pad0.84x1.00mm_HandSolder";2;"22p";;;
5,Zener Diode,D_Zener,D5,MM3Z3V6,D_SOD-323_HandSoldering,1,https://en.wikipedia.org/wiki/Zener_diode 5;"D1";"SOT-353_SC-70-5_Handsoldering";1;"SMF05";;;
6,"TVS Diode Array, 5.5V Standoff, 4 Channels, SOT-23-5 package",SP0504BAHT,D1,SMF05,SOT-353_SC-70-5_Handsoldering,1,http://www.littelfuse.com/~/media/files/littelfuse/technical%20resources/documents/data%20sheets/sp05xxba.pdf 6;"D2";"D_SMA-SMB_Universal_Handsoldering";1;"SS14";;;
7,Schottky diode,D_Schottky,D2 D6,SS14,D_SMA-SMB_Universal_Handsoldering,2, 7;"D3,D4";"TO-220-3_Vertical";2;"BT137-600E";;;
8,Diode,D,D7 D8,SS14,D_SMA_Handsoldering,2, 8;"J2";"USB_B_Horizontal";1;"USB_B";;;
9,"Generic connector, single row, 01x02, script generated (kicad-library-utils/schlib/autogen/connector/)",Conn_01x02,J3,5Vext,PinHeader_1x02_P2.54mm_Vertical,1, 9;"J3";"PinHeader_1x02_P2.54mm_Vertical";1;"5Vext";;;
10,15-pin male D-SUB connector (low-density/2 columns),DB15_Male,J5,DB15_Male,DSUB-15_Male_EdgeMount_P2.77mm,1, 10;"J4";"PinHeader_1x03_P2.54mm_Vertical";1;"SWIM";;;
11,"Generic screw terminal, single row, 01x03, script generated (kicad-library-utils/schlib/autogen/connector/)",Screw_Terminal_01x03,J6 J7,Power,TerminalBlock_Altech_AK300-3_P5.00mm,2, 11;"J5";"DSUB-15_Male_EdgeMount_P2.77mm";1;"DB15_Male";;;
12,"Generic connector, single row, 01x03, script generated (kicad-library-utils/schlib/autogen/connector/)",Conn_01x03,J4,SWIM,PinHeader_1x03_P2.54mm_Vertical,1, 12;"J6,J7";"TerminalBlock_Altech_AK300-3_P5.00mm";2;"Power";;;
13,USB Type B connector,USB_B,J2,USB_B,USB_B_Horizontal,1, 13;"K1,K2";"Relay_SPDT_SANYOU_SRD_Series_Form_C";2;"SRD-05VDC";;;
14,"Omron G5LE relay, Miniature Single Pole, SPDT, 10A",G5LE-1,K1 K2,SRD-05VDC,Relay_SPDT_SANYOU_SRD_Series_Form_C,2,http://www.omron.com/ecb/products/pdf/en-g5le.pdf 14;"Q1,Q2,Q8,Q9,Q5,Q7";"SOT-23_Handsoldering";6;"2N7002";;;
15,Transistor N-MOSFETwith substrate diode (general),Q_NMOS_GSD,Q1 Q2 Q5 Q7 Q8 Q9,2N7002,SOT-23_Handsoldering,6, 15;"Q3,Q4";"SOT-23_Handsoldering";2;"SI2300";;;
16,Transistor P-MOSFET with substrate diode (general),Q_PMOS_GSD,Q6,AO3407,SOT-23_Handsoldering,1, 16;"Q6";"SOT-23_Handsoldering";1;"AO3407";;;
17,Transistor N-MOSFETwith substrate diode (general),Q_NMOS_GSD,Q3 Q4,SI2300,SOT-23_Handsoldering,2, 17;"R1,R2";"R_0603_1608Metric_Pad0.84x1.00mm_HandSolder";2;"22";;;
18,Resistor,R,R7 R8 R9 R10 R15 R17,150,R_0603_1608Metric_Pad0.84x1.00mm_HandSolder,6, 18;"R3,R4,R11,R12,R14,R16,R18,R28,R31";"R_0603_1608Metric_Pad0.84x1.00mm_HandSolder";9;"330";;;
19,Resistor,R,R1 R2,22,R_0603_1608Metric_Pad0.84x1.00mm_HandSolder,2, 19;"R5,R23,R24";"R_0603_1608Metric_Pad0.84x1.00mm_HandSolder";3;"4k7";;;
20,Resistor,R,R3 R4 R11 R12 R14 R16 R18 R28 R31,330,R_0603_1608Metric_Pad0.84x1.00mm_HandSolder,9, 20;"U2";"SOIC-16_3.9x9.9mm_P1.27mm";1;"CH340G";;;
21,Resistor,R,R19 R21,330,R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_Horizontal,2, 21;"U3";"SSOP-20_4.4x6.5mm_P0.65mm";1;"STM8S003F3P";;;
22,Resistor,R,R20 R22,330,R_1206_3216Metric_Pad1.24x1.80mm_HandSolder,2, 22;"U5,U6,U7";"DIP-4_W7.62mm";3;"PC817";;;
23,Resistor,R,R6 R13 R25 R26 R27 R29 R30 R32 R33,47k,R_0805_2012Metric_Pad1.15x1.50mm_HandSolder,9, 23;"U8,U9";"DIP-6_W7.62mm";2;"MOC3063M";;;
24,Resistor,R,R5 R23,4k7,R_0603_1608Metric_Pad0.84x1.00mm_HandSolder,2, 24;"U10";"SOIC-8_3.9x4.9mm_P1.27mm";1;"ACS712";;;
25,,ACS712,U10,ACS712,SOIC-8_3.9x4.9mm_P1.27mm,1, 25;"Y1";"Crystal_HC49-U_Vertical";1;"12M";;;
26,,CH340G,U2,CH340G,SOIC-16_3.9x9.9mm_P1.27mm,1, 26;"J1";"DSUB-9_Female_Horizontal_P2.77x2.84mm_EdgePinOffset4.94mm_Housed_MountingHolesOffset7.48mm";1;"DB9_Female";;;
27,"Dual RS232 driver/receiver, 5V supply, 120kb/s, 0C-70C",MAX3232,U1,MAX3232,SOP-16_4.4x10.4mm_P1.27mm,1,http://www.ti.com/lit/ds/symlink/max232.pdf 27;"D5";"D_SOD-323_HandSoldering";1;"5V suppressor";;;
28,"Zero Cross Opto-Triac, Vdrm 250V, Ift 15mA, DIP6",MOC3063M,U8 U9,MOC3063M,DIP-6_W7.62mm,2,http://www.fairchildsemi.com/ds/MO/MOC3031M.pdf 28;"C12";"C_0603_1608Metric_Pad0.84x1.00mm_HandSolder";1;"1n";;;
29,,PC817,U5 U6 U7,PC817,DIP-4_W7.62mm,3, 29;"REF**,REF**,REF**,REF**";"Hole_3mm";4;"MountingHole_3.2mm_M3";;;
30,,STM8S003F3P-RESCUE-socket,U3,STM8S003F3P,SSOP-20_4.4x6.5mm_P0.65mm,1, 30;"R6,R13,R25,R26,R27,R29,R30,R32,R33";"R_0805_2012Metric_Pad1.15x1.50mm_HandSolder";9;"47k";;;
31,Two pin crystal,Crystal,Y1,12M,Crystal_HC49-U_Vertical,1, 31;"D7,D8";"D_SMA";2;"SS14";;;
32;"C15,C14";"C_Disc_D6.0mm_W2.5mm_P5.00mm";2;"0.01 600V";;;
33;"R34,R35";"R_Axial_Power_L20.0mm_W6.4mm_P25.40mm";2;"330 2W";;;
34;"R19,R20,R21,R22";"R_1206_HandSoldering";4;"330";;;
Component Groups:,31
Component Count:,80
Fitted Components:,80
Number of PCBs:,1
Total components:,80
Schematic Version:,
Schematic Date:,
BoM Date:, 25 2018 20:37:06
Schematic Source:,/Big/Data/00__Electronics/STM8/220controlled_socket/kicad/socket.sch
KiCad Version:,Eeschema 4.0.7

Can't render this file because it has a wrong number of fields in line 2.

View File

@ -1,125 +1,123 @@
:04808300725F000127 :2082930072107F60350050C635075347357D53483501534335855340721A5005350C50026F
:2080A4008080808080808080808080808080AE5230F6A520272BAE5231F6725D001B262127 :2082B300350E50033520500735F8500C35F8500D35045011350450123524540035105407D4
:2080C400725D0001260AA13A2617350100012011A1232705C700042008725F000135010031 :0D82D3003508540235735401357354018190
:2080E4001B8080AE5405F65F97CF0002AE5404F6954F4FCA000302CA000295CF0002350137 :04806F00725F00013B
:20810400001AAE5400F6A43FF780AE5344F644241B90CE001E72A90001C6001DA90097C6B0 :2082E0008080808080808080808080808080C65230A520272AC65231725D001B2621725DD7
:12812400001CA9009590CF001ECF001C350053448080BB :208300000001260AA13A2617350100012011A1232705C700042008725F00013501001B8026
:018E8A0000E7 :2083200080C654055F97CF0002C6540495C6000302CA000295CF00023501001AC65400A419
:20813600AE5230F64D2AF9AE52317B03F781AE5230F64D2AF9350A523181160390F64D2780 :208340003FC7540080C6534444241BCE001E1C0001C6001DA9009097C6001CA9009095CF28
:2081560018AE5230F64D2AF9AE5235F6AA08F790F6905CAE5231F720E381725D001B260356 :0C836000001E90CF001C350053448080AC
:208176004F200C1E03C60004F7725F001BA6018152255F1F031F017B2AA1042303CC826C36 :018277000006
:208196007B2AA1032603CC826C0D2A2603CC826C961C00051F124F5F9772FB127F4CA10C5F :20836C00C652302AFBAE52317B03F781C652302AFB350A5231811E03F6260181C652302A7C
:2081B60025F51E12A60AE70A7B2AA101270E7B2AA10227197B2AA104272E20451E28F66B0F :20838C00FB72165235F65CC7523120EC81725D001B26024F811E03C60004F7725F001BA648
:2081D6001B4F5F6B031F017B1B6B042034162817141E14FE1F1C161C17200F1F0F1E16200B :2083AC00018152215F1F201F1E7B26A1042303CC84877B26A1032603CC84870D262603CC31
:2081F6001703161E17012019162817161E16E6036B25E6026B24FE1F221624170316221759 :2083CC008487965C1F134F5F9772FB137F4CA10C25F51E13A60AE70A7B264A270E7B26A1D7
:2082160001A6096B114B0A5F894B001E07891E0789CD8DC05B08517B110A115F9772FB124E :2083EC000227157B26A1042727203D1E24F65F97905F1F20171E20301624170D93FE1F1B38
:20823600909FAB30F74B0A5F894B001E07891E0789CD8E305B081F0317011E0326041E01B1 :20840C001F110F100F0F16111720160F171E20181624171593E6036B1AE6026B19FE1F17EC
:2082560027067B11A1FF2CBD7B114C5F9772FB1289CD81505B025B2581AE5011F6AA20F72E :20842C00161917201617171EA6096B1D4B0A5F894B001E24891E2489CD8D735B08517B1DFA
:14827600AE5012F6AA20F73568523235035233352C523581E6 :20844C000A1D5F9772FB13909FAB30F74B0A5F894B001E24891E2489CD8DE35B081F20175E
:018E8B0000E6 :20846C001E1E2026C71E1E26C37B1D4C97494FA2009572FB1389CD83825B025B2181721A77
:20828A0072107F60350050C635075347357D53483501534335855340AE5005F6AA20F735FD :13848C005011721A50123568523235035233352C52358147
:2082AA000C5002350E50033520500735F8500C35F8500D35045011350450123524540035EA :018278000005
:1082CA00105407350854023573540135735401812B :208000008200806F82000000820082E0820082E1820082E2820082E3820082E4820082E506
:208000008200808382000000820080A4820080A5820080A6820080A7820080A8820080A966 :20802000820082E6820082E78200000082000000820082E8820082E9820082EA820082EBB1
:20802000820080AA820080AB8200000082000000820080AC820080AD820080AE820080AF25 :20804000820082EC8200000082000000820082ED820082EE82008320820000008200000020
:20804000820080B08200000082000000820080B1820080B2820080E6820000008200000017 :0C80600082008321820083458200836B34
:20806000820080E78200810E82008135820000008200000082000000820000008200000044 :1D807300AE00192707724F00005A26F9AE001C2709D68276D700195A26F7CC806CDA
:1D808700AE00192707724F00005A26F9AE001C2709D68E89D700195A26F7CC808093 :03806C00CC89823A
:03808000CC87AA00 :20849F005236AE000A1F29FEA608AB046B2CA600A9006B2B162B90FE17271327230FCF0016
:2082DA005238AE00081F1D1E1D5C5C1F0B1E0BFE161D72A900041711161190FE1703130365 :2084BF00051E291627FF1E2B90CE0005FFAE00101F25FEA608AB0A6B24A600A9006B231685
:2082FA00230FCF00051E0B1603FF1E1190CE0005FF1E1D1C00081F051E05FE161D72A9009A :2084DF002390FE17211321230FCF00051E251621FF1E2390CE0005FFAE00161F1FFEA60890
:20831A000A1735163590FE172D132D230FCF00051E05162DFF1E3590CE0005FF1E1D1C0019 :2084FF00AB106B1EA600A9006B1D161D90FE171B131B230FCF00051E1F161BFF1E1D90CE15
:20833A000E1F171E17FE161D72A90010171F161F90FE17011301230FCF00051E171601FFD8 :20851F000005FFCE0008162990FE171913192310CF0005AE00081619FF1E2990CE0005FFA5
:20835A001E1F90CE0005FF1E1DFE160B90FE17331333230FCF00051E1D1633FF1E0B90CEDC :20853F00AE000E1F17FE162590FE17091309230FCF00051E171609FF1E2590CE0005FFAE7B
:20837A000005FF1E1D1C00061F0D1E0DFE160590FE17231323230FCF00051E0D1623FF1E8D :20855F0000141F07FE161F90FE17051305230FCF00051E071605FF1E1F90CE0005FF1E29A2
:20839A000590CE0005FF1E1D1C000C1F131E13FE161790FE170F130F230FCF00051E131648 :20857F00FE162B90FE17031303230FCF00051E291603FF1E2B90CE0005FF1E25FE162390C5
:2083BA000FFF1E1790CE0005FF1E0BFE161190FE172B132B230FCF00051E0B162BFF1E1104 :20859F00FE17011301230FCF00051E251601FF1E2390CE0005FF1E1FFE161D90FE17351335
:2083DA0090CE0005FF1E05FE163590FE17191319230FCF00051E051619FF1E3590CE0005BE :2085BF0035230FCF00051E1F1635FF1E1D90CE0005FFCE0008161790FE173313332310CF1A
:2083FA00FF1E17FE161F90FE17151315230FCF00051E171615FF1E1F90CE0005FF1E1DFEDD :2085DF000005AE00081633FF1E1790CE0005FF1E23FE161D90FE17311331230FCF00051E32
:20841A00160D90FE171B131B230FCF00051E1D161BFF1E0D90CE0005FF1E35FE161F90FE1F :2085FF00231631FF1E1D90CE0005FF1E25FE161F90FE172F132F230FCF00051E25162FFF3D
:20843A0017071307230FCF00051E351607FF1E1F90CE0005FF1E05FE161790FE173113316E :20861F001E1F90CE0005FF1E17FE160790FE172D132D230FCF00051E17162DFF1E0790CE3A
:20845A00230FCF00051E051631FF1E1790CE0005FF1E0DFE161390FE17371337230FCF0083 :20863F000005FF1E29FE162590FE17151315230FCF00051E291615FF1E2590CE0005FF1E7B
:20847A00051E0D1637FF1E1390CE0005FF1E0BFE160590FE17271327230FCF00051E0B1646 :20865F002BFE162390FE17131313230FCF00051E2B1613FF1E2390CE0005FF1E25FE161F2B
:20849A0027FF1E0590CE0005FF1E11FE163590FE17211321230FCF00051E111621FF1E35E7 :20867F0090FE17111311230FCF00051E251611FF1E1F90CE0005FF1E25FE162B90FE170FBD
:2084BA0090CE0005FF1E05FE161790FE17091309230FCF00051E051609FF1E1790CE000549 :20869F00130F230FCF00051E25160FFF1E2B90CE0005FF1E07FE162590FE170D130D230F1F
:2084DA00FF1E05FE161190FE17291329230FCF00051E051629FF1E1190CE0005FF1E13FE0A :2086BF00CF00051E07160DFF1E2590CE0005FF1E25FE162B90FE170B130B230FCF00051E67
:2084FA00160590FE172F132F230FCF00051E13162FFF1E0590CE0005FF1E05FE161190FE5B :2086DF0025160BFF1E2B90CE0005FF1E25FE5B368152187B1BA1412603CC87B87B1BA142A9
:20851A0017251325230FCF00051E051625FF1E1190CE0005FF1E05FE5B388152037B066B63 :2086FF002603CC87D77B1BA1432603CC87F67B1BA1492603CC88527B1BA14B2603CC88A529
:20853A00027B02A1412603CC85FE7B02A1422603CC861A7B02A1432603CC86367B02A149DA :20871F007B1BA14C2603CC88C47B1BA14D2603CC88E37B1BA14E2603CC89017B1BA14F26E2
:20855A002603CC868C7B02A14B2603CC86DF7B02A14C2603CC86FB7B02A14D2603CC871759 :20873F0003CC891F7B1BA1592603CC893D7B1BA15A2603CC89597B1BA161275D7B1BA1623B
:20857A007B02A14E2603CC87327B02A14F2603CC874D7B02A1592603CC87687B02A15A2698 :20875F002603CC87D77B1BA1632603CC87F67B1BA1692603CC88527B1BA16B2603CC88A568
:20859A0003CC87827B02A161275A7B02A16227707B02A1632603CC86367B02A1692603CC24 :20877F007B1BA16C2603CC88C47B1BA16D2603CC88E37B1BA16E2603CC89017B1BA16F2602
:2085BA00868C7B02A16B2603CC86DF7B02A16C2603CC86FB7B02A16D2603CC87177B02A170 :20879F0003CC891F7B1BA1792603CC893D7B1BA17A2603CC8959CC897FAE809089CD838263
:2085DA006E2603CC87327B02A16F2603CC874D7B02A1792603CC87687B02A17A2603CC8780 :2087BF005B02C6500FA5042706A6310F172004A6300F176B01CC89754B984B80CD83825B14
:2085FA0082CC87A7AE8BD389CD81505B02AE500FF6A5042704A6312002A6306B03CC879D51 :2087DF0002C6500AA5402706A6310F062004A6300F066B01CC8975AE80A089CD83825B028F
:20861A00AE8BDB89CD81505B02AE500AF6A5402704A6312002A6306B03CC879DAE8BE389C8 :2087FF007B1BA06326044C6B10C10F100D102704AE0030BCAE00319F88CD836C844B3DCD73
:20863A00CD81505B027B06A1632606A6016B0120020F010D012704A6302002A63188CD8151 :20881F00836C840D102716C65006A5102606A6310F0A2004A6300F0A6B01CC8975C650011F
:20865A0036844B3DCD8136840D012713AE5006F6A5102604A6312002A6306B03CC879DAEBA :20883F00A5022606A6310F082004A6300F086B01CC89754BA34B80CD83825B02AE00024B2E
:20867A005001F6A5022604A6312002A6306B03CC879DAE8BE689CD81505B02AE00024B02FB :20885F000289CD83AE5B034BAD4B80CD83825B02AE00304B0289CD83AE5B03AE80B589CDD7
:20869A0089CD81865B03AE8BF089CD81505B02AE00304B0289CD81865B03AE8BF889CD816A :20887F0083825B02AE00324B0289CD83AE5B03AE80BD89CD83825B02CE00344B0289CD839A
:2086BA00505B02AE00324B0289CD81865B03AE8C0089CD81505B02CE00344B0289CD8186A1 :20889F00AE5B03CC897F4BC34B80CD83825B02C65005A5202606A6310F0E2004A6300F0EBA
:2086DA005B03CC87A7AE8C0689CD81505B02AE5005F6A5202604A6312002A6306B03CC87EC :2088BF006B01CC89754BCA4B80CD83825B02C6500AA5202706A6310F0C2004A6300F0C6BD0
:2086FA009DAE8C0D89CD81505B02AE500AF6A5202704A6312002A6306B03CC879DAE8C148F :2088DF0001CC8975AE80D189CD83825B02C6500AA5082706A6310F042004A6300F046B019A
:20871A0089CD81505B02AE500AF6A5082704A6312002A6306B03206BAE8C1B89CD81505B46 :2088FF0020744BD84B80CD83825B02C65000A5082706A6310F022004A6300F026B012056E3
:20873A0002AE5000F6A5082704A6312002A6306B032050AE8C2189CD81505B02AE5000F6D1 :20891F004BDE4B80CD83825B02C65000A5042706A6310F152004A6300F156B0120384BE41D
:20875A00A5042704A6312002A6306B032035AE8C2789CD81505B02AE500AF64D2A04A63164 :20893F004B80CD83825B02C6500A2A06A6310F132004A6300F136B01201CAE80EC89CD831E
:20877A002002A6306B03201BAE8C2F89CD81505B02AE500AF6A5102704A6312002A6306B39 :20895F00825B02C6500AA5102706A6310F112004A6300F116B017B0188CD836C84CD83788E
:20879A000320007B0388CD813684CD81445B038152235F1F0C1F0AAEFFFF1F085F1F065F3F :20897F005B188152215F1F1C1F1AAEFFFF1F185F1F165F1F20CD8293CD848A9A4B014B811A
:2087BA001F03AE8C371F01CD828ACD826F9AAE8C4489CD81505B02725D001A2744AE0008AF :20899F00CD83825B02725D001A273F5FC6000797581C000890CE0002FF725C0007C60007FA
:2087DA001F0E5FC60007975872FB0E90CE0002FFC600074CC70007A1092622725F00071E8E :2089BF00A1092622725F00071E205C1F20CD849F1F1E1E16131E2404161E17161E18131E73
:2087FA00035C1F03CD82DA7B07891102857B068912018524021F06130824021F08725F00EC :2089DF002304161E1718725F001ACE001E72F01C1F10C6001D121B6B0FC6001C121A6B0E59
:20881A001ACE001E72F00C1F12C6001D120B6B11C6001C120A6B10AE00C713124F12114F49 :2089FF00AE00C713104F120F4F120E2424CE001E1F1CCE001C1F1A1E20CF00345F1F201E52
:20883A0012102433CE001E1F0CCE001C1F0A7B04C700357B03C700345F1F037B07C700318C :208A1F0016CF00301E18CF00325F1F16AEFFFF1F18CE00222605CE0020273ECE001E72B0F8
:20885A007B06C700307B09C700337B08C700325F1F06AEFFFF1F08CE00222605CE00202705 :208A3F0000221F0CC6001DC200216B0BC6001CC200206B0AAE0064130C4F120B4F120A2429
:20887A003DCE001E72B000221F16C6001DC200216B15C6001CC200206B14AE006413164F29 :208A5F00185FCF0022CF0020C6500AAA80C7500A4B2E4B81CD83825B02CE00262605CE00D4
:20889A0012154F121424175FCF0022CF0020AE500AF6AA80F7AE8C7189CD81505B02CE008C :208A7F0024273ECE001E72B000261F08C6001DC200256B07C6001CC200246B06AE00641359
:2088BA00262605CE0024273DCE001E72B000261F1AC6001DC200256B19C6001CC200246B09 :208A9F00084F12074F120624185FCF0026CF0024C6500AAA10C7500A4B384B81CD83825BE6
:2088DA0018AE0064131A4F12194F121824175FCF0026CF0024AE500AF6AA10F7AE8C7B89C5 :208ABF0002CE002A2605CE0028273ECE001E72B0002A1F04C6001DC200296B03C6001CC2DC
:2088FA00CD81505B02CE002A2605CE0028273DCE001E72B0002A1F1EC6001DC200296B1D1B :208ADF0000286B02AE006413044F12034F120224185FCF002ACF0028C6500FA4FBC7500F7D
:20891A00C6001CC200286B1CAE0064131E4F121D4F121C24175FCF002ACF0028AE500FF61F :208AFF004B424B81CD83825B02CE002E2605CE002C273ECE001E72B0002E1F14C6001DC235
:20893A00A4FBF7AE8C8589CD81505B02CE002E2605CE002C273DCE001E72B0002E1F22C67C :208B1F00002D6B13C6001CC2002C6B12AE006413144F12134F121224185FCF002ECF002C8B
:20895A00001DC2002D6B21C6001CC2002C6B20AE006413224F12214F122024175FCF002E29 :208B3F00C6500AA4BFC7500A4B4C4B81CD83825B02965C89CD83995B024D2603CC89A47B35
:20897A00CF002CAE500AF6A4BFF7AE8C8F89CD81505B02961C000589CD81705B024D26036C :208B5F0001A1412603CC8C277B01A1422603CC8C2E7B01A1432603CC8D697B01A149260383
:20899A00CC87D17B05A1412603CC8A45A1422603CC8A59A1432603CC8BC6A1492603CC8B24 :208B7F00CC8D697B01A14B2603CC8C397B01A14C2603CC8C477B01A14D2603CC8C557B0105
:2089BA00C6A14B2603CC8A6AA14C2603CC8A7EA14D2603CC8A92A14E2603CC8AA6A14F26EF :208B9F00A14E2603CC8C637B01A14F2603CC8C717B01A1532603CC8C787B01A1592603CCB1
:2089DA0003CC8ABAA1532603CC8AC4A1592603CC8B16A15A2603CC8B87A1612744A162270A :208BBF008CC67B01A15A2603CC8D2E7B01A1612603CC8D697B01A1622603CC8D697B01A12D
:2089FA0054A1632603CC8BC6A1692603CC8BC6A16B2756A16C2763A16D2773A16E2603CCA3 :208BDF00632603CC8D697B01A1692603CC8D697B01A16B27417B01A16C27467B01A16D2720
:208A1A008A9CA16F2603CC8AB0A1732603CC8AC4A1792603CC8AD7A17A2603CC8B47CC8BD7 :208BFF004E7B01A16E27567B01A16F275E7B01A17327667B01A1792603CC8C8B7B01A17A99
:208A3A00BAAE500FF6AA04F7CC8BC6AE500FF6A4FBF7CC8BC6AE500AF6AA40F7CC8BC6AE3D :208C1F002603CC8CF5CC8D5D7215500FCC8D69721D500ACC8D69721B5005721A5005CC8D9A
:208A5A00500AF6A4BFF7CC8BC6AE5005F6A4DFF7AE5005F6AA20F7CC8BC6AE500AF6AA2023 :208C3F0069721A500ACC8D69721B500ACC8D697216500ACC8D697217500ACC8D697216503A
:208A7A00F7CC8BC6AE500AF6A4DFF7CC8BC6AE500AF6AA08F7CC8BC6AE500AF6A4F7F7CC13 :208C5F0000CC8D6972175000CC8D6972145000CC8D6972155000CC8D69AE80F4F62603CC5A
:208A9A008BC6AE5000F6AA08F7CC8BC6AE5000F6A4F7F7CC8BC6AE5000F6AA04F7CC8BC658 :208C7F008D695C8988CD86F0848520F0C6500FA5042707721E500ACC8D697214500FCE00BB
:208ABA00AE5000F6A4FBF7CC8BC61E01F64D2603CC8BC65C8988CD8535848520EFAE500F34 :208C9F001E90CE001CCF002290CF0020CE0022260FCE0020260AAE0001CF00225FCF00207C
:208ADA00F6A5042707721E500ACC8BC6AE500FF6AA04F790CE001ECE001C90CF0022CF004A :208CBF00A6616B01CC8D69C6500FA5042722CE001E90CE001CCF002A90CF0028CE002A2645
:208AFA0020CE0022260FCE0020260AAE0001CF00225FCF0020A6616B05CC8BC6AE500FF674 :208CDF000FCE0028260AAE0001CF002A5FCF0028721F500A2074C6500AA5402706721850B7
:208B1A00A504272290CE001ECE001C90CF002ACF0028CE002A260FCE0028260AAE0001CF92 :208CFF000A2067721C500ACE001E90CE001CCF002690CF0024CE0026260FCE0024260AAE05
:208B3A00002A5FCF0028721F500ACC8BC6AE500AF6A5402709AE500AF6AA10F7206EAE5045 :208D1F000001CF00265FCF0024A6626B01203BC6500AA5402722CE001E90CE001CCF002E6C
:208B5A000AF6AA40F790CE001ECE001C90CF0026CF0024CE0026260FCE0024260AAE000142 :208D3F0090CF002CCE002E260FCE002C260AAE0001CF002E5FCF002C7219500A200C4B5676
:208B7A00CF00265FCF0024A6626B05203FAE500AF6A540272290CE001ECE001C90CF002E9E :148D5F004B81CD83825B02CC89A47B0188CD86F084CC89A448
:208B9A00CF002CCE002E260FCE002C260AAE0001CF002E5FCF002CAE500AF6A4EFF7200CAB :208090005452494143303D005452494143313D00496E0041444356414C55453D004144430E
:208BBA00AE8C9989CD81505B02CC87D17B0588CD853584CC87D15B23815452494143303D0A :2080B0004D41583D004144434D494E3D004E5054533D00504B4559313D004E4B4559313DD6
:208BDA00005452494143313D00496E0041444356414C55453D004144434D41583D004144F1 :2080D000004E4B4559323D004F5554303D004F5554313D0052454C4159303D0052454C4111
:208BFA00434D494E3D004E5054533D00504B4559313D004E4B4559313D004E4B4559323D83 :2080F00059313D0061626343696B6C6D6E6F797A0049276D20616C6976652121210A436F96
:208C1A00004F5554303D004F5554313D0052454C4159303D0052454C4159313D0061626374 :208110006D6D616E6473206C6F6F6B73206C696B6520273A73796D626F6C23270A005245C0
:208C3A0043696B6C6D6E6F797A0049276D20616C6976652121210A436F6D6D616E6473208D :208130004C4159303D310A0052454C4159313D310A005452494143303D300A005452494131
:208C5A006C6F6F6B73206C696B6520273A73796D626F6C23270A0052454C4159303D310A7D :2081500043313D300A000A50524F544F3A0A412020202D207475726E206F666620747269C1
:208C7A000052454C4159313D310A005452494143303D300A005452494143313D300A000A75 :208170006163300A422020202D207475726E206F6666207472696163310A632F43202D202E
:208C9A0050524F544F3A0A612F41202D207475726E206F6E2F6F6666207472696163300A07 :20819000636865636B20696E302F310A692F49202D2073686F772063757272656E7420618D
:208CBA00622F42202D207475726E206F6E2F6F6666207472696163310A632F43202D206317 :2081B0006D706C2E2028414455290A6B2F4B202D207365742F726573657420504B45593169
:208CDA006865636B20696E302F310A692F49202D2073686F772063757272656E7420616D2E :2081D0000A6C2F4C202D207365742F7265736574204E4B4559310A6D2F4D202D207365745F
:208CFA00706C2E2028414455290A6B2F4B202D207365742F726573657420504B4559310A77 :2081F0002F7265736574204E4B4559320A6E2F6F202D206163746976617465206F75743018
:208D1A006C2F4C202D207365742F7265736574204E4B4559310A6D2F4D202D207365742FE4 :208210002F310A4E2F4F202D2064656163746976617465206F7574302F310A732F53202D3D
:208D3A007265736574204E4B4559320A6E2F6F202D206163746976617465206F7574302FC2 :208230002073686F7720616C6C207374617469737469630A792F59202D207475726E206F2C
:208D5A00310A4E2F4F202D2064656163746976617465206F7574302F310A732F53202D20F7 :208250006E2F6F66662072656C6179300A7A2F5A202D207475726E206F6E2F6F666620728D
:208D7A0073686F7720616C6C207374617469737469630A792F59202D207475726E206F6E89 :07827000656C6179310A0021
:208D9A002F6F66662072656C6179300A7A2F5A202D207475726E206F6E2F6F666620726541 :1A82790000000000000000000000000000000000000000000000FFFF0000ED
:068DBA006C6179310A0032 :208D730052030F030F017B0A484F494D262E160C1E0A905859170C1F0A1E08130C7B0712B3
:1A8E8C0000000000000000000000000000000000000000000000FFFF0000CE :208D93000B7B06120A240D160C1E0A549056170C1F0A20080C017B016B0320CA7B036B0223
:208DC00052030F030F017B0A484F494D262E160C1E0A905859170C1F0A1E08130C7B071266 :208DB3001E0872F00C7B07120B90977B06120A25061F0890951706160C1E0A549056170C6E
:208DE0000B7B06120A240D160C1E0A549056170C1F0A20080C017B016B0320CA7B036B02D6 :208DD3001F0A7B020A024D26D71E0816065B038152065F1F051F03A6206B027B09484F49CF
:208E00001E0872F00C7B07120B90977B06120A25061F0890951706160C1E0A549056170C20 :208DF3006B01160B1E09905859170B1F0916051E0390585917051F030D0127067B06AA01FF
:208E20001F0A7B020A024D26D71E0816065B038152065F1F051F03A6206B027B09484F4981 :208E13006B061E0572F00F7B04120E90977B03120D250C1F05909517037B0CAA016B0C0A90
:208E40006B01160B1E09905859170B1F0916051E0390585917051F030D0127067B06AA01B1 :0A8E33000226B81E0B16095B06812B
:208E60006B061E0572F00F7B04120E90977B03120D250C1F05909517037B0CAA016B0C0A43
:0A8E80000226B81E0B16095B0681DE
:00000001FF :00000001FF

View File

@ -1,4 +1,4 @@
update=Вс 28 дек 2014 15:05:11 update=Пн 18 ноя 2019 14:37:39
last_client=kicad last_client=kicad
[general] [general]
version=1 version=1
@ -48,48 +48,4 @@ NetIExt=net
EquName1=devcms EquName1=devcms
[eeschema] [eeschema]
version=1 version=1
PageLayoutDescrFile=
SubpartIdSeparator=0
SubpartFirstId=65
LibDir= LibDir=
NetFmtName=
SpiceForceRefPrefix=0
SpiceUseNetNumbers=0
RptD_X=0
RptD_Y=100
RptLab=1
LabSize=60
[eeschema/libraries]
LibName1=power
LibName2=device
LibName3=transistors
LibName4=conn
LibName5=linear
LibName6=regul
LibName7=74xx
LibName8=cmos4000
LibName9=adc-dac
LibName10=memory
LibName11=xilinx
LibName12=special
LibName13=microcontrollers
LibName14=dsp
LibName15=microchip
LibName16=analog_switches
LibName17=motorola
LibName18=texas
LibName19=intel
LibName20=audio
LibName21=interface
LibName22=digital-audio
LibName23=philips
LibName24=display
LibName25=cypress
LibName26=siliconi
LibName27=opto
LibName28=atmel
LibName29=contrib
LibName30=valves
LibName31=stm8s105k4t6c
LibName32=tda2822
LibName33=CD74HC154

3
LEDS_BT/LEDs.config Normal file
View File

@ -0,0 +1,3 @@
// Add predefined macros for your project here. For example:
// #define THE_ANSWER 42
#define STM8S103

1
LEDS_BT/LEDs.creator Normal file
View File

@ -0,0 +1 @@
[General]

6
LEDS_BT/LEDs.files Normal file
View File

@ -0,0 +1,6 @@
interrupts.c
interrupts.h
main.c
ports_definition.h
uart.c
uart.h

1
LEDS_BT/LEDs.includes Normal file
View File

@ -0,0 +1 @@
../

34
LEDS_BT/Makefile Normal file
View File

@ -0,0 +1,34 @@
NAME=uart
SDCC=sdcc
CCFLAGS=-DSTM8S103 -I../ -I/usr/share/sdcc/include -mstm8 --out-fmt-ihx
LDFLAGS= -mstm8 --out-fmt-ihx -lstm8
FLASHFLAGS=-cstlinkv2 -pstm8s103f2
SRC=$(wildcard *.c)
OBJ=$(SRC:%.c=%.rel)
TRASH=$(OBJ) $(SRC:%.c=%.rst) $(SRC:%.c=%.asm) $(SRC:%.c=%.lst) $(SRC:%.c=%.cdb)
TRASH+=$(SRC:%.c=%.sym) $(NAME).lk $(NAME).map
INDEPENDENT_HEADERS=../stm8s.h ports_definition.h Makefile
all: $(NAME).ihx
#$(SRC) : %.c : %.h $(INDEPENDENT_HEADERS)
# @touch $@
#
#%.h: ;
clean:
rm -f $(TRASH)
load: $(NAME).ihx
stm8flash $(FLASHFLAGS) -w $(NAME).ihx
%.rel: %.c
$(SDCC) $(CCFLAGS) -c $<
$(NAME).ihx: $(OBJ)
$(SDCC) $(LDFLAGS) $(OBJ) -o $(NAME).ihx
.PHONY: all

2
LEDS_BT/Readme Normal file
View File

@ -0,0 +1,2 @@
Setup "bluetooth control 8-lamp", connect STM8S103F2 to bluetooth HC-06.
Manage up to 8 LEDs controlled by bluetooth module HC-06

167
LEDS_BT/interrupts.c Normal file
View File

@ -0,0 +1,167 @@
/*
* interrupts.c
*
* Copyright 2018 Edward V. Emelianoff <eddy@sao.ru>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#include "ports_definition.h"
#include "uart.h"
// Top Level Interrupt
INTERRUPT_HANDLER(TLI_IRQHandler, 0){}
// Auto Wake Up Interrupt
INTERRUPT_HANDLER(AWU_IRQHandler, 1){}
// Clock Controller Interrupt
INTERRUPT_HANDLER(CLK_IRQHandler, 2){}
// External Interrupt PORTA
INTERRUPT_HANDLER(EXTI_PORTA_IRQHandler, 3){}
// External Interrupt PORTB
INTERRUPT_HANDLER(EXTI_PORTB_IRQHandler, 4){}
// External Interrupt PORTC
INTERRUPT_HANDLER(EXTI_PORTC_IRQHandler, 5){
}
// External Interrupt PORTD
INTERRUPT_HANDLER(EXTI_PORTD_IRQHandler, 6){
}
// External Interrupt PORTE
INTERRUPT_HANDLER(EXTI_PORTE_IRQHandler, 7){}
#ifdef STM8S903
// External Interrupt PORTF
INTERRUPT_HANDLER(EXTI_PORTF_IRQHandler, 8){}
#endif // STM8S903
#if defined (STM8S208) || defined (STM8AF52Ax)
// CAN RX Interrupt routine.
INTERRUPT_HANDLER(CAN_RX_IRQHandler, 8){}
// CAN TX Interrupt routine.
INTERRUPT_HANDLER(CAN_TX_IRQHandler, 9){}
#endif // STM8S208 || STM8AF52Ax
// SPI Interrupt routine.
INTERRUPT_HANDLER(SPI_IRQHandler, 10){}
// Timer1 Update/Overflow/Trigger/Break Interrupt
INTERRUPT_HANDLER(TIM1_UPD_OVF_TRG_BRK_IRQHandler, 11){
if(TIM1_SR1 & TIM_SR1_UIF){ // update interrupt
Global_time++; // increase timer
}
TIM1_SR1 = 0; // clear all interrupt flag
}
// Timer1 Capture/Compare Interrupt routine.
INTERRUPT_HANDLER(TIM1_CAP_COM_IRQHandler, 12){}
#ifdef STM8S903
// Timer5 Update/Overflow/Break/Trigger Interrupt
INTERRUPT_HANDLER(TIM5_UPD_OVF_BRK_TRG_IRQHandler, 13){}
// Timer5 Capture/Compare Interrupt
INTERRUPT_HANDLER(TIM5_CAP_COM_IRQHandler, 14){}
#else // STM8S208, STM8S207, STM8S105 or STM8S103 or STM8AF62Ax or STM8AF52Ax or STM8AF626x
// Timer2 Update/Overflow/Break Interrupt
INTERRUPT_HANDLER(TIM2_UPD_OVF_BRK_IRQHandler, 13){
}
// Timer2 Capture/Compare Interrupt
INTERRUPT_HANDLER(TIM2_CAP_COM_IRQHandler, 14){
}
#endif // STM8S903
#if defined (STM8S208) || defined(STM8S207) || defined(STM8S007) || defined(STM8S105) || \
defined(STM8S005) || defined (STM8AF62Ax) || defined (STM8AF52Ax) || defined (STM8AF626x)
// Timer3 Update/Overflow/Break Interrupt
INTERRUPT_HANDLER(TIM3_UPD_OVF_BRK_IRQHandler, 15){}
// Timer3 Capture/Compare Interrupt
INTERRUPT_HANDLER(TIM3_CAP_COM_IRQHandler, 16){}
#endif // STM8S208, STM8S207 or STM8S105 or STM8AF62Ax or STM8AF52Ax or STM8AF626x
#if defined (STM8S208) || defined(STM8S207) || defined(STM8S007) || defined(STM8S103) || \
defined(STM8S003) || defined (STM8AF62Ax) || defined (STM8AF52Ax) || defined (STM8S903)
// UART1 TX Interrupt
INTERRUPT_HANDLER(UART1_TX_IRQHandler, 17){}
// UART1 RX Interrupt
INTERRUPT_HANDLER(UART1_RX_IRQHandler, 18){
U8 rb;
unsigned long Tlast = 0;
if(UART1_SR & UART_SR_RXNE){ // data received
rb = UART1_DR; // read received byte & clear RXNE flag
if(uart_ready) return; // omit everything before command read
if(Global_time - Tlast < CMD_PAUSE){ // need a little pause
Tlast = Global_time;
return;
}
Tlast = Global_time;
//if(rb == '+') return; // answer when disconnected
UART_rx_cmd = rb; // put received byte into cycled buffer
uart_ready = 1;
}
}
#endif // STM8S208 or STM8S207 or STM8S103 or STM8S903 or STM8AF62Ax or STM8AF52Ax
// I2C Interrupt
INTERRUPT_HANDLER(I2C_IRQHandler, 19){}
#if defined(STM8S105) || defined(STM8S005) || defined (STM8AF626x)
// UART2 TX interrupt
INTERRUPT_HANDLER(UART2_TX_IRQHandler, 20){}
// UART2 RX interrupt
INTERRUPT_HANDLER(UART2_RX_IRQHandler, 21){
}
#endif // STM8S105 or STM8AF626x
#if defined(STM8S207) || defined(STM8S007) || defined(STM8S208) || defined (STM8AF52Ax) || defined (STM8AF62Ax)
// UART3 TX interrupt
INTERRUPT_HANDLER(UART3_TX_IRQHandler, 20){}
// UART3 RX interrupt
INTERRUPT_HANDLER(UART3_RX_IRQHandler, 21){}
#endif // STM8S208 or STM8S207 or STM8AF52Ax or STM8AF62Ax
#if defined(STM8S207) || defined(STM8S007) || defined(STM8S208) || defined (STM8AF52Ax) || defined (STM8AF62Ax)
// ADC2 interrupt
INTERRUPT_HANDLER(ADC2_IRQHandler, 22){}
#else
INTERRUPT_HANDLER(ADC1_IRQHandler, 22){ // read ADC value
}
#endif // STM8S208 or STM8S207 or STM8AF52Ax or STM8AF62Ax
#ifdef STM8S903
// Timer6 Update/Overflow/Trigger Interrupt
INTERRUPT_HANDLER(TIM6_UPD_OVF_TRG_IRQHandler, 23){}
#else // STM8S208, STM8S207, STM8S105 or STM8S103 or STM8AF52Ax or STM8AF62Ax or STM8AF626x
// Timer4 Update/Overflow Interrupt
INTERRUPT_HANDLER(TIM4_UPD_OVF_IRQHandler, 23){
}
#endif // STM8S903
// Eeprom EEC Interrupt
INTERRUPT_HANDLER(EEPROM_EEC_IRQHandler, 24){}

147
LEDS_BT/interrupts.h Normal file
View File

@ -0,0 +1,147 @@
/*
* interrupts.h
*
* Copyright 2014 Edward V. Emelianoff <eddy@sao.ru>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#pragma once
#ifndef __INTERRUPTS_H__
#define __INTERRUPTS_H__
#include "stm8s.h"
extern volatile U8 ADC_ready; // flag: data ready
extern volatile int ADC_value; // value of last ADC measurement
// Top Level Interrupt
INTERRUPT_DEFINITION(TLI_IRQHandler, 0);
// Auto Wake Up Interrupt
INTERRUPT_DEFINITION(AWU_IRQHandler, 1);
// Clock Controller Interrupt
INTERRUPT_DEFINITION(CLK_IRQHandler, 2);
// External Interrupt PORTA
INTERRUPT_DEFINITION(EXTI_PORTA_IRQHandler, 3);
// External Interrupt PORTB
INTERRUPT_DEFINITION(EXTI_PORTB_IRQHandler, 4);
// External Interrupt PORTC
INTERRUPT_DEFINITION(EXTI_PORTC_IRQHandler, 5);
// External Interrupt PORTD
INTERRUPT_DEFINITION(EXTI_PORTD_IRQHandler, 6);
// External Interrupt PORTE
INTERRUPT_DEFINITION(EXTI_PORTE_IRQHandler, 7);
#ifdef STM8S903
// External Interrupt PORTF
INTERRUPT_DEFINITION(EXTI_PORTF_IRQHandler, 8);
#endif // STM8S903
#if defined (STM8S208) || defined (STM8AF52Ax)
// CAN RX Interrupt routine.
INTERRUPT_DEFINITION(CAN_RX_IRQHandler, 8);
// CAN TX Interrupt routine.
INTERRUPT_DEFINITION(CAN_TX_IRQHandler, 9);
#endif // STM8S208 || STM8AF52Ax
// SPI Interrupt routine.
INTERRUPT_DEFINITION(SPI_IRQHandler, 10);
// Timer1 Update/Overflow/Trigger/Break Interrupt
INTERRUPT_DEFINITION(TIM1_UPD_OVF_TRG_BRK_IRQHandler, 11);
// Timer1 Capture/Compare Interrupt routine.
INTERRUPT_DEFINITION(TIM1_CAP_COM_IRQHandler, 12);
#ifdef STM8S903
// Timer5 Update/Overflow/Break/Trigger Interrupt
INTERRUPT_DEFINITION(TIM5_UPD_OVF_BRK_TRG_IRQHandler, 13);
// Timer5 Capture/Compare Interrupt
INTERRUPT_DEFINITION(TIM5_CAP_COM_IRQHandler, 14);
#else // STM8S208, STM8S207, STM8S105 or STM8S103 or STM8AF62Ax or STM8AF52Ax or STM8AF626x
// Timer2 Update/Overflow/Break Interrupt
INTERRUPT_DEFINITION(TIM2_UPD_OVF_BRK_IRQHandler, 13);
// Timer2 Capture/Compare Interrupt
INTERRUPT_DEFINITION(TIM2_CAP_COM_IRQHandler, 14);
#endif // STM8S903
#if defined (STM8S208) || defined(STM8S207) || defined(STM8S007) || defined(STM8S105) || \
defined(STM8S005) || defined (STM8AF62Ax) || defined (STM8AF52Ax) || defined (STM8AF626x)
// Timer3 Update/Overflow/Break Interrupt
INTERRUPT_DEFINITION(TIM3_UPD_OVF_BRK_IRQHandler, 15);
// Timer3 Capture/Compare Interrupt
INTERRUPT_DEFINITION(TIM3_CAP_COM_IRQHandler, 16);
#endif // STM8S208, STM8S207 or STM8S105 or STM8AF62Ax or STM8AF52Ax or STM8AF626x
#if defined (STM8S208) || defined(STM8S207) || defined(STM8S007) || defined(STM8S103) || \
defined(STM8S003) || defined (STM8AF62Ax) || defined (STM8AF52Ax) || defined (STM8S903)
// UART1 TX Interrupt
INTERRUPT_DEFINITION(UART1_TX_IRQHandler, 17);
// UART1 RX Interrupt
INTERRUPT_DEFINITION(UART1_RX_IRQHandler, 18);
#endif // STM8S208 or STM8S207 or STM8S103 or STM8S903 or STM8AF62Ax or STM8AF52Ax
// I2C Interrupt
INTERRUPT_DEFINITION(I2C_IRQHandler, 19);
#if defined(STM8S105) || defined(STM8S005) || defined (STM8AF626x)
// UART2 TX interrupt
INTERRUPT_DEFINITION(UART2_TX_IRQHandler, 20);
// UART2 RX interrupt
INTERRUPT_DEFINITION(UART2_RX_IRQHandler, 21);
#endif // STM8S105 or STM8AF626x
#if defined(STM8S207) || defined(STM8S007) || defined(STM8S208) || defined (STM8AF52Ax) || defined (STM8AF62Ax)
// UART3 TX interrupt
INTERRUPT_DEFINITION(UART3_TX_IRQHandler, 20);
// UART3 RX interrupt
INTERRUPT_DEFINITION(UART3_RX_IRQHandler, 21);
#endif // STM8S208 or STM8S207 or STM8AF52Ax or STM8AF62Ax
#if defined(STM8S207) || defined(STM8S007) || defined(STM8S208) || defined (STM8AF52Ax) || defined (STM8AF62Ax)
// ADC2 interrupt
INTERRUPT_DEFINITION(ADC2_IRQHandler, 22);
#else // STM8S105, STM8S103 or STM8S903 or STM8AF626x
// ADC1 interrupt
INTERRUPT_DEFINITION(ADC1_IRQHandler, 22);
#endif // STM8S208 or STM8S207 or STM8AF52Ax or STM8AF62Ax
#ifdef STM8S903
// Timer6 Update/Overflow/Trigger Interrupt
INTERRUPT_DEFINITION(TIM6_UPD_OVF_TRG_IRQHandler, 23);
#else // STM8S208, STM8S207, STM8S105 or STM8S103 or STM8AF52Ax or STM8AF62Ax or STM8AF626x
// Timer4 Update/Overflow Interrupt
INTERRUPT_DEFINITION(TIM4_UPD_OVF_IRQHandler, 23);
#endif // STM8S903
// Eeprom EEC Interrupt
INTERRUPT_DEFINITION(EEPROM_EEC_IRQHandler, 24);
#endif // __INTERRUPTS_H__

141
LEDS_BT/main.c Normal file
View File

@ -0,0 +1,141 @@
/*
* blinky.c
*
* Copyright 2014 Edward V. Emelianoff <eddy@sao.ru>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#include "ports_definition.h"
#include "interrupts.h"
#include "uart.h"
volatile unsigned long Global_time = 0L; // global time in ms
/*
LED channels:
0 - D3
1 - D2
2 - D1
3 - C7
4 - C6
5 - C5
6 - C4
7 - C3
*/
/* don't work!
static U8* LEDODRS[8] = {(U8*)0x500F, &PD_ODR, &PD_ODR, &PC_ODR, &PC_ODR, &PC_ODR, &PC_ODR, &PC_ODR};
static const U8 LEDPINS[8] = {1<<3, 1<<2, 1<<1, 1<<7, 1<<6, 1<<5, 1<<4, 1<<3};
*/
int main() {
unsigned long T = 0L;
U8 rb;
CFG_GCR |= 1; // disable SWIM
// Configure clocking
CLK_CKDIVR = 0; // F_HSI = 16MHz, f_CPU = 16MHz
// TIM1 - system timer (1ms)
TIM1_PSCRH = 0;
TIM1_PSCRL = 15; // LSB should be written last as it updates prescaler
// auto-reload each 1ms: TIM_ARR = 1000 = 0x03E8
TIM1_ARRH = 0x03;
TIM1_ARRL = 0xE8;
// interrupts: update
TIM1_IER = TIM_IER_UIE;
// auto-reload + interrupt on overflow + enable
TIM1_CR1 = TIM_CR1_APRE | TIM_CR1_URS | TIM_CR1_CEN;
// leds - opendrain
PD_DDR = 0x0e;
PC_DDR = 0xf8;
/*
PD_CR1 = 0x0e;
PC_CR1 = 0xf8;
*/
PORT(LED_PORT, DDR) |= LED_PIN;
PORT(LED_PORT, CR1) |= LED_PIN;
uart_init();
// enable all interrupts
enableInterrupts();
// Loop
do{
if(Global_time - T > 499){
T = Global_time;
PORT(LED_PORT, ODR) ^= LED_PIN; // blink on-board LED
}
if(uart_read_cmd(&rb)){ // buffer isn't empty
switch(rb){
case '1':
PD_ODR |= (1<<3);
break;
case '2':
PD_ODR |= (1<<2);
break;
case '3':
PD_ODR |= (1<<1);
break;
case '4':
PC_ODR |= (1<<7);
break;
case '5':
PC_ODR |= (1<<6);
break;
case '6':
PC_ODR |= (1<<5);
break;
case '7':
PC_ODR |= (1<<4);
break;
case '8':
PC_ODR |= (1<<3);
break;
case 'A':
PD_ODR &= (1<<3);
break;
case 'B':
PD_ODR &= (1<<2);
break;
case 'C':
PD_ODR &= (1<<1);
break;
case 'D':
PC_ODR &= (1<<7);
break;
case 'E':
PC_ODR &= (1<<6);
break;
case 'F':
PC_ODR &= (1<<5);
break;
case 'G':
PC_ODR &= (1<<4);
break;
case 'H':
PC_ODR &= (1<<3);
break;
case '9':
PD_ODR |= 0x0e;
PC_ODR |= 0xf8;
break;
case 'I':
PD_ODR &= ~0x0e;
PC_ODR &= ~0xf8;
break;
}
}
}while(1);
}

View File

@ -0,0 +1,43 @@
/*
* ports_definition.h - definition of ports pins & so on
*
* Copyright 2014 Edward V. Emelianov <eddy@sao.ru, edward.emelianoff@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#pragma once
#ifndef __PORTS_DEFINITION_H__
#define __PORTS_DEFINITION_H__
#include "stm8s.h"
// minimal pause between commands (ms)
#define CMD_PAUSE 100
// macro for using in port constructions like PORT(LED_PORT, ODR) = xx
#define CONCAT(a, b) a ## _ ## b
#define PORT(a, b) CONCAT(a , b)
// on-board LED - PB5
#define LED_PORT PB
#define LED_PIN GPIO_PIN5
// UART2_TX
#define UART_PORT PD
#define UART_TX_PIN GPIO_PIN5
#endif // __PORTS_DEFINITION_H__

67
LEDS_BT/uart.c Normal file
View File

@ -0,0 +1,67 @@
/*
* blinky.c
*
* Copyright 2018 Edward V. Emelianoff <eddy@sao.ru>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#include "ports_definition.h"
#include "uart.h"
#include "interrupts.h"
U8 UART_rx_cmd; // command received
volatile U8 uart_ready = 0;// command ready flag
/**
* Send one byte through UART
* @param byte - data to send
*/
void uart_send_byte(U8 byte){
while(!(UART1_SR & UART_SR_TXE)); // wait until previous byte transmitted
UART1_DR = byte;
}
void uart_write(char *str){
while(*str){
while(!(UART1_SR & UART_SR_TXE));
UART1_CR2 |= UART_CR2_TEN;
UART1_DR = *str++;
}
}
/**
* Read one byte from Rx buffer
* @param byte - where to store data read
* @return 1 in case of non-empty buffer
*/
U8 uart_read_cmd(U8 *byte){
if(!uart_ready) // buffer is empty
return 0;
*byte = UART_rx_cmd;
uart_ready = 0;
return 1;
}
void uart_init(){
// PD5 - UART1_TX
PORT(UART_PORT, DDR) |= UART_TX_PIN;
PORT(UART_PORT, CR1) |= UART_TX_PIN;
// Configure UART
// 8 bit, no parity, 1 stop (UART_CR1/3 = 0 - reset value)
// 9600 on 16MHz: DIV=0x0693 -> BRR1=0x68, BRR2=0x03
UART1_BRR1 = 0x68; UART1_BRR2 = 0x03;
UART1_CR2 = UART_CR2_TEN | UART_CR2_REN | UART_CR2_RIEN; // Allow RX/TX, generate ints on rx
}

46
LEDS_BT/uart.h Normal file
View File

@ -0,0 +1,46 @@
/*
* blinky.h
*
* Copyright 2018 Edward V. Emelianoff <eddy@sao.ru>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#pragma once
#ifndef __MAIN_H__
#define __MAIN_H__
#include "stm8s.h"
extern volatile unsigned long Global_time; // global time in ms
#define UART_BUF_LEN 8 // max 7 bytes transmited in on operation
extern U8 UART_rx_cmd;
extern volatile U8 uart_ready;
void uart_send_byte(U8 byte);
void uart_write(char *str);
void newline();
void printUint(U8 *val, U8 len);
void print_long(long Number);
void error_msg(char *msg);
void uart_init();
U8 uart_read_cmd(U8 *byte);
void printUHEX(U8 val);
#define check_UART_pointer(x) do{if(x == UART_BUF_LEN) x = 0;}while(0)
#endif // __MAIN_H__

30
LEDS_BT/uart.ihx Normal file
View File

@ -0,0 +1,30 @@
:20809100808080808080808080C6525544241BCE00051C0001C60004A9009097C60003A963
:2080B100009095CF000590CF000335005255808080808088C65230A5202741C652316B0146
:2080D100725D0002263690CE0005CE000390A300649FA2009EA200240EC60006C60005C687
:2080F1000004C600032015C60006C60005C60004C600037B01C700013501000284808080C3
:0281110080806C
:20811300C652302AFBAE52317B03F7811E03F6260181C652302AFB72165235F65CC75231E1
:2081330020EC81725D000226024F811E03C60001F7725F0002A60181721A5011721A501221
:0D8153003568523235035233352C523581D8
:01808C0000F3
:208000008200806F82000000820080918200809282008093820080948200809582008096EC
:2080200082008097820080988200000082000000820080998200809A820080C0820080C14D
:20804000820080C28200000082000000820080C3820080C48200810F8200000082000000B7
:0C806000820081108200811182008112D8
:1D806F00AE00012707724F00005A26F9AE00052709D6808BD700015A26F7CC806C12
:03806C00CC816064
:2081600052095F1F081F06C67F60905FAA01C77F60350050C635005260350F526135035261
:208180006235E852633501525435855250350E501135F8500C721A5007C65008AA20C75064
:2081A00008CD814B9ACE000572F0081F04C6000412076B03C6000312066B02AE01F31304CC
:2081C0004F12034F12022412CE00051F08CE00031F06C65005A820C75005965C89CD8136B4
:2081E0005B024D27C07B01A13125BA7B01A14922B47B01A0315F9758DE81FCFC822E82352C
:20820000823C8243824A82518258825F82BE81A581A581A581A581A581A581A5826682715C
:20822000827C82878292829D82A882B382D37216500FCC81A57214500FCC81A57212500FBD
:20824000CC81A5721E500ACC81A5721C500ACC81A5721A500ACC81A57218500ACC81A57256
:2082600016500ACC81A5C6500FA408C7500FCC81A5C6500FA404C7500FCC81A5C6500FA405
:2082800002C7500FCC81A5C6500AA480C7500ACC81A5C6500AA440C7500ACC81A5C6500A36
:2082A000A420C7500ACC81A5C6500AA410C7500ACC81A5C6500AA408C7500ACC81A5C6500B
:2082C0000FAA0EC7500FC6500A905FAAF8C7500ACC81A5C6500FA4F1C7500FC6500AA40742
:0682E000C7500ACC81A585
:04808D0000000000EF
:00000001FF

View File

@ -1,6 +1,20 @@
EESchema-LIBRARY Version 2.3 EESchema-LIBRARY Version 2.4
#encoding utf-8 #encoding utf-8
# #
# +3.3V
#
DEF +3.3V #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -40 30 H I C CNN
F1 "+3.3V" 0 110 30 H V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
DRAW
C 0 60 20 0 1 0 N
P 3 0 1 0 0 0 0 40 0 40 N
X +3.3V 1 0 0 0 U 30 30 0 0 W N
ENDDRAW
ENDDEF
#
# +3.3V-RESCUE-stepper # +3.3V-RESCUE-stepper
# #
DEF +3.3V-RESCUE-stepper #PWR 0 0 Y Y 1 F P DEF +3.3V-RESCUE-stepper #PWR 0 0 Y Y 1 F P
@ -9,9 +23,29 @@ F1 "+3.3V-RESCUE-stepper" 0 110 30 H V C CNN
F2 "" 0 0 60 H V C CNN F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN F3 "" 0 0 60 H V C CNN
DRAW DRAW
X +3.3V 1 0 0 0 U 30 30 0 0 W N
C 0 60 20 0 1 0 N C 0 60 20 0 1 0 N
P 3 0 1 0 0 0 0 40 0 40 N P 3 0 1 0 0 0 0 40 0 40 N
X +3.3V 1 0 0 0 U 30 30 0 0 W N
ENDDRAW
ENDDEF
#
# C
#
DEF C C 0 10 N Y 1 F N
F0 "C" 0 100 40 H V L CNN
F1 "C" 6 -85 40 H V L CNN
F2 "" 38 -150 30 H V C CNN
F3 "" 0 0 60 H V C CNN
$FPLIST
SM*
C?
C1-1
$ENDFPLIST
DRAW
P 2 0 1 20 -80 -30 80 -30 N
P 2 0 1 20 -80 30 80 30 N
X ~ 1 0 200 170 D 40 40 1 1 P
X ~ 2 0 -200 170 U 40 40 1 1 P
ENDDRAW ENDDRAW
ENDDEF ENDDEF
# #
@ -35,6 +69,110 @@ X ~ 2 0 -200 170 U 40 40 1 1 P
ENDDRAW ENDDRAW
ENDDEF ENDDEF
# #
# CONN_14
#
DEF CONN_14 P 0 40 Y N 1 F N
F0 "P" -30 0 60 V V C CNN
F1 "CONN_14" 80 0 60 V V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
DRAW
S -100 700 150 -700 0 1 0 N
X P1 1 -350 650 250 R 50 50 1 1 P I
X P10 10 -350 -250 250 R 50 50 1 1 P I
X P11 11 -350 -350 250 R 50 50 1 1 P I
X P12 12 -350 -450 250 R 50 50 1 1 P I
X P13 13 -350 -550 250 R 50 50 1 1 P I
X P14 14 -350 -650 250 R 50 50 1 1 P I
X P2 2 -350 550 250 R 50 50 1 1 P I
X P3 3 -350 450 250 R 50 50 1 1 P I
X P4 4 -350 350 250 R 50 50 1 1 P I
X P5 5 -350 250 250 R 50 50 1 1 P I
X P6 6 -350 150 250 R 50 50 1 1 P I
X P7 7 -350 50 250 R 50 50 1 1 P I
X P8 8 -350 -50 250 R 50 50 1 1 P I
X P9 9 -350 -150 250 R 50 50 1 1 P I
ENDDRAW
ENDDEF
#
# CONN_3
#
DEF CONN_3 K 0 40 Y N 1 F N
F0 "K" -50 0 50 V V C CNN
F1 "CONN_3" 50 0 40 V V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
DRAW
S -100 150 100 -150 0 1 0 N
X P1 1 -350 100 250 R 60 60 1 1 P I
X PM 2 -350 0 250 R 60 60 1 1 P I
X P3 3 -350 -100 250 R 60 60 1 1 P I
ENDDRAW
ENDDEF
#
# CONN_4
#
DEF CONN_4 P 0 40 Y N 1 F N
F0 "P" -50 0 50 V V C CNN
F1 "CONN_4" 50 0 50 V V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
DRAW
S -100 200 100 -200 0 1 0 N
X P1 1 -350 150 250 R 50 50 1 1 P I
X P2 2 -350 50 250 R 50 50 1 1 P I
X P3 3 -350 -50 250 R 50 50 1 1 P I
X P4 4 -350 -150 250 R 50 50 1 1 P I
ENDDRAW
ENDDEF
#
# CONN_5
#
DEF CONN_5 P 0 40 Y Y 1 F N
F0 "P" -50 0 50 V V C CNN
F1 "CONN_5" 50 0 50 V V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
DRAW
S -100 250 100 -250 0 1 0 f
X ~ 1 -400 200 300 R 60 60 1 1 P I
X ~ 2 -400 100 300 R 60 60 1 1 P I
X ~ 3 -400 0 300 R 60 60 1 1 P I
X ~ 4 -400 -100 300 R 60 60 1 1 P I
X ~ 5 -400 -200 300 R 60 60 1 1 P I
ENDDRAW
ENDDEF
#
# CONN_5_
#
DEF CONN_5_ P 0 40 Y Y 1 F N
F0 "P" 50 -300 50 H V C CNN
F1 "CONN_5_" 150 0 50 V V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
DRAW
S -100 250 200 -250 0 1 0 f
X ~ 1 -400 200 300 R 60 60 1 1 w I
X ~ 2 -400 100 300 R 60 60 1 1 w I
X ~ 3 -400 0 300 R 60 60 1 1 O I
X ~ 4 -400 -100 300 R 60 60 1 1 I I
X ~ 5 -400 -200 300 R 60 60 1 1 w I
ENDDRAW
ENDDEF
#
# GND
#
DEF ~GND #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 0 30 H I C CNN
F1 "GND" 0 -70 30 H I C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
DRAW
P 4 0 1 0 -50 0 0 -50 50 0 -50 0 N
X GND 1 0 0 0 U 30 30 1 1 W N
ENDDRAW
ENDDEF
#
# GND-RESCUE-stepper # GND-RESCUE-stepper
# #
DEF ~GND-RESCUE-stepper #PWR 0 0 Y Y 1 F P DEF ~GND-RESCUE-stepper #PWR 0 0 Y Y 1 F P
@ -48,6 +186,32 @@ X GND 1 0 0 0 U 30 30 1 1 W N
ENDDRAW ENDDRAW
ENDDEF ENDDEF
# #
# LED
#
DEF LED D 0 40 Y N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "LED" 0 -100 50 H V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
$FPLIST
LED-3MM
LED-5MM
LED-10MM
LED-0603
LED-0805
LED-1206
LEDV
$ENDFPLIST
DRAW
P 2 0 1 0 50 50 50 -50 N
P 3 0 1 0 -50 50 50 0 -50 -50 F
P 3 0 1 0 65 -40 110 -80 105 -55 N
P 3 0 1 0 80 -25 125 -65 120 -40 N
X A 1 -200 0 150 R 40 40 1 1 P
X K 2 200 0 150 L 40 40 1 1 P
ENDDRAW
ENDDEF
#
# LED-RESCUE-stepper # LED-RESCUE-stepper
# #
DEF LED-RESCUE-stepper D 0 40 Y N 1 F N DEF LED-RESCUE-stepper D 0 40 Y N 1 F N
@ -74,6 +238,27 @@ X K 2 200 0 150 L 40 40 1 1 P
ENDDRAW ENDDRAW
ENDDEF ENDDEF
# #
# R
#
DEF R R 0 0 N Y 1 F N
F0 "R" 80 0 40 V V C CNN
F1 "R" 7 1 40 V V C CNN
F2 "" -70 0 30 V V C CNN
F3 "" 0 0 30 H V C CNN
$FPLIST
R?
SM0603
SM0805
R?-*
SM1206
$ENDFPLIST
DRAW
S -40 150 40 -150 0 1 12 N
X ~ 1 0 250 100 D 60 60 1 1 P
X ~ 2 0 -250 100 U 60 60 1 1 P
ENDDRAW
ENDDEF
#
# R-RESCUE-stepper # R-RESCUE-stepper
# #
DEF R-RESCUE-stepper R 0 0 N Y 1 F N DEF R-RESCUE-stepper R 0 0 N Y 1 F N
@ -95,4 +280,19 @@ X ~ 2 0 -250 100 U 60 60 1 1 P
ENDDRAW ENDDRAW
ENDDEF ENDDEF
# #
# SW_PUSH
#
DEF SW_PUSH SW 0 40 N N 1 F N
F0 "SW" 150 110 50 H V C CNN
F1 "SW_PUSH" 0 -80 50 H V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
DRAW
S -170 50 170 60 0 1 0 N
P 4 0 1 0 -40 60 -30 90 30 90 40 60 N
X 1 1 -300 0 200 R 60 60 0 1 P I
X 2 2 300 0 200 L 60 60 0 1 P I
ENDDRAW
ENDDEF
#
#End Library #End Library

View File

@ -1,41 +1,5 @@
update=Чт 12 апр 2018 17:56:59 update=Пн 18 ноя 2019 14:38:35
last_client=kicad last_client=kicad
[eeschema] [eeschema]
version=1 version=1
LibDir= LibDir=
[eeschema/libraries]
LibName1=stepper-rescue
LibName2=power
LibName3=device
LibName4=transistors
LibName5=conn
LibName6=linear
LibName7=regul
LibName8=74xx
LibName9=cmos4000
LibName10=adc-dac
LibName11=memory
LibName12=xilinx
LibName13=special
LibName14=microcontrollers
LibName15=dsp
LibName16=microchip
LibName17=analog_switches
LibName18=motorola
LibName19=texas
LibName20=intel
LibName21=audio
LibName22=interface
LibName23=digital-audio
LibName24=philips
LibName25=display
LibName26=cypress
LibName27=siliconi
LibName28=opto
LibName29=atmel
LibName30=contrib
LibName31=valves
LibName32=stm8
LibName33=st-microelectronics
LibName34=stm8s105k4t6c
LibName35=stepper-cache