Page 1 of 1
ICSP with MCLR disabled fails
Posted: Sat Nov 19, 2011 5:21 pm
by Jan Lichtenbelt
I use ICSP via EB006 to program the 12F1840. In the config word MCLR enabled works correctly. However as soon as I set MCLR disabled, programming fails. All the applicale pins during programming are not connected for other reasons.
What can be the source of the problem??
Kind regrads
Jan Lichtenbelt
Re: ICSP with MCLR disabled fails
Posted: Sat Nov 19, 2011 6:30 pm
by medelec35
Re: ICSP with MCLR disabled fails
Posted: Sat Nov 19, 2011 9:24 pm
by Jan Lichtenbelt
I was to early with shout with joy. It does not work.
Can it be due to the fact that as I do autodetect PICmicro I get 16F722A instead of 12 F1840?
Kind regards
Jan
Re: ICSP with MCLR disabled fails
Posted: Sat Nov 19, 2011 9:34 pm
by Jan Lichtenbelt
I used the option to raise Vdd after Vpp. On the EB006 board it works ok, but with ICSP line of about 25 cm, it fails.
Jan
Re: ICSP with MCLR disabled fails
Posted: Sat Nov 19, 2011 10:30 pm
by medelec35
Jan Lichtenbelt wrote:I was to early with shout with joy. It does not work.
Can it be due to the fact that as I do autodetect PICmicro I get 16F722A instead of 12 F1840?
Do you get that with both chip plugged into EB006 and via ICSP?
Or just via ICSP?
If you look at the chip ID for both devices the id are very similar i.e 1b80 & 1B80 and if there is no case differences then they are exactly the same.
Jan Lichtenbelt wrote: but with ICSP line of about 25 cm, it fails.
The longer the line then the greater load capacitances will affect the signals.
Have you tried a shorter length as well?
Martin
Re: ICSP with MCLR disabled fails
Posted: Sun Nov 20, 2011 12:32 pm
by Jan Lichtenbelt
Hi Martin
Do you get that with both chip plugged into EB006 and via ICSP?
Or just via ICSP?
Both
If you look at the chip ID for both devices the id are very similar i.e 1b80 & 1B80 and if there is no case differences then they are exactly the same.
Interesting. The question is if the wrong ID detection influences the programming of the ID?
The longer the line then the greater load capacitances will affect the signals.
Have you tried a shorter length as well?
I will try this later. I'm happy I can program the 12F1840 now with internal oscilator and MCLR disabled on the EB006 board
Kind regards
Jan