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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/12/03 10:11
Read: times


 
#48172 - RE: c=SBUF; what's going wrong?
Responding to: ???'s previous message
Remember the serial ISR will be called for both receive and transmit interrupts. The while() loop is a very bad idea.

Try this:

void rec(void) interrupt 4
{
if(RI)
{
c=SBUF;
RI=0;
}

if(TI)
{
TI=0;
}
}

List of 11 messages in thread
TopicAuthorDate
c=SBUF; what's going wrong?            01/01/70 00:00      
   RE: c=SBUF; what\'s going wrong?            01/01/70 00:00      
      RE: c=SBUF; what\'s going wrong?            01/01/70 00:00      
   RE: c=SBUF; what\'s going wrong?            01/01/70 00:00      
   RE: c=SBUF; what's going wrong?            01/01/70 00:00      
      RE: c=SBUF; what's going wrong?            01/01/70 00:00      
   RE: c=SBUF; what's going wrong?            01/01/70 00:00      
      RE: c=SBUF; what's going wrong?            01/01/70 00:00      
   RE: c=SBUF; what's going wrong?            01/01/70 00:00      
      RE: c=SBUF; what's going wrong?            01/01/70 00:00      
      RE: c=SBUF; what's going wrong?            01/01/70 00:00      

Back to Subject List