Quote Originally Posted by mister_e View Post
What happen if you change your High & red definition with
Code:
Red         var LATB.5
Green       var LATB.4
...magically all my problems seem to go away now. I've never needed to use LATX before. Maybe you can educate me a little on why I needed to this time. The datasheet seems to imply that writing to the latch is just a more direct way of writing to the port, but maybe I'm not catching the nuance.

Thanks
David