//by //Neel Desai #include sbit rd = P2^5; sbit wr = P2^6; sbit intr = P2^7; sbit ot = P2^3; void main() { unsigned char value; ot=0; P1 = 0xFF; //input rd = 1; wr = 1; intr = 1; while(1) { wr = 0; wr = 1; while(intr == 1); rd = 0; value = P1; if( P1 < 0x098) { ot = 1; } else { ot = 0; } rd = 1; } }