embpic
Advanced Member level 3
- Joined
- May 29, 2013
- Messages
- 742
- Helped
- 80
- Reputation
- 160
- Reaction score
- 77
- Trophy points
- 1,308
- Location
- india
- Activity points
- 5,213
this is my first time of using pickit2. I have written simple LED blinking code.
i am using XC compiler and PIC16f876a controller.
I am getting problem while buring hex file using pickit2.
This error cause at starting after loading hex file and press WRITE button.
This error comes after press ERASE after that press WRITE button.
why this error is comes.
my code is
i am using XC compiler and PIC16f876a controller.
I am getting problem while buring hex file using pickit2.
This error cause at starting after loading hex file and press WRITE button.
This error comes after press ERASE after that press WRITE button.
why this error is comes.
my code is
Code:
#include<xc.h>
//#pragma config WDT=ON
#pragma config CP=OFF
#pragma config LVP=ON
#pragma config BOREN=ON
#pragma config FOSC=XT
#define _XTAL_FREQ 12000000
void main(void)
{
TRISB = 0x00;
PORTB = 0x00;
while(1)
{
PORTB = 0x55;
__delay_ms(1);
PORTB = 0xAA;
__delay_ms(1);
}
}