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

How sensitive is an RC clock over temp ?

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



Joined: 02 Dec 2003
Posts: 262

View user's profile Send private message

How sensitive is an RC clock over temp ?
PostPosted: Tue Sep 21, 2004 3:12 pm     Reply with quote

I have a system that is running at 1Mhz using a 100pF and 10k...

It needs to be accurate enough to send out a 50us and 100us pulses every now and then, even at tempurates from 0C to 70C... am I expecting too much ? I have it working at 1Mhz at roomtemp right now.

I want to bump that up to 2Mhz and I know the forumla is T = R * C then F = 1 / T...

But should I try and use a small cap and a larger resistor or a larger cap and smaller resistor or does it matter ?

Which system will give better tempurate stability ?

I couldn't find a chart in the datasheets that had RC freq over temp, does anyone have one ?

(PS: I KNOW I'de be better off with crystal but I dont have enough room on my board for that AND the caps and I dont think I have time to order new parts in)
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Sep 21, 2004 4:09 pm     Reply with quote

You didn't say what PIC you are using.

I tried to find out by looking at some of your old posts,
but then I find that you are erasing all your posts in
some threads. Why ?
http://www.ccsinfo.com/forum/viewtopic.php?t=20403
http://www.ccsinfo.com/forum/viewtopic.php?t=20456
iso9001



Joined: 02 Dec 2003
Posts: 262

View user's profile Send private message

PostPosted: Tue Sep 21, 2004 4:25 pm     Reply with quote

PIC 16F872 and F876A

(About the posts: My little shˇt brother HAD my password for everything. I was lucky, in my other forums he went on about my girlfriend and my supposed boyfriend (i had no idea about that Confused )

I was thinking about 10pF + 50k, and/or 100pF + 5k
newguy



Joined: 24 Jun 2004
Posts: 1903

View user's profile Send private message

PostPosted: Tue Sep 21, 2004 5:06 pm     Reply with quote

Make sure to use NP0 caps (negative positive zero). They're made of material that has a zero (nearly zero) temperature coefficient. By using them, you can assure that the caps won't be a source of drift.
bdavis



Joined: 31 May 2004
Posts: 86
Location: Colorado Springs, CO

View user's profile Send private message

PostPosted: Tue Sep 21, 2004 10:27 pm     Reply with quote

Also, don't use carbon resistors - at least use metal film, and you can get special low noise and low temp coef. resistors, but typically have to special order them.

At least use NPO caps, but I think you can get better ones than that also...

If you know your temp deviations, you may also be able to correct it real time in FW (since temp changes slowly)...
iso9001



Joined: 02 Dec 2003
Posts: 262

View user's profile Send private message

PostPosted: Wed Sep 22, 2004 1:47 am     Reply with quote

I have NPO (5% I think) and think and thin metal film resistors here, I'll use those.

Any one have a chart of what I can expect for variations ? I suspect this unit will be at 120 degree F during most on its ON time. I cant find a chart for RC tollerance anywhere, Confused
bdavis



Joined: 31 May 2004
Posts: 86
Location: Colorado Springs, CO

View user's profile Send private message

PostPosted: Wed Sep 22, 2004 12:31 pm     Reply with quote

I would recommend making your own chart - measure at ambient temp (25 degrees C), then at min temp, and finally at max temp.

That would give you a fairly good idea of typical. For maximum, you will need data sheets for the components you are using and calculate it.
bdavis



Joined: 31 May 2004
Posts: 86
Location: Colorado Springs, CO

View user's profile Send private message

PostPosted: Wed Sep 22, 2004 12:35 pm     Reply with quote

I would recommend not going below 100pf, because it won't help. The error is more from the type of cap, not the size of the cap. If you go too large for the cap, then leakage can be a source of error, but I would think 100pf should be fine...
drh



Joined: 12 Jul 2004
Posts: 192
Location: Hemet, California USA

View user's profile Send private message

PostPosted: Wed Sep 22, 2004 2:01 pm     Reply with quote

The data sheets for both devices state that the RC osc. frequency is a function of supply voltage, the resistance and capacitance values and tolerances, and the operating temperature. Frequency can also vary from unit to unit and different package types also.
If you want accuracy and repeatability of the 50uS and 100uS pulses, I would recommed you use ceramic resonators or xtals for the oscillator.
The RC option is really meant for lowest cost, no precise timing needed applications.
_________________
David
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Thu Sep 23, 2004 3:23 pm     Reply with quote

I wouldn´t take the risk using an RC oscillator for such a wide temperature range.
The cost difference between R+C compared with a Xtal would be cost sensitive
only if your application is going to be sell by millions units, (I wish that for you !! Very Happy)
meanwhile I will use a Xtal.

Best wishes,

Humberto
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