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

help for rs232

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



Joined: 08 Jan 2006
Posts: 3

View user's profile Send private message Send e-mail Yahoo Messenger

help for rs232
PostPosted: Mon Jan 09, 2006 3:21 am     Reply with quote

Good day all,
I am new to PIC controllers, any how i managed to creat a program for rs232 comm. with the pc. Just i want to send a letter continiously, i tried but the pc reads some garbage.

i just wrote printf("I");, after setting the baud rate and all.

anyone help,
thanks
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Mon Jan 09, 2006 7:54 am     Reply with quote

First, post your code here, using the "code" button so it stays formatted. Also tell us what version of the compiler you are using. The version is printed near the top of the .lst file. What circuitry do you have between the PIC pin and the PC serial port?
Second, Can you capture some of that "garbage" so we can see what it looks like? If you can capture it in hex so much the better. Is the garbage repeatable? Is the garbage consistant or does it vary with time?
Based on what little you tell us I would guess either you have the signal inverted, or the speed is wrong either because the baud rate or the crystal is wrong. It is also possible you have a weak signal and it is being corrupted by noise.
_________________
The search for better is endless. Instead simply find very good and get the job done.
Paolino



Joined: 19 Jan 2004
Posts: 42

View user's profile Send private message

PostPosted: Mon Jan 09, 2006 9:31 am     Reply with quote

SherpaDoug,
he has already given an answer here http://www.ccsinfo.com/forum/viewtopic.php?t=25619

Best regards.

Paolo.
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