Quote Originally Posted by flotulopex View Post
You may be right!

I just noticed that, using an additional microcontroler view in the simulator, the port doesn't change.

So I'm going to make it in "real".

Another thing; I have declared PORTA.6 as an Input (TRISA = %11110000). When I change this to an Output (TRISA = %10110000), the port will keep it's status as it should be.

Unfortunalety, I will need it as an Input.

I'll go back to my breadboard....
Actually, I believe I heard both mister_e and DT both say that they don't trust simulators one bit.
However, I trust the Microchip simulator almost implicitly. Why don't you try running your code on that and keeping an eye on the port values?