/Designs/Tools/reflow2/SW/reflow.c
19,7 → 19,7
#define TL3 PIN_B1 // tlacitko S3
#define TL4 PIN_B0 // tlacitko S4
 
#define POWER_T4 PIN_A6 // ovladani optotriaku T3
#define POWER_T3 PIN_A6 // ovladani optotriaku T3
#define POWER_T4 PIN_A5 // ovladani optotriaku T4
#define POWER_T5 PIN_A4 // ovladani optotriaku T5
 
78,27 → 78,9
return (analog >> 5 ); // prumer = analog/32
}
 
int16 teplota(void)
float teplota(void)
{
 
//BYTE CONST TEMP_CALLIBRATION[20] = {0x90,0xb7,0x19,0x15,0x36,0x54,0x50,0xb5,0,0x24};
 
/*int16 Temp;
 
float32 Rpt;
float32 Tpt;
 
Rpt = 1.0*adc()*2350.0/1024.0; //zapojeni OZ -> R=U/Iconst
#define A 3.90802e-3
#define B -5.802e-7
Tpt = (-A + sqrt(A*A - 4*B*(1.0 - Rpt/1000.0)))/2.0/B;
 
 
 
*/
return adc();
return (0.674201*adc() - 294.35);
}
 
 
157,6 → 139,6
}
lcd_gotoxy(1,2);
printf(lcd_putc,"teplota: %ld\21C ",teplota());
printf(lcd_putc,"teplota: %3.1f\21C ",teplota());
}
}
/Designs/Tools/reflow2/SW/reflow.hex
1,4 → 1,4
:1000000003308A00262B0000FF00030E8301A100AD
:1000000005308A00DB2D0000FF00030E8301A100F4
:100010000A08A0008A010408A2007708A300780853
:10002000A4007908A5007A08A600831383128C30F7
:100030008400801C1D288C182E2822088400230888
5,118 → 5,206
:10004000F7002408F8002508F9002608FA0020081F
:100050008A00210E8300FF0E7F0E09008A110A120A
:1000600039280A108A100A11820728340C34013406
:100070000634C4012830C300AB0A2B08183C03180F
:100080006C28AB01023043078400831344188317A4
:10009000800A00083B3C03186C28023043078400A8
:1000A00083134418831780010130430784008313AE
:1000B00044188317800A00083B3C03186C28013061
:1000C0004307840083134418831780014308840086
:1000D000831344188317800A8C108A110A121D2872
:100070000634CC012830CB00AB0A2B08183C0318FF
:100080006C28AB0102304B07840083134C18831794
:10009000800A00083B3C03186C2802304B078400A0
:1000A00083134C188317800101304B07840083139E
:1000B0004C188317800A00083B3C03186C28013059
:1000C0004B07840083134C18831780014B0884006E
:1000D00083134C188317800A8C108A110A121D286A
:1000E0000634093409340634803480348034803452
:1000F0000034F43270366F3A611DA0126C329121D7
:1001000020100000831685128312851683160512AF
:100110008312051683168113091283129412A712F3
:10012000270883168700831227162708831687005F
:100130008312A711270883168700013083129400C9
:100140000030831694000108C739083881008312F3
:1001500090014830F80006389200F930831692007A
:1001600007309C00050885000330F700F70BB62820
:100170001C0883120D1383169D01C03083128B045B
:1001800083168C141F149F101F159F111F138312A9
:100190001F179F1383169F1783121F140030F80038
:1001A0001F08C73978049F008A110A123A2B393088
:1001B0008400831300080319EB280130F800F701CD
:1001C000F70BE028F80BDF284A30F700F70BE6289A
:1001D000E928800BDD2808000808F039C1003F0835
:1001E0000F39410488000715271127088316870057
:1001F0000000831207112711270883168700831236
:100200000800BD08031D0629871007298714A710B9
:100210002708831687008312BE0E3E08BF00EC201D
:10022000BE0E3E08BF00EC200D30F700F70B16297C
:100230000800C830B900D720F03083168805831233
:100240008710A7102708831687008312071127112C
:100250002708831687008312AD012D08023C031C7A
:1002600039290230B900D7200330BF00EC20AD0A95
:100270002D290D30F700F70B3B290230BF00EC2091
:100280000D30F700F70B4229AD012D08023C031C8D
:1002900055292D083120AE00BD012E08BE000121D8
:1002A0000230B900D720AD0A45298A110A12432B22
:1002B000831603178C170C140000000083128C089F
:1002C00003197F290D080313AD0003170F0803134B
:1002D000AE0003170C080313AF000130BD002F0858
:1002E000BE0001212D0803178D0003132E080317EC
:1002F0008F008D0A03198F0A03135829031703135C
:100300008A110A12512B83168C10023083122D078A
:10031000840083132E18831780012D088400831313
:100320002E188317800101302D07840083132E18A7
:100330008317800183168C1483128A110A125C2B96
:1003400001303902BB003A08023C031DA9294030A4
:10035000BB073B088038BC00BD013C08BE00012142
:1003600008003008F8012F020318B9292F08F700F8
:10037000C529F7010830B100AF0DF70D300877023D
:100380000318F700F80DB10BBC29080038080C3A27
:100390000319D129063A0319D929073A0319DF2984
:1003A000E429BD010130BE0001210230B900D7208F
:1003B000F0290130B9000230BA00A021F029013043
:1003C000B900BA00A021F02938081F3C031CEA2913
:1003D0000730B8050130BD003808BE000121F02902
:1003E000080078082D08AF006430B000B12177080C
:1003F000AD0078083030031D042AAE1C0B2AAE195C
:100400000B2A2E1A2030072AAE112E122E14F807AE
:100410007808B800C6212D08AF000A30B000B1211D
:100420007708AD0078083030031D1C2AAE19202A49
:100430002E1C202A2E1A2030F8077808B800C62172
:100440003030AD072D08B800C6210800AE01AD015F
:10045000AF012F081F3C031C3F2A1F151F192E2A0E
:1004600083161E088312AD071E0803181E0FAE0761
:100470001030F700F70B3A2A0000AF0A292A2E0C99
:10048000FA002D0CF900FA0CF90CFA0CF90CFA0C24
:10049000F90CFA0CF90C0730FA057908F8007A081B
:1004A000F90079088A110A12892B831603178C1711
:1004B0000C14000000000318842A83120C087F39F2
:1004C0000313B00003170D080313B10003170F083F
:1004D0000313B2003008B800C621310803178D009D
:1004E0000313320803178F0083168C170C140000B7
:1004F000000083120313AF0B7E2A812A8316031791
:10050000842AA32A8316031783120C0D0E0D7F393C
:100510000313B00003170D080313B10003170F08EE
:100520000313B2003008B800C621310803178D004C
:100530000313320803178F008D0A03198F0A031063
:100540000313AF0B552A0800B7010408B600371093
:10055000831B3714B01FB42AB617361EB60AAF096C
:10056000B009AF0A0319B00A300EF038B200B20772
:10057000E23EB300323EB50030080F39B307B3078F
:10058000B507E93EB400B407B4072F0E0F39B4071E
:10059000B507B40DB50DB509B50D2F080F39B50761
:1005A000B20D0730B1000A30B507B403031CD42ADA
:1005B000B407B303031CD82AB307B203031CDC2A15
:1005C000B207B103031CE02A3130840083130730E3
:1005D0003605361384033605031DF52A361A840AB8
:1005E000361AF52A2030F700122B84073530040222
:1005F000031936170008F700031D062B361B062BC0
:10060000361A202BB619062B2030112BB61F0E2BB5
:100610002D30F70084033613B613122BB61536129D
:100620003030F707B0010408AF003010831B3014DE
:100630007708B800C6212F08840083133018831769
:10064000840A361FF62A8A110A129E2B840183130C
:100650001F3083058316861383128617AB0183161A
:100660001F149F141F159F1107309C00FF30831229
:10067000A700822883168512831285168316051219
:10068000831205161929BD014830BE000121023030
:10069000B900D720703003178D0000308F0003138E
:1006A0005829BD010330BE0001210230B900D72016
:1006B000AE012830AD0083290230AD009630B9007C
:1006C000D720AD0B5E2B2C082A020319832B2A0896
:1006D000AC000930B9000130BA00A0212808AD00F3
:1006E0001130AE00F1213A30B800C6212908AD0022
:1006F0000130AE00F1213A30B800C6212A08AD0021
:100700000130AE00F1210130B9000230BA00A02161
:10071000262A7908AE007808AD00793003178D00DD
:1007200000308F00031009300313AF005522103042
:1007300084002E08B0002D08AF00A42A7F300317D4
:100740008D0000308F00031004300313AF005522DA
:040750005C2B6300BB
:1000F0000034F43270366F3A611DA0123317313379
:100100009121201000008316851283128516831614
:100110000512831205168316811309128312941295
:10012000A71227088316870083122716270883162D
:1001300087008312A71127088316870001308312D6
:1001400094000030831694000108C73908388100F4
:10015000831290014830F80006389200F930831677
:10016000920007309C00050885000330F700F70B6C
:10017000B7281C0883120D1383169D01C03083120B
:100180008B0483168C141F149F101F159F111F13AF
:1001900083121F179F1383169F1783121F1400309B
:1001A000F8001F08C73978049F008A110A12EF2D42
:1001B0003F308400831300080319EC280130F80055
:1001C000F701F70BE128F80BE0284A30F700F70BAE
:1001D000E728EA28800BDE2808000808F039C70065
:1001E00045080F394704880007152711270883168B
:1001F0008700000083120711271127088316870044
:1002000083120800C308031D0729871008298714D3
:10021000A7102708831687008312C40E4408C50060
:10022000ED20C40E4408C500ED200D30F700F70B9B
:1002300017290800C830BF00D820F0308316880581
:1002400083128710A71027088316870083120711CF
:1002500027112708831687008312AD012D08023C61
:10026000031C3A290230BF00D8200330C500ED201E
:10027000AD0A2E290D30F700F70B3C290230C500DE
:10028000ED200D30F700F70B4329AD012D08023C9E
:10029000031C56292D083120AE00C3012E08C400CE
:1002A00002210230BF00D820AD0A46298A110A1265
:1002B000F82D831603178C170C140000000083120E
:1002C0008C08031980290D080313AD0003170F08CC
:1002D0000313AE0003170C080313AF000130C30073
:1002E0002F08C40002212D0803178D0003132E08C8
:1002F00003178F008D0A03198F0A03135929031757
:1003000003138A110A12062E83168C1002308312F0
:100310002D07840083132E18831780012D08840075
:1003200083132E188317800101302D078400831357
:100330002E188317800183168C1483128A110A12D7
:10034000112E01303F02C1004008023C031DAA29C2
:100350004030C10741088038C200C3014208C400D0
:10036000022108003008F8012F020318BA292F08CB
:10037000F700C629F7010830B100AF0DF70D3008BE
:1003800077020318F700F80DB10BBD2908003E08ED
:100390000C3A0319D229063A0319DA29073A031944
:1003A000E029E529C3010130C40002210230BF0069
:1003B000D820F1290130BF000230C000A121F1296D
:1003C0000130BF00C000A121F1293E081F3C031CE1
:1003D000EB290730BE050130C3003E08C4000221EE
:1003E000F129080078082D08AF006430B000B22170
:1003F0007708AD0078083030031D052AAE1C0C2AA2
:10040000AE190C2A2E1A2030082AAE112E122E14E4
:10041000F8077808BE00C7212D08AF000A30B000E9
:10042000B2217708AD0078083030031D1D2AAE19BF
:10043000212A2E1C212A2E1A2030F8077808BE0007
:10044000C7213030AD072D08BE00C72108003E0887
:100450000319972AC60042080319972AC6070318EA
:10046000382A7F30C602031C972A0319972A3C2A90
:100470008130C6070318972A4608F700F801F901EA
:10048000FA013F08CA00CA174008C9004108C8005D
:100490001830C600C701481C652A4508FA07031C26
:1004A000572AF90A031D572AF80A0319C7174408DF
:1004B000F907031C5E2AF80A0319C7174308C0008E
:1004C000C0174008F8070318C717C70DF80CF90C38
:1004D000FA0CCA0CC90CC80C0310C60B4A2A01300E
:1004E000F7070318972AF81B7C2ACA0DFA0DF90D95
:1004F000F80DF7030319972ACA1F8D2AFA0A031D5C
:100500008D2AF90A031D8D2AF80A031D8D2AF80C7D
:10051000F90CFA0CF70A0319972A3F08C700430899
:10052000C706C71F952AF8179B2AF8139B2AF701BD
:10053000F801F901FA010800AE01AD01AF012F0881
:100540001F3C031CB52A1F151F19A42A83161E0859
:100550008312AD071E0803181E0FAE071030F700F8
:10056000F70BB02A0000AF0A9F2A2E0CFA002D0CC0
:10057000F900FA0CF90CFA0CF90CFA0CF90CFA0C5B
:10058000F90C0730FA057908F8007A08F9007908BB
:10059000FA007808AD007A08AE008E30F7002E0819
:1005A000F8002D08F900FA01F808031DE12A79087E
:1005B000F800F9010830F702F808031DE12AF701F5
:1005C000E92A0310F81BE82AF90DF80DF703E12AD0
:1005D000F8137030C1009830C0002C30BF007E305E
:1005E000BE007A08C5007908C4007808C3007708FF
:1005F000C20027227708AD007808AE007908AF0066
:100600007A08B000B2010408B1003210831B321422
:1006100083143008B6002F08B5002E08B4002D084A
:10062000B300CD30BA002C30B9001330B800873099
:10063000B70080308318B806BD01BE013408BC0085
:100640003808BC0633080319092CBB00F70037082B
:100650000319122CBB020319AE2B031C6C2B380898
:10066000C100C1173908C0003A08BF00BE0103101D
:10067000C10CC00CBF0CBE0CBB0B362BBC1F432BDC
:100680003D14262C3D103B103D163630840083135C
:100690003B2C3D12BC1B562B3B1C612BC10CC00CD0
:1006A000BF0CBE0CF70A0319212C612BC11B642B54
:1006B0000310BE0DBF0DC00DC10DF7030319212C92
:1006C000562B3D17CE2B3D133408BC00BC1F6A2BA4
:1006D000C1171A2CC1131A2C3708BB00F7003308B6
:1006E000BB023408C100C1173508C0003608BF007E
:1006F000BE010310C10CC00CBF0CBE0CBB0B782B91
:10070000BC1F852BBD14262CBD103B10BD163A30E6
:10071000840083133B2CBD12BC1B982B3B1CA32BCA
:10072000C10CC00CBF0CBE0CF70A0319212CA32B63
:10073000C11BA62B0310BE0DBF0DC00DC10DF703CD
:100740000319212C982BBD17CE2BBD133808BC00E4
:10075000BC1FAC2BC1171A2CC1131A2C3808C100AE
:10076000C1173908C0003A08BF00BC1FBB2BC1131A
:100770003D15262C3D11BE013B10363084008313FD
:100780003B2CBC1BE42B3408BC003B1CCE2BC10C07
:10079000C00CBF0CBE0CF70A0319212CBE1FDF2BA7
:1007A000BF0A031DDF2BC00A031DDF2BC10A031D77
:1007B000DF2BC10CC00CBF0CF70A0319212C3D1B09
:1007C000632BBD1BA52B032C8030C106C11FEC2B56
:1007D000262C3808BC00F92B3408BC00C108031DC6
:1007E000F92BC008031DF92BBF08031DF92BF701D6
:1007F0001A2CC11B032C0310BE0DBF0DC00DC10D63
:10080000F70BF92B212CBC1F072CC1171A2CC11375
:100810001A2C3708F7003808C1003908C0003A0818
:10082000BF001A2C3308F7003408C1003508C00097
:100830003608BF004108F8004008F9003F08FA00F8
:10084000592CF701F801F901FA01592CBE01BF0931
:10085000C009C109BE09BE0A031D342CBF0A031D0D
:10086000342CC00A0319C10A3D18422BBD18842B31
:100870003D19BA2BE92B0008BF07031C452CC00A01
:10088000031D452CC10A03193B1484030008C0074B
:10089000031C4D2CC10A03193B1484030008801F5C
:1008A000803AC10703183B143D1A492BBD1A8B2B04
:1008B000C12B310884008313321883178A110A125E
:1008C0003E2E831603178C170C140000000003182B
:1008D000902C83120C087F390313B20003170D0804
:1008E0000313B30003170F080313B4003208BE004C
:1008F000C721330803178D000313340803178F0033
:1009000083168C170C140000000083120313B10B24
:100910008A2C8D2C83160317902CAF2C831603176B
:1009200083120C0D0E0D7F390313B20003170D084F
:100930000313B30003170F080313B4003208BE00FB
:10094000C721330803178D000313340803178F00E2
:100950008D0A03198F0A03100313B10B612C0800D1
:10096000F701F801F901FA01C601C701C801C9017F
:1009700045084404430442040319EE2C2030CA0005
:100980000310BE0DBF0DC00DC10DC60DC70DC80DA6
:10099000C90D45084902031DD72C44084802031D10
:1009A000D72C43084702031DD72C42084602031CDC
:1009B000E82C4208C6024308031C430FC702440840
:1009C000031C440FC8024508031C450FC902031449
:1009D000F70DF80DF90DFA0DCA0BC02C4630840046
:1009E000831308000408B6003508B8000319112D58
:1009F0003408C1003308C0003208BF003108BE000F
:100A0000C501C4012030C3008230C20027227A0809
:100A1000B4007908B3007808B2007708B100B80BC9
:100A2000F82C3408C1003308C0003208BF00310878
:100A3000BE003E08B63CBE00FA013F08C200BF1728
:100A40000310BF0CC00CC10CFA0CF90CF80CF70C1D
:100A5000BE0B202DC21F372DF709F809F909FA0935
:100A6000F70A0319F80A0319F90A0319FA0A7A08A6
:100A7000B4007908B3007808B2007708B100B41F59
:100A80004E2DB603B616B109B209B309B409B10ABD
:100A90000319B20A0319B30A0319B40A3B30BD00A3
:100AA0009A30BC00CA30BB00BA010A30B800350821
:100AB0000319B60A3408C1003308C0003208BF0069
:100AC0003108BE003D08C5003C08C4003B08C30017
:100AD0003A08C200B0240008B100840A0008B2003D
:100AE000840A0008B300840A0008B400FD308407BB
:100AF000F708031D8E2D350A380203198E2D36088E
:100B00000319902D0F3938020319882D0318C02DB1
:100B1000B61BC02D361B902D2030BC2D2030B605C5
:100B2000B61E9E2DB6123508031DB6037708B60013
:100B30002D30BE00C7213608F700B601350838024F
:100B4000031DAC2D7708B6002E30BE00C721360835
:100B5000F7002030B60500303030B61EBC2DB6127E
:100B60003508031DB6037708B6002D30BE00C72137
:100B70003608F700B6013030F7077708BE00C72106
:100B80003D08C1003C08C0003B08BF003A08BE0059
:100B9000C501C401C3010A30C200B0247A08BD00F7
:100BA0007908BC007808BB007708BA00B80B5A2D4A
:100BB0008A110A125D2E840183131F308305831668
:100BC000861383128617AB0183161F149F141F15FB
:100BD0009F1107309C00FF308312A70083288316E3
:100BE00085128312851683160512831205161A299B
:100BF000C3014830C40002210230BF00D820703049
:100C000003178D0000308F0003135929C3010330EF
:100C1000C40002210230BF00D820AE012830AD0050
:100C200084290230AD009630BF00D820AD0B132EC2
:100C30002C082A020319382E2A08AC000930BF00FC
:100C40000130C000A1212808AD001130AE00F22112
:100C50003A30BE00C7212908AD000130AE00F221B4
:100C60003A30BE00C7212A08AD000130AE00F221A3
:100C70000130BF000230C000A1219C2A7708AD00DE
:100C80007808AE007908AF007A08B0007930031711
:100C90008D0000308F00031009300313B100612470
:100CA000023084003008B4002F08B3002E08B200D0
:100CB0002D08B1000130B500F22C803003178D00F3
:100CC00000308F00031004300313B1006124112E93
:020CD0006300BF
:02400E003A3F37
:00000001FF
;PIC16F877A
;CRC=BB4A CREATED="17-IV-11 15:46"
;CRC=82C3 CREATED="23-IV-11 16:10"