bouzekri-menara-
Questions:
I didn't mention that I have a #define PORTDx RDx. And that the program works fine on simulator (observing PORTD giver 0xFF). I use Picstart Plus to program it. But still no ckue as to what checks I need to do or where the problem comes from?