niranjan23
Member level 5
Hello!
Recently I bought new PIC programmer PICkit2 and PIC16F877A microcontroller IC. I just made one simple LED blinking Program using HiTech C compiler with Configuration bits and I program the 16f877a ic successfully with exported hex file.
Now my problem is I programed 16f877a perfectly but it is not working on development board of PIC16f877a.
Simply the program I made fro led blinking is not running on hardware but it run on Proteus simulator.
This is the program for LED Blinking on PORTB.
The programming software which I used is PIC kit2v2.61
I'm confused and I dont knw what is Wrong I am doing?? Plz Plz help me with this, Im very grateful to You!
Recently I bought new PIC programmer PICkit2 and PIC16F877A microcontroller IC. I just made one simple LED blinking Program using HiTech C compiler with Configuration bits and I program the 16f877a ic successfully with exported hex file.
Now my problem is I programed 16f877a perfectly but it is not working on development board of PIC16f877a.
Simply the program I made fro led blinking is not running on hardware but it run on Proteus simulator.
This is the program for LED Blinking on PORTB.
Code:
#include<htc.h>
#define _XTAL_FREQ 20000000
void main()
{
TRISB=0x00;
PORTB=0X00;
while(1)
{
PORTB=0x00;
_delay(1000);
PORTB=0xff;
_delay(1000);
}
}
The programming software which I used is PIC kit2v2.61
I'm confused and I dont knw what is Wrong I am doing?? Plz Plz help me with this, Im very grateful to You!
Last edited by a moderator: