I have a problem that is driving me nuts. I am sure, that there is someting I just don't get, but can someone please tell me what?
That setup is a dsPIC33FJ128MC802 which I try to program in C.
I have the following code (Let's assume that everything is setup and all ports are digital and outputs).
If I write this in my code:
PORTA = 3;
and take my measure thingy (danish for multimeter, I can see that Port a0 and a1 is high as expected. If I single step using the PIC simulator, I can see that PORTA is 0000011.
If I write this in my code: