65 seconds.


Results 1 to 3 of 3

Thread: 65 seconds.

Threaded View

  1. #2


    Did you find this post helpful? Yes | No

    Default

    Hi,

    You could try this...

    FOR i = 1 to 65000
    'Do stuff in loop
    PAUSE 1 'ms
    NEXT i

    Also, you could time exactly how long it takes to do the task in your loop, subtract that from 1000us and then use PAUSEUS.
    For instance, if it takes 100us to perform the code in the loop, simply use "PAUSEUS 900" for your delay.

    To time the loop code, write a quick program that simply performs the loop code endlessly and toggle a pin each time through the loop. You should be able to check it out on the scope and get a rough idea of how many microseconds it takes.

    Cheers.
    Last edited by picnaut; - 31st March 2004 at 05:34.
    ---> picnaut

Similar Threads

  1. Virtual LED Clock For Windows By Trent Jackson
    By T.Jackson in forum Code Examples
    Replies: 8
    Last Post: - 10th November 2009, 08:20
  2. 1 minute 30 seconds
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 28th November 2008, 15:51
  3. new and need help
    By smeghead in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd November 2008, 20:19
  4. DS1994 Memory/Time iButton
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 47
    Last Post: - 22nd October 2006, 11:55
  5. Pin High for 13 seconds while....
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th June 2005, 00:36

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