# include
# include iware = P3 ^ 2; RS = P2 ^ 5; /* data komand for LCD */E = P2 ^ 6; /* synhr LCD */SCL = P3 ^ 4; /* ey 4-8 */SDA = P3 ^ 5; power1 = P3 ^ 4; power2 = P3 ^ 5; power3 = P3 ^ 6; power4 = P3 ^ 7; kotel = P2 ^ 7; strob = P2 ^ 3;
// номери датчіковchar const dat1 [] = {0xDD, 0x05, 0xEC, 0x67, 0x3D, 0x34, 0xb9, 0x11}; char const dat2 [] = {0xDD, 0x05, 0xEC, 0xAD, 0x35, 0xb9, 0xF9, 0x32}; char const dat3 [] = {0xDD, 0x05, 0x45, 0x20, 0x99, 0xb5, 0xF9, 0x42}; char const dat4 [] = {0x55, 0x00, 0x05, 0x45, 0x20, 0x99, 0x3f, 0x02}; char const dat5 [] = {0xDD, 0x05, 0xEC, 0x67, 0x3D, 0x34, 0xb9, 0x11}; char const dat6 [] = {0xDD, 0x05, 0xEC, 0xAD, 0x35, 0xb9, 0xF9, 0x32}; char const dat7 [] = {0xDD, 0x05, 0x45, 0x20, 0x99, 0xb5, 0xF9, 0x42}; char const dat8 [] = {0x55, 0x00, 0x05, 0x45, 0x20, 0x99, 0x3f, 0x02}; char const dat9 [] = {0xDD, 0x05, 0x45, 0x20, 0x99, 0xb5, 0xF9, 0x42}; char const str1 [] = {0x31, 0x32, 0x3A, 0x30, 0x30, 0x3A, 0x30, 0x30, 0x40, 0x4B, 0x6F, 0x70, 0xB8, 0xE0, 0x6F, 0x70, 0x2D, 0x};// умолчаніеchar const str2 [] = {0xDD, 0x05, 0x45, 0x20, 0x99, 0xb5, 0xF9, 0x42};// умолчаніеchar const str3 [] = {0x50, 0x65, 0xB6, 0xB8, 0xBC}; // режімchar const str4 [] = {0x41, 0xB3, 0xBF, 0x6F, 0xBC, 0x61, 0xBF, 0xB8, 0xC0, 0x65, 0x63, 0xBA, 0xB8, B9}; // автоматичний char const str5 [] = {0xA8, 0x6F, 0xBB, 0xC4, 0xB7, 0x6F, 0xB3, 0x61, 0xBF, 0x65, 0xBB, 0xC4, 0x63, 0xBA, 0xB9 , 0xB8};// пользовательскійchar const str6 [] = {0xС5, 0xBA, 0x6F, 0xBD, 0x6F, 0xBC, 0xB8, 0xC0, 0xBD, 0xC3, 0xB9};// економічнийchar const str7 [] = {0x41, 0xBD, 0xBF , 0xB8, 0xB7, 0x61, 0xBC, 0x6F, 0x70, 0x6F, 0xB7, 0xBA, 0x61};// антізаморозкаchar seksot, sekt, min, hour; // shethiki vremeni for kontrol time work unsigned char key, dop_key1, dop_key2; char i, j, k, pp, n, s, dlo, regim, adrh, adrl, nz; int tis, dd; char iw; fon_off, ff, rwi2c; char const lcdini [] = {8,0 x3C, 4,0 x0D, 1}; char lcd1 [] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; char lcd2 [] = {0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 , 0,0,0}; char dat [] = {0,0,0,0,0,0,0,0,0}; // for iware T s datchchar chas [] = {0,0,0,0,0,0,0,0,0}; char min [] = {0,0,0,0,0,0,0,0,0} ; char t [] = {45,25,45,25,45,25,45,25,55}; char const te [] = {35,20,35,20,35,20,35,18,45 }; char t [] = {45,25,45,25,45,25,45,25,45}; delay (void char t) {for (dd = 0; dd // timeuot na 5 * t mksresetiw (void)
{fok = 0; (iware) // start proc