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

applying a realtime clock to 16f877

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



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

applying a realtime clock to 16f877
PostPosted: Wed Jul 27, 2005 1:44 pm     Reply with quote

I am developing a system that could record data as well as recording when it happened? please advice how to do it.
young



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

PostPosted: Wed Jul 27, 2005 2:00 pm     Reply with quote

Thank yu very much, can I have your
#include "ds1820.c" // external module
#include "ds1307.c" // external module
please?
Ttelmah
Guest







PostPosted: Wed Jul 27, 2005 2:06 pm     Reply with quote

ds1302.c, comes with the compiler. try looking in the 'devices' dirctory.

Best Wishes
young



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

PostPosted: Wed Jul 27, 2005 2:07 pm     Reply with quote

thank you:
I found ds1302.c in my computer under device folder.
Guest








PostPosted: Thu Jul 28, 2005 2:01 am     Reply with quote

young wrote:
Thank yu very much, can I have your
#include "ds1820.c" // external module
#include "ds1307.c" // external module
please?


These files are in a single zipped file at the buttom of that page.
Have you downloaded ?
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

RE:
PostPosted: Sun Jul 31, 2005 8:04 am     Reply with quote

Hi,

Is a 32.768 khz watch crystal good enough???

thanks
arunb
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

Re: RE:
PostPosted: Sun Jul 31, 2005 8:48 am     Reply with quote

arunb wrote:
Hi,

Is a 32.768 khz watch crystal good enough???

thanks
arunb


I think that you are going to have to elaborate a little more for young on what you mean.

If you device is battery backed up or you can stand to lose the time settings on power up, you can drive the clock of one of the timers/counters and create your own clock.
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

RE:
PostPosted: Mon Aug 01, 2005 3:48 am     Reply with quote

Hi,

What I mean is that ....if accuracy is not an issue then a watch crystal would be good enough to generate a timer interrupt every one second. , and if the application uses a PC to synchronise data or time then battery backup may also be eliminated....

Just my opinion....

thanks
arunb
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

Re: RE:
PostPosted: Mon Aug 01, 2005 5:29 am     Reply with quote

arunb wrote:
Hi,

What I mean is that ....if accuracy is not an issue then a watch crystal would be good enough to generate a timer interrupt every one second. , and if the application uses a PC to synchronise data or time then battery backup may also be eliminated....

Just my opinion....

thanks
arunb


One note. If you use a watch crystal, then the accuracy will be very very good. If accuracy is not an issue, then you could derive the time off the osc of the micro. There are examples of this in the forum.
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