1ms Elapsed Timer Demo with DT's Instant Interrupts


Results 1 to 22 of 22

Threaded View

  1. #12
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: 1ms Elapsed Timer Demo with DT's Instant Interrupts

    1.. Yes.
    There is a little more in the main program to handle the ext interrupt, but essentially yes (for question 2).

    The main program turns external int off and clears it’s trigger flag as well at initialise time.
    Then when the sync wants to happen for whatever reason (like the GPS has been locked for a minute),
    the main program turns ext int on. Then I figure the next time the ISR is called by ext interrupt,
    the timer should be loaded rather than added to... but added to every other time, because
    the ISR turns ext int off just a little after this.

    ps.. So far the time is still correct, but I can’t test lag or error of the sync to the pulse.
    Last edited by Art; - 20th May 2015 at 16:04.

Similar Threads

  1. DT's Instant Interrupts
    By andywpg in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st June 2014, 18:01
  2. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 17:39
  3. DT's Instant Interrupts trouble
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th November 2008, 20:48
  4. Elapsed Timer Demo in a PIC12F675
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 21st November 2008, 00:01

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