8-bit UART, enable rcvr */| = 0x21;/* TMOD: timer 1, mode 2, 8-bit reload */= 0xfd;/* TH1: reload value for 9600 baud @ 11,0592 MHz */= 1;/* TR1: timer 1 run */= 1; = 1; = 1; = 1;/* TI: set TI to send first char of UART */= 1; = 0; = 1; = P3 | 0x30; = 0xff; (s1) {p11 -; smehen ();}// zadaem start poziciu (s2) {p21 -; smehen ();} (s3) {p31 -; smehen ();} (1)
{((din [7] == 0) && (din [6] == 0))
{= 1; c ();
} ((din [7]> 0) && (din [6]> 0))
{= adresl +8; ((din [7] & 0xe0) == 0) yprdvig = 0; ((din [7] & 0xe0) == 1) yprdvig = 6; ((din [7] & 0xe0) == 2) yprdvig = 9; = (din [7] & 0x1f) + din [6] * 256; (timedvig> 0);
} ();
// *********
}
}