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:09
Read: times


 
#54046 - it works - conclusion please
Responding to: ???'s previous message
Guys! The program is now working fine with AT89C52. The unwanted first charachter has disappeared.

Regardless the initialization we discussed earlier,
I just switch :

void ser_putch( unsigned char ch ) {
SBUF = ch;
while ( !TI );
TI = 0;
}

to :

void ser_putch( unsigned char ch ) {
TI = 0;
SBUF = ch;
while ( !TI );
}


Now I can't think of a conclusion :(
The fact is the first version of function did work with AT89C51 but not with AT89C52.

Any comment?


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