i m using MPLAB 8.85.
can anybody tell me that how can i use or change the state of ports my self? is that possible or not.
i just wrote a program to turn on an led by making a port hi but when i make the port line hi, in "SFR register" window it goes lo itself without any action. i m sending the code and screen short of the mplab screen.
When the PC is pointing to 1st instruction in MAIN then you have to set PORTA as 00000001 in SFR window. Also see if you can see IN_SW in variables window. Try to set it there. For better help zip and post your mplab project files.