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
ICSP with MCLR disabled fails
Moderator: Benj
- 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:
-
- 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
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
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
- 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
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
Can it be due to the fact that as I do autodetect PICmicro I get 16F722A instead of 12 F1840?
Kind regards
Jan
- 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
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
Jan
-
- 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
Do you get that with both chip plugged into EB006 and via ICSP?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?
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.
The longer the line then the greater load capacitances will affect the signals.Jan Lichtenbelt wrote: but with ICSP line of about 25 cm, it fails.
Have you tried a shorter length as well?
Martin
Martin
- 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
Hi Martin
Kind regards
Jan
BothDo you get that with both chip plugged into EB006 and via ICSP?
Or just via ICSP?
Interesting. The question is if the wrong ID detection influences the programming of the ID?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.
I will try this later. I'm happy I can program the 12F1840 now with internal oscilator and MCLR disabled on the EB006 boardThe longer the line then the greater load capacitances will affect the signals.
Have you tried a shorter length as well?
Kind regards
Jan