Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Every few Hours clock running fast rtc1307

Status
Not open for further replies.

sajsaj220

Newbie level 5
Joined
Mar 1, 2019
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
95
What may be the possible cause for RTC1307 Module(Purchased from Market) running fast approximately 1sec in 3hrs.

Let me elaborate what I have done,

My code is in xc8 and internal osc configured in 8mhz at mcu16f887.

Display is 7segments, data being extracted from RTC1307 (MODULE) with I2C, technique Multiplexed and two button is used for time setting in h/w side. All are going correctly, but

Once adjusting time with the actual, noticed that after (apprx) 3-4 hours 1-second running fast. Is it the problems of RTC1307 Module or others of my h/w or software.

As per my opinion that could be only for the cause of RTC module, if so then how do i get rid of that..


Than u.
 

Hi,

What do you expect from us?
* If you want us to validate the hardware --> you need to show us
* If you want us to validate the software --> you need to show us

Klaus
 

Do what Klaus suggests first.
If it is just the clock running fast, the problem is the crystal (or external clock if you are using one) is too high in frequency. That could be because of the crystal itself or the track layout around it. You have to follow the design guidelines in the 1307 data sheet if you want it to be accurate.

Brian.
 

What does running fast for 1 sec actually mean? How much is the time advancing?
 

Also what would be useful to know is - what clock are you using to compare this too ? Maybe your reference clock is actually running slow by 1 second per 3 hours !! 1 sec in 3 hours implies ~ 100ppm, which is not good. But then, DS1307 is not known for great accuracy or stability. Check out this writeup.
 

Most 32.768KHz crystals (you did not mention, but it is presumably the one you're using) have good acuracy, ranging from ±5/10ppm up to ±20ppm in the worst cases; however it is possible to find brands with poor specifications of ±50ppm and even of ±100ppm (e.g this), which apparently is the one you have been got; as you took it in the retail, you certainly do not have any reference to the model/manufacturer, and in that case the tip would be to acquire a different one from this one.
 

It would seem that OP was using an inappropriate reference to check the accuracy. A common noob mistake.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top