ICSP with MCLR disabled fails

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

ICSP with MCLR disabled fails

Post 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

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: ICSP with MCLR disabled fails

Post by medelec35 »

Hi Jan,
Could it be similar to this:
http://www.matrixmultimedia.com/mmforum ... 37&p=20028
?

There is also another workaround.
See:
http://www.matrixmultimedia.com/mmforum ... 590#p20001
Martin

User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Re: ICSP with MCLR disabled fails

Post 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

User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Re: ICSP with MCLR disabled fails

Post 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

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: ICSP with MCLR disabled fails

Post 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
Martin

User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Re: ICSP with MCLR disabled fails

Post 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

Post Reply