I tried to code LED on-off program for test PIC18F4550 microcontroller. The code can program to IC using Pikkit 2 but a program is not working. I code by using MikroC Pro for Pic 6.6.1. I am using 4Mhz crystal oscillator.
Why program is not working? is it IC not working?
Code:
void main() {
TRISA.B0=0;
while(1){
PORTA.B0=1;
Delay_ms(2000);
PORTA.B0=0;
Delay_ms(2000);
}
}
This is my circuit diagram: