We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?