Hello everyone,
I m continuing from the problem I posted about RTC time lag.
I read datasheet of DS1307 and KDS32.768Khz oscillator
RTC requires crystal of load capacitance of 12.5pf and KDS 32.768Khz has the same.
I m implementing the same circuits as used in datasheet of DS1307
But there was a lag in the time by 3 to 4 hours within 5-6 days
Then I connected a capacitor of 15pf between oscillator lead going to pin no-1 of rtc and ground.
Now my problem is minimized, but still there is a lag of 5min within 4 days
Track between oscillator and ic is hardly 1-2 cm.
To check the software fault, I generated 1 sec interrupt from RTC and monitored it on port pin of controller, 1sec interrupt is also properly generated.
Can u tell me why this is happening?
How can I make clock accurate?
thank u all.........
I m continuing from the problem I posted about RTC time lag.
I read datasheet of DS1307 and KDS32.768Khz oscillator
RTC requires crystal of load capacitance of 12.5pf and KDS 32.768Khz has the same.
I m implementing the same circuits as used in datasheet of DS1307
But there was a lag in the time by 3 to 4 hours within 5-6 days
Then I connected a capacitor of 15pf between oscillator lead going to pin no-1 of rtc and ground.
Now my problem is minimized, but still there is a lag of 5min within 4 days
Track between oscillator and ic is hardly 1-2 cm.
To check the software fault, I generated 1 sec interrupt from RTC and monitored it on port pin of controller, 1sec interrupt is also properly generated.
Can u tell me why this is happening?
How can I make clock accurate?
thank u all.........