CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

rs232 garbage @ beginning

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Derek
Guest







rs232 garbage @ beginning
PostPosted: Mon Dec 02, 2002 4:53 am     Reply with quote

I have a PIC16F877 using B3,B4 as RS232 TX/RX @ 2400 baud. I have a routine that echo what I type in from a terminal connected to the PC's COM port. It works good, BUT, I get some garbage bytes at the beginning of the ECHO. Also, I can have a simple, printf ("hello world"); and it will display *#$ello world on the terminal. Any ideas?
___________________________
This message was ported from CCS's old forum
Original Post ID: 9675
No_Fear
Guest







Re: rs232 garbage @ beginning
PostPosted: Mon Dec 02, 2002 11:15 am     Reply with quote

:=I have a PIC16F877 using B3,B4 as RS232 TX/RX @ 2400 baud. I have a routine that echo what I type in from a terminal connected to the PC's COM port. It works good, BUT, I get some garbage bytes at the beginning of the ECHO. Also, I can have a simple, printf ("hello world"); and it will display *#$ello world on the terminal. Any ideas?

Maybe you dont use a level converter like max232? Do you use a voltage level converter ic or circuit? If you dont, it is possible to receive or send garbage characters.Rgrds,
___________________________
This message was ported from CCS's old forum
Original Post ID: 9691
Dave Yeatman
Guest







Re: rs232 garbage @ beginning
PostPosted: Mon Dec 02, 2002 12:19 pm     Reply with quote

I have had this kind of problem when the parity or stop bits are wrong....

Dave
___________________________
This message was ported from CCS's old forum
Original Post ID: 9694
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group