Question for Mr. Darrel Taylor and Mister-e Timer1 Reload


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Italy
    Posts
    72


    Did you find this post helpful? Yes | No

    Default Re: Question for Mr. Darrel Taylor and Mister-e Timer1 Reload

    Thank you a lot.

  2. #2
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Question for Mr. Darrel Taylor and Mister-e Timer1 Reload

    Just one more thing that I had to deal with...
    Selection of crystal and capacitors from OSC pins to ground is critical to get accurate clock. I tried one by one from 10 to 47pF, and best results are with 47pF. But that will depend from board layout and used crystal.
    My suggestion is that you buy a lot of crystals, and select appropriate capacitor for it. And use that combination from now.

  3. #3
    Join Date
    Aug 2006
    Location
    Italy
    Posts
    72


    Did you find this post helpful? Yes | No

    Default Re: Question for Mr. Darrel Taylor and Mister-e Timer1 Reload

    Thank you pedja089,
    looks to be a challenge...

  4. #4
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Question for Mr. Darrel Taylor and Mister-e Timer1 Reload

    I'm glad that I could help.
    Good luck

  5. #5
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: Question for Mr. Darrel Taylor and Mister-e Timer1 Reload

    Mike

    You may wish to use a 32.768 kHz watch crystal.

    Following from the PIC18F/LF1XK50 datasheet:
    11.6 Using Timer1 as a Real-Time Clock
    Adding an external LP oscillator to Timer1 (such as the
    one described in Section 11.3 “Timer1 Oscillator”
    above) gives users the option to include RTC functionality
    to their applications. This is accomplished with an
    inexpensive watch crystal to provide an accurate time
    base and several lines of application code to calculate
    the time. When operating in Sleep mode and using a
    battery or supercapacitor as a power source, it can
    completely eliminate the need for a separate RTC
    device and battery backup.
    Norm

  6. #6
    Join Date
    Aug 2006
    Location
    Italy
    Posts
    72


    Did you find this post helpful? Yes | No

    Default Re: Question for Mr. Darrel Taylor and Mister-e Timer1 Reload

    Thank you Norm, that looks interesting.

    What about NEVER stop Timer1 into the ISR while setting TMRL=<some preload value> and TMRH=<some preload value> in that order?
    This approach will be evil or could work?

    Thanks.

  7. #7
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: Question for Mr. Darrel Taylor and Mister-e Timer1 Reload

    mikebar

    I'm not sure about the interrupt question.
    Also see Run-Time Calibration of Watch Crystals and Software Real-Time Clock and Calendar.

    Norm
    Last edited by Normnet; - 13th July 2014 at 20:12.

Similar Threads

  1. Darrel Taylor Interrupts and MultiCalc
    By AvionicsMaster1 in forum General
    Replies: 6
    Last Post: - 14th February 2012, 06:18
  2. Timer1 and Timer2 interrupts, Darrel Taylor
    By ronbowalker in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th December 2009, 18:38
  3. To Mr. Darrel Taylor once again
    By atwoz in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 10th December 2009, 19:10
  4. Darrel Taylor Elapsed Timer
    By rwskinner in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th March 2008, 01:22
  5. @Darrel Taylor Interrupt ;-)
    By Robson in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 31st August 2007, 00:59

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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