I searched around much to glow the LED on pressing PUSH Button in Proteus . But LED glows on its on and do not turn Off on pressing Push Button in Proteus. I am working on Simulation with PIC18F2455 and here is the MicroC code.
void main() {
TRISB.B0=1; //input button
TRISB.B7=0; //output
while (1)
{
if( PORTB.B0 == 0 )
{
PORTB.B7=1;
}
else
{
PORTB.B7=0;
}
}
}