Implementing ICSP via RS232
Moderators: David Barker, Jerry Messina
Implementing ICSP via RS232
Dear All,
I am currently using the RS232 to program (PIC with bootloader burned into the PIC first). I am informed that, it is possible to implement something called ICSP on PIC18F series. I need to clarify a lot of things - still confused. I have gone through the microchip datasheet. These are some of my questions:
1. The datasheet says I need some special IC to do the programming. But I am of the opinion that with some re-arrangement of the 5 pins required to program the PIC, I can straight away jack up my RS232 port and program the PIC right?
2. No bootloader required, right? And may I ask why?
3. What sort of program do I need to convert the codes to do ICSP? Can Swordfish do this? If I am not mistaken, MP-Lab has something to do this.
4. Does this mean I can do away with the PIC programmer - since bootloader is not required?
Thank you.
:wink:
I am currently using the RS232 to program (PIC with bootloader burned into the PIC first). I am informed that, it is possible to implement something called ICSP on PIC18F series. I need to clarify a lot of things - still confused. I have gone through the microchip datasheet. These are some of my questions:
1. The datasheet says I need some special IC to do the programming. But I am of the opinion that with some re-arrangement of the 5 pins required to program the PIC, I can straight away jack up my RS232 port and program the PIC right?
2. No bootloader required, right? And may I ask why?
3. What sort of program do I need to convert the codes to do ICSP? Can Swordfish do this? If I am not mistaken, MP-Lab has something to do this.
4. Does this mean I can do away with the PIC programmer - since bootloader is not required?
Thank you.
:wink:
With ICSP (in-circuit serial programming), you re-program the complete chip each time, hence you do not need a bootloader in the chip first. However, you do need a programmer capable of ICSP, and not an RS232 connection to do this. You do not need to convert the code produced by Swordfish for ICSP - your programmer should be able to read the HEX file and program this into the chip.
I use a PICFlash programmer from ME (http://www.mikroe.com/en/tools/picflashwicd/). It works well and their programming software is easy to use and often updated with new PICs.
Liak,
I use the Pickit2 from Microchip all the time. It has usb connectivity and everything for $35. http://www.microchip.com/stellent/idcpl ... e=en023805
I use the Pickit2 from Microchip all the time. It has usb connectivity and everything for $35. http://www.microchip.com/stellent/idcpl ... e=en023805
ICD2 by Microchip also here.
I'm thinking of getting a couple of pickit2's as well though because they are a lot cheaper than the ICD2 and support nearly all the same pics (just about all of em) with more being added.
Besides for the price I can also afford to blow one to bits every now and then without grtting too uset
I'm thinking of getting a couple of pickit2's as well though because they are a lot cheaper than the ICD2 and support nearly all the same pics (just about all of em) with more being added.
Besides for the price I can also afford to blow one to bits every now and then without grtting too uset
If you can read this you are too close
- David Barker
- Swordfish Developer
- Posts: 1214
- Joined: Tue Oct 03, 2006 7:01 pm
- Location: Saltburn by the Sea, UK
- Contact: