pulsin is not getting the next part of wave


Results 1 to 10 of 10

Threaded View

  1. #8
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: pulsin is not getting the next part of wave

    Hi,

    Solution is pretty simple:

    Code:
    
    leader  var word
    leader1 var word
    
    Main:    
    PULSIN GPIO.0,0,Leader  ' leader pulse is ~9mS low-going on port 0
       
    IF Leader < 850  tHEN  main
      
    RCTIME GPIO.0,1,Leader1      ' check for 1stkey seq only no repeat headers
        
    if leader1 < 300 then Main  ' if high for < 300 (2.4ms then its the 2nkey)
    may be you could consider the IF condition takes few µs ... to be verified, because your time unit is 10µs !

    That's all !

    Alain
    Last edited by Acetronics2; - 30th March 2012 at 16:55.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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