inaccurate frequency using TMR1 PI18F452


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    6


    Did you find this post helpful? Yes | No

    Default Pic18f452

    I've introduced the changes you suggested.
    I'm VERY pleased to find that frequency is no longer a function of the interrupt routine duration!
    Frequency output is still unstable and is constantly fluctuating end to end about 150 Hz when I set TMR1 to 65200 (7.3 KHz range). How can I improve frequency stability?
    Thanks a lot.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Use an assembler ISR or use 'Instant interrupts' by Mr Darrel Taylor. REALLY NICE STUFF!
    http://www.pbpgroup.com/modules/wfse...p?articleid=19
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Code Measure Frequency by TMR1
    By blinkstar88 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th February 2011, 10:51
  2. TMR1 external LP xtal setup check
    By comwarrior in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th October 2009, 19:11
  3. HPWM command and oscillator frequency
    By RussMartin in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th March 2009, 23:41
  4. HPWM10 Frequency Updating
    By duncan303 in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 19th January 2008, 13:30
  5. Measuring change of frequency with PIC
    By Aussie in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th July 2007, 02:47

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