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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/24/04 09:33
Read: times


 
#81815 - While loop in Transmit Char function
Responding to: ???'s previous message
Hello,

Try single-stepping through the code.
Also in the while loop of your function Transmit_Char()try

void Transmit_Char(unsigned char c)
{
SBUF=c;
while(!TI); //Waits until transmit
TI=0;
}

I am not sure how the while loop in your code works but the above is certainly clearer.

Regards
Kunal



List of 14 messages in thread
TopicAuthorDate
AT89c51 serial communication problem            01/01/70 00:00      
   Try            01/01/70 00:00      
   While loop in Transmit Char function            01/01/70 00:00      
   mistakes            01/01/70 00:00      
      mistakes fixed but still in a fix            01/01/70 00:00      
         too more fix            01/01/70 00:00      
   Give little more details            01/01/70 00:00      
      more details            01/01/70 00:00      
   problem solved            01/01/70 00:00      
      answer wrong            01/01/70 00:00      
   Yet another problem you must fix.            01/01/70 00:00      
      Hex files needed            01/01/70 00:00      
      Check The serial port            01/01/70 00:00      
         Problem solved            01/01/70 00:00      

Back to Subject List