I make the circuit with 18F452. I want to download my modificated code to Pic without disconnect the pic from my circuit. It is possible. If your answer is yes, please say to me what is added to hardware and software?
I make the circuit with 18F452. I want to download my modificated code to Pic without disconnect the pic from my circuit. It is possible. If your answer is yes, please say to me what is added to hardware and software?
If I don´t understand you bad, you want to download the new firmware without disconnect the PIC "fisically", but not "electrically". What I'm trying to said is that you don't have problems in turn off your equipment, move some jumpers and then download your new firmware.
If that is all right, you asked about ICSP (In Circuit Serial Programming), you could found a lot of information about it in Microchip's home page (www.microchip.com).
I could't send you the information about your uC becouse I didn't found the 18F452 uC. I know about 18F4520, 18F4523 and 18F4525, but nothing about 18F452.
Is that the right code ?
for example I have writen the below code.it have been working very well.
main(){
while(true)
{
output_high(Green_led);
Delay_ms(1000);
output_low(Green_led);
Delay_ms(1000); //green led flashed at 0.5hz
}
}
this code compiled and downloaded to PIC using epic programmer. Afterthat for example I want to add the below line in my while(true) loop.
x++;
main(){
while(true)
{
output_high(Green_led);
Delay_ms(1000);
output_low(Green_led);
Delay_ms(1000); //green led flashed at 0.5hz
x++;
}
}
afterthat I will compile the new code. Then I want to download new hex code directly to PIC( don't want to use any programmer) . I want to literature So my question is that does it named firmware update?
As ric_vas said, the solution for what you want to do is use a bootloader. This is a code that you must upload only one time in your uC and then you could upload program code via serial interface.
The better thing you could do is search in Microchip website for bootloader and try to find one bootloader code wich has been designed for your uC. The bootloader have some diferencies between diferents uC of the same family.
If you don't found anything, send me a PM and I would try to found something.
Well, I mentioned bootloader because he said it should be no need for a programmer... But, of course, you can use ICSP to load your uC in your board, actually that's the meaning of ICSP.