slow return from subrutine


Results 1 to 22 of 22

Threaded View

  1. #11
    servo260's Avatar
    servo260 Guest


    Did you find this post helpful? Yes | No

    Default

    Thaks Steve for your help.
    Here is the schematic, I hope It'll help.
    And the modified program.
    What I notice is that if I press the 2 buttons at the same time then it returns to the main program in aprox. 3 sec. instead of 20.
    It's a bike speedometer, you help me before with this. It works great, beside the slow return.
    I also tried putting all the vars to word sized but it never return from the subrutine (at least I got tired of pressing the button)
    Perhaps when this works ok the write command will too.
    Attached Images Attached Images  

Similar Threads

  1. Multi Slow speed PWM and Instant Interrupts
    By DaveC3 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd November 2010, 12:50
  2. Making a menu
    By chrisshortys in forum mel PIC BASIC Pro
    Replies: 36
    Last Post: - 12th November 2008, 19:54
  3. Stack over flow with IF THEN RETURN ENDIF???
    By kdoske in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th December 2007, 17:20
  4. IC2 pic 18f452 program problems
    By MrSafe in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 20th September 2007, 18:55
  5. Can RESUME replace RETURN in a GOSUB?
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th October 2005, 09:03

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