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

Problem with ds1302 Accuracy

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



Joined: 18 Jan 2006
Posts: 9

View user's profile Send private message

Problem with ds1302 Accuracy
PostPosted: Tue Feb 07, 2006 1:51 am     Reply with quote

I have a problem with the precision of DS1302. In a day one goes ahead 5 seconds that him can happen?.The assembly is correct.
Thanks.
_________________
To Pic Or No To Pic
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Tue Feb 07, 2006 3:33 am     Reply with quote

Check you have used the correct crystal. The DS1302 and 1307 include internal capacitors for 12.5pF loading of the crystal. If you use the wrong crystal the frequency will be wrong. Another common mistake is to add external capacitors not realising they are already built in.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Tue Feb 07, 2006 3:33 am     Reply with quote

Check you have used the correct crystal. The DS1302 and 1307 include internal capacitors for 12.5pF loading of the crystal. If you use the wrong crystal the frequency will be wrong. Another common mistake is to add external capacitors not realising they are already built in.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Saratoga



Joined: 18 Jan 2006
Posts: 9

View user's profile Send private message

Tks ..every its OK
PostPosted: Wed Feb 08, 2006 4:19 am     Reply with quote

I do not have put capacitors.The cristal it is 32.768 Hz.
I have followed the considerations of this official page.
But no works correctly. 4 ,5 second bad in one day.
_________________
To Pic Or No To Pic
Saratoga



Joined: 18 Jan 2006
Posts: 9

View user's profile Send private message

The maxim page are
PostPosted: Wed Feb 08, 2006 4:20 am     Reply with quote

Sorry ..the web..
http://pdfserv.maxim-ic.com/en/an/app504.pdf
_________________
To Pic Or No To Pic
ljbeng



Joined: 10 Feb 2004
Posts: 205

View user's profile Send private message

PostPosted: Wed Feb 08, 2006 8:20 am     Reply with quote

I had this problem until I used the correct crystal. It has to have a 6pF load capacitance. The crystal I used at first had 12pF and it would be off a few seconds a day. Now with the correct crystal, it works like a clock. Smile Look at Digikey PN:300-8301-ND
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Wed Feb 08, 2006 9:30 am     Reply with quote

I seem to remember 12.5pF but that must be a different part


according to spec sheet
page 4 x1,x2
http://pdfserv.maxim-ic.com/en/ds/DS1302.pdf


It should be 6pF loaded crystal.
Saratoga



Joined: 18 Jan 2006
Posts: 9

View user's profile Send private message

OOOOOOKKKKKKK
PostPosted: Thu Feb 09, 2006 1:28 am     Reply with quote

Working.

Smile Smile Smile Smile

Thanks to everybody
_________________
To Pic Or No To Pic
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