amaant1
Newbie level 3
Hi, I made a program through MPlab IDE which is mention below;
I'm using PIC16f877a and I used attached schematic as a reference. This circuit works perfectly on proteus which is a PIC simulation software but after transfering .hex file, not a single LED is blinking in my circuit. I couldn't find a problem. by the way I am supplying 5v through variable power supply which I made at home.
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 #include <htc.h> #define _XTAL_FREQ 4000000 void main() { TRISB=0x00; PORTB=0x00; while(1) { PORTB=0xFF; __delay_ms(100); PORTB=0x00; __delay_ms(100); } }
I'm using PIC16f877a and I used attached schematic as a reference. This circuit works perfectly on proteus which is a PIC simulation software but after transfering .hex file, not a single LED is blinking in my circuit. I couldn't find a problem. by the way I am supplying 5v through variable power supply which I made at home.
Attachments
Last edited by a moderator: