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

EUSART and Internal Oscillator

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



Joined: 29 Dec 2007
Posts: 122
Location: Ireland

View user's profile Send private message

EUSART and Internal Oscillator
PostPosted: Thu Jan 24, 2008 6:56 am     Reply with quote

Hello everybody,
I was wondering if it's crazy to use the EUSART with the internal Oscillator...

I want to make a communication between a 16F688 and a computer through the RS232 port @ 19200 baud.

16F688 datasheet specified the internal oscillator at 1%.
Is it enough accurate for my application?

Is there someone who have already tried this?

Thanks for any reply.

Franck.
Ken Johnson



Joined: 23 Mar 2006
Posts: 197
Location: Lewisburg, WV

View user's profile Send private message

PostPosted: Thu Jan 24, 2008 7:22 am     Reply with quote

This should work - generally you need about 3% for serial comms to work ok. Beware, though:

I did have a problem with an RS-485 network where several "slaves" would respond in a time slot. The time slots were too short and too close together, and would sometimes overlap due to the internal oscillator variation.

But, 2 devices should be able to talk ok.

Ken
SherpaDoug



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

View user's profile Send private message

PostPosted: Thu Jan 24, 2008 8:29 am     Reply with quote

Check out the clock accuracy plots at the back of the data sheet. There is usually a "sweet spot" at 5V and 25 degrees C where the accuracy is 1%. At other voltages and temperatures the accuracy gets much worse. A project may work fine on the bench but quit in the field when the temperature changes. In theory 8 bit serial comms can take up to 5% error, the worst case sum of the PIC error and the error of the PC or whatever is on the other end of the wire. But in practice it is good the try to keep the total error less than 3%.
_________________
The search for better is endless. Instead simply find very good and get the job done.
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

OK YOU CAN USE THE INT CLOCK at 19200 i do it all the time !
PostPosted: Thu Jan 24, 2008 2:16 pm     Reply with quote

i use the 16f887 and '886 all the time with int clock - at 19200 over a wide temkp range and have never had a customer complaint about flaky serial performance
YOU CAN DO THISD - ITS IS OK!!
Franck26



Joined: 29 Dec 2007
Posts: 122
Location: Ireland

View user's profile Send private message

PostPosted: Thu Jan 24, 2008 3:17 pm     Reply with quote

Thanks everybody for your answer,
It's true that the internal oscillator is specified at 2% between 0 and 85°c instead of 1%...

I think I will use the different advices of all of you: I'm going to leave a footprint for an oscillator on my board and if there is a poblem, I will put the appropriate quartz...

Thanks again,
Franck.
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