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

16F628 USART by internal OSC

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







16F628 USART by internal OSC
PostPosted: Sat May 08, 2004 2:56 am     Reply with quote

Hi all.
I wrote RS232C code using internal 4MHz osc.
Some 16F628 works good, but some does not work.
Is internal osc suited for USART use ?

Does anyone have the same experience ?
Will Reeve



Joined: 30 Oct 2003
Posts: 209
Location: Norfolk, England

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

PostPosted: Mon May 10, 2004 7:35 am     Reply with quote

I've used it with no problems. However you can improve the timings by getting the internal clock out to a pin, measureing it and then using that figure in your delay statment.

Will
davidpk



Joined: 29 Apr 2004
Posts: 13
Location: Opelika, AL

View user's profile Send private message Yahoo Messenger

PostPosted: Thu May 13, 2004 2:20 pm     Reply with quote

I am using an 18F452 at 40MHz. I was sending out data at 115,200 and things were working fine until I tried to send out a long string. I reduced the bps to 57,600 and it is working fine.

RS-232 can put up with quite a bit of error in the timing but when you are sending out long strings the errors add up and it looses synch. (looses async?) If you send the data in shorter bursts then you can get away with more slop in your timing.
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