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

real time clock

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



Joined: 10 Feb 2004
Posts: 205

View user's profile Send private message

real time clock
PostPosted: Fri Feb 11, 2005 9:35 am     Reply with quote

I want to use a 16F628 to be a real time clock on 2AA batteries. I am connecting a 32.768KHz crystal to the Timer1 oscillator inputs. I want to use the internal RC oscillator for the main program and sleep a lot (the chip, not me). Will my clock be accurate in this configuration? Has anyone done this? Thanks.
libor



Joined: 14 Dec 2004
Posts: 288
Location: Hungary

View user's profile Send private message

PostPosted: Fri Feb 11, 2005 9:51 am     Reply with quote

It will be as accurate as your 32.768 kHz crystal. I think 20ppm is typical for these crystals. Crystal accuracy is made up from two parts: absolute accuracy and drift because of the environment (temperature).
You can include a trimmer cap to fine tune the frequency, though you cannot avoid drift caused by temperature change. That is why many manufacturers produce temperature compensated RTC oscillators. You can search the internet for actual accuracies of these solutions.
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