 Re: pulsin is not getting the next part of wave
 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 17: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 " !!!
*****************************************
			
			
		 
	
Bookmarks