the debug sequence ...
Hi, Johan
When happening ... the first reflex is to open the datasheet and look to the functions connected to the "faulty" pins ...
have a look to pict $ 5.1 ...
Here we also find an ANALOG Comparator ...
so, let's disable it !!!
CMCON = 7 ( from the table $13.1 )
By the way, we don't need the voltage ref nor ...
CVRCON = 0
So, I did forget some littles things ??? ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks