Problems with my "intelligent timer"


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Problems with my "intelligent timer"

    Sorry Fratello, but your thread title excludes me from this discussion.

    I wish I could help you but this is over my head. I have enough problem keeping concentrated on my own little project.

    Robert

  2. #2
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Problems with my "intelligent timer"

    Thanks anyway for attention !
    How I say :
    Re: Problems with my "intelligent timer"
    I think it's a problem with the title of my topic ... since me I am not intelligent enough to solve this !
    ...to note the use of quotes in first row...
    This is my working (in Proteus) code, i will try it tomorrow :
    Code:
    MAIN:
      led1=0
      led2=0
      pause 50
    if but1=1 then
      cnt = cnt+ 1
               if cnt = 1 then     
                    while but1=1
                    gosub memo
                    wend
               endif
    
               if cnt = 2 then                         
                    while but1=1
                    gosub check
                    wend
               endif
                  
    if cnt > 2 then cnt=0               
    endif 
    Goto MAIN
    
    '==================================================
    check:          
        high led2
        pause 500
        low led2
    for num = 0 to 500   
        pause wipper 
        call breking           ' this is the new part added !!!
    next num    
    return
    
    breking:
    if but1 = 0 then 
    wipper = 0
    goto main
    endif
    return
    
    memo:
    high led1
        wipper = wipper + 1    ' counting in 500 ms steps                
        pause 500
    low led1
        pause 500
    RETURN
    Best regards !

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