Hi,
Is your PORTA.5 changing all the time. Please note that the latch that holds the value for a mismatch is not cleared upon MCLR reset. Thus depending on your code there may be a condition where your PIC resets and you don't realize. (If you are manually polling values)
Please post your complete code and schematic.
Bookmarks