Darrel Taylor Elapsed Timer


Results 1 to 15 of 15

Threaded View

  1. #10
    Join Date
    Oct 2005
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    Oh, I have lots of initilized variables in my Init: routine before it drops into the Main. But thanks.

    Yes, it's counting properly now. You 100% correct, I moved my prewritten HSerIn call from the previous main loop and copied it up there. I did not think about the time out but the timeout is only set to 5.

    Holy Cow, Also on timeout, I have it going back to the Receive label as well, I think that is the issue.
    Better make that the Interrupt Exit...
    WAS


    'Receive Interrupt
    Receive:
    'Clear the buffers before anything
    GOSUB ClearBuffers

    HSerIn Timeout,Receive,[WAIT(MyID)] <---- Opps
    For Cnt = 1 to 7
    HSerIn Timeout,Receive,[BufRX(Cnt)] <---- Opps
    Next Cnt
    Gosub ProcessData
    ExitRx:
    @ INT_RETURN




    Changed to

    'Receive Interrupt
    Receive:
    'Clear the buffers before anything
    GOSUB ClearBuffers

    HSerIn Timeout,ExitRx,[WAIT(MyID)]
    For Cnt = 1 to 7
    HSerIn Timeout,ExitRx,[BufRX(Cnt)]
    Next Cnt
    Gosub ProcessData
    ExitRx:
    @ INT_RETURN
    Last edited by rwskinner; - 12th March 2008 at 05:15. Reason: Added more comments

Similar Threads

  1. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 18:39
  2. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 17:45
  3. Timer interrupt frequency
    By Samoele in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th January 2009, 00:49
  4. using darrel taylor's instant interrupts
    By Michael Wakileh in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 31st July 2007, 05:07
  5. timer interupt help 16f73
    By EDWARD in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd July 2005, 09:41

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