Quote Originally Posted by mister_e View Post
In fact, you should use LATF.x instead of PORTF.x ...
Alain, OP says WHILE:WEND didn't work.. not sure why... sounds odd...
a good point for a " not so clean" signal ...

While PortA.5 : Wend just gives

BTFSC Porta,5
GOTO $-1

...

asm is really useful, sometimes !!! lol

Alain