Pls i wrote a program to on an led when a pushbutton is pressed and off when it is realease.
The program looks ok but when i simulated it on proteus, it wasnt working.
The program is written in mplab.
The code and circuit diagram are in the image.
Pls hlp me out.