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


Results 1 to 19 of 19

Threaded View

  1. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,656


    Did you find this post helpful? Yes | No

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

    typical timer1 reload example in asm
    ; All interrupts are disabled
    CLRF TMR1L ; Clear Low byte, Ensures no
    ; rollover into TMR1H
    MOVLW HI_BYTE ; Value to load into TMR1H
    MOVWF TMR1H, F ; Write High byte
    MOVLW LO_BYTE ; Value to load into TMR1L
    MOVWF TMR1H, F ; Write Low byte
    ; Re-enable the Interrupt (if required)

    this is 7 instructions when you include the enable/disable interrupts

    another thing to consider is that your typical xtal is only accurate to about 50 parts per million , so unless your xtal is in a temperature controlled oven your expecting too much, fudging the preload is not a proper solution.
    Last edited by richard; - 10th July 2014 at 02:09. Reason: colour went funny

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 : 0

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