Why do I get a Syntax Error for the ELSE row?
loop2:
ADCIN 0, involt 'Read channel 0 to involt
PAUSE 100 'Wait 100 ms
IF involt >= 128 THEN GPIO.5 = 0
ELSE GPIO.5 = 1 ENDIF
GOTO loop2
END
PIC12F683 & PBP2.60
Why do I get a Syntax Error for the ELSE row?
loop2:
ADCIN 0, involt 'Read channel 0 to involt
PAUSE 100 'Wait 100 ms
IF involt >= 128 THEN GPIO.5 = 0
ELSE GPIO.5 = 1 ENDIF
GOTO loop2
END
PIC12F683 & PBP2.60
Bookmarks