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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/04/03 08:25
Read: times


 
#54047 - RE: it works - conclusion please
Responding to: ???'s previous message
Hi,
hehe, you do set TI in ser_init() via:
SCON = 0x72; // Mode 1, REN 1 and TI=1 as well!
I thought that your ser_putch() is same as often-and-often used next one:
{
while (!TI) ; // wait till prev. char has been sent
TI=0;
SBUF=ch;  // send next char
}
...but I was wrong. Ehm, how many programmers so how many program ways to do one and same task (even an error ;)
Check your C51 code. I think you clear TI somehow there before send the first char.
Good days!

List of 24 messages in thread
TopicAuthorDate
unpredictable first character            01/01/70 00:00      
   RE: unpredictable first character            01/01/70 00:00      
      RE: unpredictable first character            01/01/70 00:00      
   RE: unpredictable first character            01/01/70 00:00      
      OT: Compiler observation            01/01/70 00:00      
         RE: OT: Compiler observation            01/01/70 00:00      
         RE: OT: Compiler observation            01/01/70 00:00      
            RE: OT: Compiler observation            01/01/70 00:00      
      RE: unpredictable first character            01/01/70 00:00      
         RE: unpredictable first character            01/01/70 00:00      
            RE: unpredictable first character            01/01/70 00:00      
   RE: unpredictable first character            01/01/70 00:00      
      RE: unpredictable first character            01/01/70 00:00      
   RE: unpredictable first character            01/01/70 00:00      
      RE: unpredictable first character            01/01/70 00:00      
   RE: unpredictable first character            01/01/70 00:00      
      RE: unpredictable first character            01/01/70 00:00      
         RE: unpredictable first character            01/01/70 00:00      
         RE: unpredictable first character            01/01/70 00:00      
      RE: unpredictable first character            01/01/70 00:00      
      RE: unpredictable first character            01/01/70 00:00      
   it works - conclusion please            01/01/70 00:00      
      RE: it works - conclusion please            01/01/70 00:00      
         RE: it works - conclusion please            01/01/70 00:00      

Back to Subject List