Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/25/09 06:52
Read: times


 
#162799 - Does it compile?
Responding to: ???'s previous message

while(1)    // you say interrupt? a while in an interrupt?
{
   if(RI)
      m=SBUF;  

   switch(m)   // you run the switch even if the is no byte
   {
      case '1':
         RI=0;
         if(RI)   // now you are stuck her even if there is no byte
         {
            P1=SBUF;
         }
         break;   // do you need a break here?
      case '2':
   ----

}

 


If you typed it in, instead of pasting it in. then I guess you did not get a good answer.
Define not working. does it do anything?


List of 4 messages in thread
TopicAuthorDate
cascading RI in 89C51            01/01/70 00:00      
   Does it compile?            01/01/70 00:00      
      Deadlock            01/01/70 00:00      
         polled            01/01/70 00:00      

Back to Subject List