How long does this circle take?


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2010
    Posts
    26

    Default How long does this circle take?

    How long does the green part take if not excecuted, so the verification whether switch = pushed ?
    Code:
    DEFINE OSC 4
    
    WHILE 1 = 1
    TOGGLE Led
      For counter = 1 to Zeit
        if switch = pushed then
          Pause 475
          WHILE switch = unpushed
          WEND
          Pause 475
        EndIf
        Pauseus 990
      Next counter
    WEND
    Regards
    IAmTheAnswer
    Last edited by IAmTheAnswer; - 9th May 2010 at 12:10.

  2. #2
    Join Date
    May 2010
    Posts
    26


    Did you find this post helpful? Yes | No

    Default

    Is there another picbasic-forum being more frequented?

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    It takes about 6uS to test switch and jump to Pauseus 990 if switch is not = pushed.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    Join Date
    May 2010
    Posts
    26


    Did you find this post helpful? Yes | No

    Default

    Thanks ..........

Members who have read this thread : 1

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