Cooking (kitchen) Timer - Xtal or Resonator both too "slow"


Results 1 to 5 of 5

Threaded View

  1. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: OSCTUNE register

    Quote Originally Posted by flotulopex View Post
    No, something else is affecting the oscillator's accuracy. But what is it?
    Code:
    On Interrupt Goto TICK_INT
    How many times an Hour ???

    BTW ... THIS
    Code:
    CalibrationLoop:
     LCDOut $FE,$8B
     If TMR1Cal=0 then
     LCDOut " "
     else
     If TMR1CalAR=0 then
     LCDOut "+"
     else
     LCDOut "-"
     endif
     endif
     LCDOut #TMR1Cal," "
     ' ----------------------------------------------------------
     ' Press Start Button to ADVANCE (speed-up) Clock
     ' Press STOP Button to RETARD (slow-down) Clock
     ' Press RESET Button to SAVE new Calibration Setting
     ' ----------------------------------------------------------
     ' Remember each Calibration 'tick' will advance or
     ' retard the Timing by 1uS in every 10mS period - that's
     ' 360mS/Hour per setting. Example: A setting of +8 will
     ' SPEED-UP the Timer by 2.88 Seconds (8 x 360mS) in an Hour.
     ' ----------------------------------------------------------
     If TMR1CalAR=0 then
     If ButStart=0 then Gosub CalAdvance
     If ButStop=0 then Gosub CalRetard
     else
     If ButStart=0 then Gosub CalRetard
     If ButStop=0 then Gosub CalAdvance
     endif
     If ButReset=0 then
     Write 0,TMR1CalAR
     Write 1,TMR1Cal
     LCDOut $FE,1,"Have a Nice Day"
     Pause 1000
     Goto DisplayReset
     endif
     SetupTimeout=SetupTimeout+1
     If SetupTimeout>200 then goto DisplayReset
     Pause 100
     Goto CalibrationLoop
    has mysteriously disappeared from your code ...

    Alain
    Last edited by Acetronics2; - 28th November 2015 at 20:22.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Replies: 0
    Last Post: - 14th November 2013, 03:32
  2. Problems with my "intelligent timer"
    By fratello in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 21st September 2012, 19:06
  3. Replies: 0
    Last Post: - 21st April 2012, 16:29
  4. Alarms with Mel's "Olympic Timer" based timer - how to?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 20th June 2007, 22:09
  5. Simple "backround" timer
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th November 2005, 05:11

Members who have read this thread : 0

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