Something is really screwed up !
Code:
ReadPWM:
pulsin GPIO.4,1,Pulselen ' pin 3 - read high pulse length
If Pulselen > 0 Then GoTo Blink ' on -> blink led
GoTo ReadPWM
I've tried various settings for "if pulselen >" and it makes no difference, the code just won't jump to the blink led section. I also tried the RCTIME as it mentions in the manual that RCTIME measures the time it takes for a pulse to change state from on to off.. even that didn't work.
Dan (Gecko) - maybe you can use your 16F628 as a test bead and hook up your LCD to display the value of pulselen for a 1ms signal, and 2ms signal and then use that to set the threshold ?
Bookmarks