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

Baud Rate error

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








Baud Rate error
PostPosted: Sun Nov 29, 2009 9:10 am     Reply with quote

Code:
#use rs232(baud=1200, xmit=PIN_C6, rcv=PIN_C7,STREAM = COM_A)



How can i set baud rate to 100. While trying to do this i got some error...
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Sun Nov 29, 2009 9:26 am     Reply with quote

Do you actually mean 100? You should calculate, if it's possible according to the baud rate formula given in the respective PIC datasheet. The value is possibly too low. It should be no problem with software UART.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Nov 29, 2009 1:57 pm     Reply with quote

Quote:
How can i set baud rate to 100 ?

Always post your PIC.

You can use the PicBaud program to tell if it's possible to use a desired
baud rate. Download it from this page. Unzip it and put it on your desktop:
http://www.micromagicsystems.com/#/picbaud/4523812801
This web page takes a few seconds to load, and it plays a sound.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon Nov 30, 2009 6:53 pm     Reply with quote

Dear Guest user,
My guess is you are the same person as in http://www.ccsinfo.com/forum/viewtopic.php?t=40827 ?
If yes, then do not start a new thread for every new question on the same topic.

From the other thread we have concluded your transmitter can not be running at the 20MHz as configured. I think (but haven't checked) you are running at 48MHz. Change the #delay line accordingly to this to fix the problem.
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