Page 1 of 1

ICSP cable length

Posted: Tue Oct 22, 2019 2:22 pm
by Jan Lichtenbelt
I use the PIC multiprogrammer BL0080 in connection with the PIC16(L)F188857 microchip. The microchip is situated on another PCB board. To program the chip, I use an ICSP cable, but not always with success. Remark: There are no external components connected to B6 or B7 (ICSP data and Clock line)

I started with an ICSP cable length of about 35 cm. To chip will be recognised, but the program is not stored well. No error is given, only the warning that "the flash memory has not been verified, may be due to code protect". The same cable and PICTIK4 as programmer, does not give any problem.

It gets even worse using the BL0080 in connection with the PIC16(L)F1847 microchip by means of an ICSP cable of 10 cm length. Now I get the message that the microchip has not been recognised. Here also the PICKIT4 did not give problems.

Using the older programmer EB-006 I used even cable lengths up to 50 cm.

Conclusion so far is that using the BL0080 and ICSP cable lengths to 10 cm maximum are advised. If you need longer lengths, it may be possible that you have to use the PICKIT4 with MPLAB X IPE.

Or is there an other (better) solution?

Kind regards

Jan

Re: ICSP cable length

Posted: Tue Oct 22, 2019 3:44 pm
by medelec35
Hi Jan,
Have you tried placing a small load of about 4K7 between data & 0V + clock & 0V?
Not sure if it will make a difference, but it could be electrical noise is changing the programming waveform with longer lengths of cable?

Re: ICSP cable length

Posted: Wed Oct 23, 2019 11:42 am
by Jan Lichtenbelt
Hi Martin

I tried the 4k7 resistance, but no better results, or even worse results.

Can it be the voltage level of Vpp?

Kind regards

Jan

Re: ICSP cable length

Posted: Wed Oct 23, 2019 4:01 pm
by Benj
Hi Jan,

The longer the cable the more a simple wire becomes like a transmission line with things like capacitance, inductance and resistance all playing a more significant part (reactance).

Transmission lines are complex things to deal with. You may need specific capacitor values at either end to stop reflections. You may also need grounded shielding around the conductors. The MCLR current from the PICkit is likely quite small and so if the resistance of the cable is significant then this may lead to issues where the VPP is not being raised high enough. The additional capacitance may also slug the MCLR rise time which can also cause issues.

By far the easiest thing to do is to reduce the length of the wire but this may not be an option for you.