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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/27/02 16:36
Read: times


 
#29789 - RE: stuck in loop -- Debugger not stuck
How about this:

void Send (unsigned char byte2send)
{
P2_1 = 0;
SBUF = byte2send;
while (!TI) //Wait until sent
{
P2_2 = 0;
}
P2_2 = 1;
TI = 0;
P2_1 = 1;
}

I assume the serial interrupt is enabled.

List of 3 messages in thread
TopicAuthorDate
stuck in loop -- Debugger not stuck            01/01/70 00:00      
RE: stuck in loop -- Debugger not stuck            01/01/70 00:00      
RE: stuck in loop -- Debugger not stuck            01/01/70 00:00      

Back to Subject List