// set tok work = outtok>> 1/10;
} (key == 5)
{= outtok-10;
(+ + outtok <50) {outtok = 50; him = 5;
} = outtok>> 1/10;
} (key == 6)
{+ +
; if
(setmin> 45) = 45;// встановити час роботи
}
if (key == 7)
{-;
(setmin = 0) = 1;
}
(key == 0)
{= datout [step];
}
}
} outlcd (void)
{(k = 0; k <5; k + +)
{
(regim == 0) lcd1 [k] = str [k];
} [3] = min/10 +0 x30; lcd1 [4] = min% 10 +0 x30; lcd1 [5] = 0x2d; [8] = tokin/100 +0 x30; lcd1 [9] = tokin% 100 +0 x30; lcd1 [10] = 0x2d; [8] = tok/100 +0 x30; lcd1 [9] = tok% 100 +0 x30; 1 [10] = tok% 100% 10 +0 x30;// виводимо на lcd
for (k = 0; k <67; k + +)
{(k <5)
{= 0; rs = 1; P1 = lcdini [k]; e = 1;
} if (k <27)
{= 0; rs = 0; P1 = lcd1 [k-5]; e = 1;
} if (k <45)
{= 0; rs = 0; P1 = 0x20; e = 1;
} if (k <67)
{= 0; rs = 0; P1 = lcd2 [k-45]; e = 1;
} (10);
} main (void)
{= 0x50;// обмін 8 бітним тактом дя таймера = 0xFD;// для 24MGcCOM-19200 = 0;/* time 1s */= 0x9B;/* set temer 20 000 Gc */= 0x22;/* 2режіма перезавантаження таймера */
ET0 = 1;/* enable interrupt timer0 */= 0;/* priority = 0 */
EA = 1;/* enable interrupt */= 1; = 1;
TR0 = 1;/* запуск таймера t0 */
TR1 = 1;
while (1)
{(tis == 1)
{;
(tis == 2) && (fok)
{(0xcc); (0x44);// zapusk ocifrovki
} ((tis% 30) == 0)
{;
(fok)
{(0xcc); (0xbf); (j = 0; j <8; j + +)
{(); [j] = iw;
} = dat [0];
ppi = ppi <<8 + dat [1]; [1] = ppi/55;
ppi = dat [2]; = ppi <<8 + dat [3]; [2] = ppi/55; = dat [4]; = ppi <<8 + dat [5]; [3 ] = ppi/55; = dat [6]; = ppi <<8 + dat [7];
t [4] = ppi/55;; (0xcc); (0x44);
} (j = 0; j <4; j + +)
(t [j]
(dn1)
{[0] + +; himd [1] + +; himd [2] + +; himd [3] + +;
}
(dn2)
{[1] + +; himd [2] + +; himd [3] + +;
} (dn3)
{[2] + +; himd [3] + +;
}
(dn1) {himd [3] + +;
}
(dn2) && (! dn1) && (! dn3)
{[0] -; himd [1] + +; himd [2] + +; himd [3] + +;
}