(keyold! = 6) && (key == 6) {+ +; if (regimplai == 3) regimplai = 0 ;//stop (regimplai == 1) {upravl = 0; P2 = 0x03; upravl = 1; lcd [9 ] = 0x3e;}// proigratpravo (regimplai == 2) {upravl = 0; P2 = 0x05; upravl = 1; lcd [9] = 0x3e;}// proigratlevo (regimplai == 0) {upravl = 0; P2 = 0x00; upravl = 1; lcd [9] = 0x3e;}// proigratpravo (keyold! = 7) && (key == 7) {upravl = 0; P2 = 0x20; upravl = 1;}// peremotka rich
} (line == 0)
{(keyold! = 5) && (key == 5) {parametr = 2;}// vibor treble (keyold! = 6) && (key == 6 ) {parametr = 1;}// vibor bass (keyold! = 6) && (key == 6) {parametr = 0;}// vibor bass
} (line == 1)// upravlen tuner + nastorika
{(keyold == 0) && (key == 1)
{keyold = key; unastr + +; while (bolch_mench) {unastr + +; if (unastr> = 255) unastr = 254;}}// verner nastraivaet tuner (keyold == 1) && (key == 0)
{keyold = key; unastr -; while (bolch_mench) {unast -; if (unastr <= 1) unastr = 1;}} (keyold! = 5) && ( key == 5) {fm = 1; am = 0;}}// nastr FM diapazona (keyold! = 6) && (key == 6) {fm = 0; am = 1;}// vibor AM diapasona (keyold! = 6) && (key == 7) {fm = 1; am = 1;}// vibor FM2s diapazona
} c () ;//zapis v regulator ustanov parametr
} timer0int (void) interrupt 1 using 1
{TL0 = 0xff;// delid dla chastoti 10000 mks - 10ms = 0xb8; (+ + sot == 100)// prohla sek
{(+ + sek == 60)
{= 0; (+ + min == 60)
{= 0; (+ + chas == 24) chas = 0;
}
}
} main (void) main (void) {
unsigned char i, p; n1, n2;
/* ---------------------------------------- -------- the serial port for 9600 baud at 11.0592MHz.
------------------------------------------ ----- */
# ifndef MONITOR51 = 0x50;/* SCON: mode 1, 8-bit UART, enable rcvr */| = 0x21;/* TMOD: timer 1, mode 2, 8-bit reload */ = 0xfd;/* TH1: reload value for 9600 baud@11.0592MHz */= 1;/* TR1: timer 1 run */= 1; = 1;/* TI: set TI to send first char of UART */
TI = 0 ;//set obrabot prerivanii = 1;
EA = 1;
# endif = 0; (1)// osnovnoi cikl raboti
{
// out data lcd = 0; rs = 0; rw = 0; P2 = 1; e = 1; delay (); delay (); delay (); e = 0; delay ( ); delay (); (j = 0; j <12; j + +)
{rs = 1; rw = 0; P2 = lcd1 [j]; e = 1; delay (); delay (); delay (); e = 0; delay (); delay ( );}// out 1 (j = 0; j <28; j + +)
{rs = 1; rw = 0; P2 = 0x20; e = 1; delay (); delay (); delay (); e = 0; delay (); delay ();} // out ---- do end string (j = 0; j <12; j + +)
{rs = ...