| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| young 
 
 
 Joined: 24 Jun 2004
 Posts: 285
 
 
 
			    
 
 | 
			
				| applying a realtime clock to 16f877 |  
				|  Posted: Wed Jul 27, 2005 1:44 pm |   |  
				| 
 |  
				| 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
 
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Wed Jul 27, 2005 2:00 pm |   |  
				| 
 |  
				| Thank yu very much, can I have your #include "ds1820.c"   // external module
 #include "ds1307.c"   // external module
 please?
 |  | 
	
		|  | 
	
		| Ttelmah Guest
 
 
 
 
 
 
 
			
			
			
			
			
			
			
			
			
 
 | 
			
				|  |  
				|  Posted: Wed Jul 27, 2005 2:06 pm |   |  
				| 
 |  
				| ds1302.c, comes with the compiler. try looking in the 'devices' dirctory. 
 Best Wishes
 |  | 
	
		|  | 
	
		| young 
 
 
 Joined: 24 Jun 2004
 Posts: 285
 
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Wed Jul 27, 2005 2:07 pm |   |  
				| 
 |  
				| thank you: I found ds1302.c in my computer under device folder.
 |  | 
	
		|  | 
	
		| Guest 
 
 
 
 
 
 
 
			
			
			
			
			
			
			
			
			
 
 | 
			
				|  |  
				|  Posted: Thu Jul 28, 2005 2:01 am |   |  
				| 
 |  
				|  	  | 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
 
 
			      
 
 | 
			
				| RE: |  
				|  Posted: Sun Jul 31, 2005 8:04 am |   |  
				| 
 |  
				| Hi, 
 Is a 32.768 khz watch crystal good enough???
 
 thanks
 arunb
 |  | 
	
		|  | 
	
		| Mark 
 
 
 Joined: 07 Sep 2003
 Posts: 2838
 Location: Atlanta, GA
 
 
			      
 
 | 
			
				| Re: RE: |  
				|  Posted: Sun Jul 31, 2005 8:48 am |   |  
				| 
 |  
				|  	  | 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
 
 
			      
 
 | 
			
				| RE: |  
				|  Posted: Mon Aug 01, 2005 3:48 am |   |  
				| 
 |  
				| 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
 
 
			      
 
 | 
			
				| Re: RE: |  
				|  Posted: Mon Aug 01, 2005 5:29 am |   |  
				| 
 |  
				|  	  | 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.
 |  | 
	
		|  | 
	
		|  |