PDA

View Full Version : Need a programmer? And, ICSP - Effects on rest of circuit?



Rifraf
- 10th December 2007, 19:37
I am just getting started with some PICBasic projects. I haven't bought any of the hardware yet and have the following questions:

First, if I plan on putting a ICSP header on my breadboard, then do I really need to purchase a PIC programmer? It looks like the most basic ICSP programming interfaces are simply an RS232 level shifter? What's the most recommended?

Second, I am concerned about what the effects of the ICSP signals are to the rest of the circuitry. If you have your RB6 and RB7 pins connected to transistors, etc, then I assume you don't want the circuit to be triggering those components. The only thing I have found out there is that when you a resistor (10K or so) between the port and your component (which you would probably do, ANYWAY), then you are a little better protected? Is the convention to NOT power your circuit while programming? Do you have to include any kind of Diode to keep the ICSP circuit from powering the rest of your circuit during programming?

Thanks!
- Steve

mister_e
- 10th December 2007, 23:57
YEah circuit design most follow some requirement... BUT you can still use a switcher made with relay or whatsoever then when you want to program your PIC, you just flip the switch.

OR modify your circuit. If your current design use some push button.. sitting them on those pins won't affect anything. It really depend of your whole design.

I'll suggest you to read the Microchip ICSP guide bellow.
http://ww1.microchip.com/downloads/en/DeviceDoc/30277d.pdf

for PIC programmer, i don't suggest ANY cheap simple serial type such as JDM... they tend to have tons of weird issue. A nice starter, is Microchip Pickit 2. ~40 USD. USB, well supported, provide a free debugger for some PIC model. Work smooth.