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 CCS Technical Support

Baud rate programmed at 9600, but must be read at 38400

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



Joined: 21 Mar 2007
Posts: 24

View user's profile Send private message

Baud rate programmed at 9600, but must be read at 38400
PostPosted: Tue Mar 27, 2007 1:14 am     Reply with quote

Baud rate programmed at 9600, but must be read at 38400
PIC16f687

look at this, i programmed my micro controller's baud rate at 9600, but i must read it at 38400. else it gives garbage



does anyone have any idea why is it like that?
libor



Joined: 14 Dec 2004
Posts: 288
Location: Hungary

View user's profile Send private message

PostPosted: Tue Mar 27, 2007 2:23 am     Reply with quote

Your PIC runs at 8Mhz, while you have a #use delay(clock... ) intstruction telling it 2Mhz. This can result a 4x baudrate.
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