PIC16f877a is being detected by Genius G840 programmer.
I am trying to test an example code of LED Blinking,
the code is as follows.
void main() {
PORTC = 0;
TRISC = 0;
while(1) {
PORTC = ~PORTC;
Delay_ms(1000);
}
}
I am trying to burn the hex file of above mentioned code compiled in MikroC. where I have set the oscillator frequency as 20 Mhz and device is selected as PIC16F877A
Now where can I set the proper voltage ?
and what should be the configuration bits values to program.
At the moment the programmer is erasing, doing blank check but when it comes to programming its gives
"Program Error"
Where I am going wrong?