sbit P07 = 0x87; void main() { while(P07); // End Program unless we get error printf("Error - line went low"); // Print Error being recieved for(;;) // End after Error }
Are you sure that it's never getting out of the loop; could it just be that your printf is not working? I think that volatile is implicit in SFR & sbit definitions?