Delay problem


Closed Thread
Results 1 to 12 of 12

Thread: Delay problem

Hybrid View

  1. #1
    niels's Avatar
    niels Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by lloyd778
    I organized it up a bit. The blinky no worky, so I went back to the simple toggle. I aliased everything that I could. Looks better but works the same. Any suggestions?
    Your problem is in Sub2. The delays you are using are preventing the switch from being read. What you want to do is check the status of the switch inside the delay routine. If you see the switch go off, jump to Sub1. You need to keep checking the status of the switch - and the easiest place to do this is inside the delay routine itself.

  2. #2
    Join Date
    Sep 2006
    Posts
    5


    Did you find this post helpful? Yes | No

    Default That's it...

    Yes, that was exactly my problem all along. Thank you niels.

Similar Threads

  1. 16F628A - Stops if release power switch.
    By dene12 in forum General
    Replies: 16
    Last Post: - 14th February 2009, 07:57
  2. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  3. need a project for PIC16F84
    By Danish in forum Schematics
    Replies: 6
    Last Post: - 3rd August 2005, 17:51
  4. Memory Space of the PIC16F84...
    By Tear in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 1st July 2005, 19:55
  5. Problem with saving to EEPROM...
    By Tear in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st July 2005, 00:10

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