• AVR Freaks

AnsweredHot!PICkit4 problem to program PICs of type PIC16xxx

Author
schaueragrotronic
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2020/04/01 00:53:14
  • Location: 0
  • Status: offline
2020/04/01 23:13:28 (permalink)
0

PICkit4 problem to program PICs of type PIC16xxx

With my PICkit4 it is impossible to program PICs of the type PIC16xxx.
MPLAB X IPE will alway report "invalid device id".
But PICs of type PIC18F6620 and PIC32MX795F512L could be programmed, well.
 
Is there a general problem in PICkit4, to identify PIC16xxx correctly?
#1
du00000001
Just Some Member
  • Total Posts : 3665
  • Reward points : 0
  • Joined: 2016/05/03 13:52:42
  • Location: Germany
  • Status: offline
Re: PICkit4 problem to program PICs of type PIC16xxx 2020/04/02 08:01:01 (permalink)
+1 (1)
Which PIC16xxx exactly?

PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
#2
NKurzman
A Guy on the Net
  • Total Posts : 18655
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: PICkit4 problem to program PICs of type PIC16xxx 2020/04/02 08:34:57 (permalink)
0
What Version of MPLabX?
#3
NorthGuy
Super Member
  • Total Posts : 6072
  • Reward points : 0
  • Joined: 2014/02/23 14:23:23
  • Location: Northern Canada
  • Status: online
Re: PICkit4 problem to program PICs of type PIC16xxx 2020/04/02 08:37:58 (permalink)
0
There were problems with HVP (High Voltage Progranmming) where PICkit4 could damage older PIC16 with overvoltage. Microchip recommend 100 Ohm series resistors on MCLR, but this, of course, will not help if the chip is already damaged.
#4
schaueragrotronic
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2020/04/01 00:53:14
  • Location: 0
  • Status: offline
Re: PICkit4 problem to program PICs of type PIC16xxx 2020/04/02 08:43:28 (permalink)
0
PIC type is 16F874
#5
schaueragrotronic
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2020/04/01 00:53:14
  • Location: 0
  • Status: offline
Re: PICkit4 problem to program PICs of type PIC16xxx 2020/04/02 08:45:10 (permalink)
0
I tried it with MPLAB X 5.30 and 5.35.
It always reports "invalid device id", when trying to connect to PIC 16F874.
#6
DevMod1
Administrator
  • Total Posts : 504
  • Reward points : 0
  • Joined: 2009/02/10 09:34:30
  • Location: 0
  • Status: offline
Re: PICkit4 problem to program PICs of type PIC16xxx 2020/04/02 10:13:27 (permalink) ☼ Best Answerby schaueragrotronic 2020/04/06 23:19:01
+2 (2)
please use a 100 ohm resistor in series with MCLR line.  The PICkit 4 is very fast and sometimes will have overshoot on MCLR this affects mainly the older PICs

_____________________________

Please read the forum posting guidelines. Do not double post, please help keep these forums professional and comments respectful.
Please notify the moderators of problems/spam/trolls.
#7
du00000001
Just Some Member
  • Total Posts : 3665
  • Reward points : 0
  • Joined: 2016/05/03 13:52:42
  • Location: Germany
  • Status: offline
Re: PICkit4 problem to program PICs of type PIC16xxx 2020/04/02 11:09:05 (permalink)
0
BTW: which device id does it report? 0000?
Does this exact board work with some older debugger?

PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
#8
ric
Super Member
  • Total Posts : 26942
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: online
Re: PICkit4 problem to program PICs of type PIC16xxx 2020/04/02 12:27:11 (permalink)
0
Also, the PIC16F87x chips need to have the RB3/PGM pin held low while programming.
If that pin is floating, sometimes it will work and sometimes it will fail.
Use a resistor from 1k to 100k to connect RB3 to ground.
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#9
schaueragrotronic
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2020/04/01 00:53:14
  • Location: 0
  • Status: offline
Re: PICkit4 problem to program PICs of type PIC16xxx 2020/04/06 23:20:12 (permalink)
0
Hi.
Thanks, the 100 Ohm resistor has helped to identify the PIC16F874.
Can I Keep that resistor in the MCLR line, also for all the other PICs?
#10
NKurzman
A Guy on the Net
  • Total Posts : 18655
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: PICkit4 problem to program PICs of type PIC16xxx 2020/04/06 23:24:05 (permalink)
0
Yes, it should be fine. And may be a good idea in general.
#11
Jump to:
© 2020 APG vNext Commercial Version 4.5