hi, i have a problem. i have written a simple code in C to make an LED blinking. after compiling, using the MPLAB Hi Tec PIC Compiler, i try the hex file with simulation, the result was okay. but when burn into PIC, it seems like nothing happened.
hi, i have a problem. i have written a simple code in C to make an LED blinking. after compiling, using the MPLAB Hi Tec PIC Compiler, i try the hex file with simulation, the result was okay. but when burn into PIC, it seems like nothing happened.
rather than trying to blink the LED can you write a program to switch it on then change the program to switch it off (it may be worth checking the output voltage with a voltmeter as well) - that will prove you have the IO working or not - then you can worry about getting the blink loop working
It might be a beginning problem faced due to some code voilations that are not accepted by simulation.
Like if a Port is not declared as whether input or output may work properly on simulation like Proteus but never works actually.
Also Check out Crystal Value should match with value provided while compiling code
Hope This Helps