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

rs232c trouble

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



Joined: 26 Feb 2004
Posts: 1

View user's profile Send private message

rs232c trouble
PostPosted: Fri Feb 27, 2004 3:56 am     Reply with quote

Sad

I use rs232c@4.19MHzPIC16F877 with CCSC Ver3.185 now.
But It can't work well my code follows;

#use delay(CLOCK = 4190000)
#USE RS232(BAUD=38400 ,XMIT=SioXmit ,RCV=SioRcv , INVERT)

I checked a timing of one pulse. It was short.

So I chenged my code like this;

#use delay(CLOCK = 4350000)
#USE RS232(BAUD=38400 ,XMIT=SioXmit ,RCV=SioRcv , INVERT)

Then,it work well.

Anyone tell me why?
dyeatman



Joined: 06 Sep 2003
Posts: 1933
Location: Norman, OK

View user's profile Send private message

Pulse Timing
PostPosted: Fri Feb 27, 2004 6:32 am     Reply with quote

Can we assume by the starting sentence you are using a 4.19MHZ Xtal or Resonater?

You evidently have timing calculation issues. You need to post the complete section of the code that calculates the timing and outputs the pulses for anyone to be able to help you here.
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