timer offset calibration for RTC


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838

    Default timer offset calibration for RTC

    hi guys been looking a the spec sheet on a new RTC that has a offset calibration method but i am not sure how it may be done in code as yet , any pointers



    Name:  calibration calculation.JPG
Views: 485
Size:  52.3 KB

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,389


    Did you find this post helpful? Yes | No

    Default Re: timer offset calibration for RTC

    do you have a freq/period counter that can measure 0.1 nS accurately ?

    what is the temperature stability of your xtal ?
    what is the long term stability of your xtal ?

  3. #3
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: timer offset calibration for RTC

    xtl is 10ppm type , on the rtc , but any measurements would be by putting the clock output pin from the RTC chip into the pic and counting / and doing the calculation to adj the offset value on the rtc , the pic is 18f 64mhz,

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,389


    Did you find this post helpful? Yes | No

    Default Re: timer offset calibration for RTC

    unless the xtal on the pic is sufficiently more stable and accurate than the rtc rock its hard to see a meaningful result quickly .have seen clever things done with a gps and the 1 sec pulse the satellite
    atomic clock sends out. (described in silicon chip mag , I think it even used a pic chip).
    it would probably achieve more to see if you rtc gains or loses time compared to a ntp clock over a period of days (weeks?) and add or subtract 1 (as appropriate) to the adjustment buffer ,then re-evaluate. but in perth weather the temperature difference between inside and outside (hopefully) would probably make calibration doubtful anyway

Similar Threads

  1. 10bit ADC with offset on 16F88
    By Amoque in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st April 2012, 15:11
  2. DS1820 Negative Numbers and OffSet
    By gadelhas in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd April 2011, 21:53
  3. dt int timer1 ignores offset value
    By DDDvvv in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 15th June 2010, 09:53
  4. Offset to variable howto ?
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 3rd October 2008, 09:36
  5. Analog signal is offset at -11VDC....
    By TurboLS in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th April 2005, 10:03

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts