• AVR Freaks

Helpful ReplyHot!Working and Replacing with PIC17

Author
JKTextile
New Member
  • Total Posts : 6
  • Reward points : 0
  • Joined: 2017/10/03 12:45:59
  • Location: 0
  • Status: offline
2017/10/13 05:43:14 (permalink)
0

Working and Replacing with PIC17

We have a model of machine using a PIC17C766-16/L. Recently the chips have been going corrupt and replacements from the machine manufacturer are not available.  We have been informed that the program is not protected. What hardware is required to read this chip so that I can send the program to MicrochipDirect and have them program 30-50 replacements to keep us covered for the next 10-15years, or replace it with something comparable.
#1
qhb
Superb Member
  • Total Posts : 9998
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: Working and Replacing with PIC17 2017/10/13 13:42:23 (permalink)
+1 (1)
Only three programmers supported that ancient chip.
  • PICSTART PLUS
  • PRO MATE II
  • PM3
Only the PM3 can still be bought new, and they are pretty expensive (around US$900)
http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=DV007004
 
You may be able to pick up a used PICSTART PLUS on eBay.
The Microchip web page for the PIC17C766 recommends a PIC18F8520 as a suitable replacement, but you would have to rewrite the software to run in that chip, you couldn't drop a hex image read from a PIC17C766 into the PIC18 chip.
 
 
 
 
#2
RISC
Super Member
  • Total Posts : 5376
  • Reward points : 0
  • Status: offline
Re: Working and Replacing with PIC17 2017/10/13 14:03:21 (permalink)
+1 (1)
Hi,
PIC17 have a special core which is more powerful than PIC18.
Still PIC18 is the closest core but this would mean a complete redesign and code rewrite assuming that you have the source code...
Regards
 
 
#3
JorgeF
Super Member
  • Total Posts : 3340
  • Reward points : 0
  • Joined: 2011/07/09 11:56:58
  • Location: PT/EU @ Third rock from the Sun
  • Status: offline
Re: Working and Replacing with PIC17 2017/10/13 15:02:43 (permalink)
+3 (3)
Hi
 
You might consider contacting Microchip or a local FAE to check if they can do the reading of a sample chip instead of you having to buy some used old reader or trying a compatible one for a single usage.
 
Best regards
Jorge
 
#4
dan1138
Super Member
  • Total Posts : 3166
  • Reward points : 0
  • Joined: 2007/02/21 23:04:16
  • Location: 0
  • Status: offline
Re: Working and Replacing with PIC17 2017/10/14 20:08:36 (permalink)
+2 (2)
JKTextile
We have a model of machine using a PIC17C766-16/L. Recently the chips have been going corrupt and replacements from the machine manufacturer are not available.  We have been informed that the program is not protected. What hardware is required to read this chip so that I can send the program to MicrochipDirect and have them program 30-50 replacements to keep us covered for the next 10-15years, or replace it with something comparable.

The minimum cost specific hardware required to read a PIC17C766-16/L is:
PICSTART PLUS with the AC164027 programming adapter.
Both of these are current available on ebay.
 
The next in cost would be:
Microchip PRO MATE II with the AC174012 programming adapter.
The PRO MATE II seems readily available on ebay but the AC174012 appears unfindable.
 
The most costly is:
Microchip PM3 with the AC164318 programming adapter.
The PM3 and AC164318 are still a current products but the AC164318 seems to have a long lead time.
 
The software you must use to read the part with a PICSTART PLUS is MPLAB v8.92. MPLABX cannot do this.
 
I believe that the PRO MATE II and PM3 can read devices using the operator buttons but they also can work with MPLAB.
 
If all you need are copies then Microchip should be able to read the parts for you.
post edited by dan1138 - 2017/10/15 11:36:25
#5
PStechPaul
Super Member
  • Total Posts : 2353
  • Reward points : 0
  • Joined: 2006/06/27 16:11:32
  • Location: Cockeysville, MD, USA
  • Status: online
Re: Working and Replacing with PIC17 2017/10/14 22:26:53 (permalink)
+1 (1)
The PIC18F242 datasheet says it is source code compatible with PIC17 (and PIC16) source code. Since the PIC17 has a 16 bit instruction word, like the PIC18, it might be possible to use a PIC18 disassembler on the hex or binary program memory to recreate the source code. You might need to look closely at the peripherals and choose an 18F part that closely matches the PIC17C.
 
Some disassemblers:
 
http://www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/Pic18-Disassembler.shtml
 
http://www.joescat.com/micro/picchip.htm
 
https://en.freedownloadmanager.org/Windows-PC/PIC18-Disassembler.html
 
http://www.eolis-software.co.uk/picdisassembler16.shtml
 
http://www.piclist.com/techref/microchip/dissassemblers.htm
 
http://www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/PIC-Disassembler.shtml
 
https://www.softpaz.com/software/download-pic18-disassembler-windows-22357.htm
 
I haven't tried any of them, so use at your own risk.

 
#6
jtemples
عُضْوٌ جَدِيد
  • Total Posts : 11251
  • Reward points : 0
  • Joined: 2004/02/13 12:31:19
  • Location: Southern California
  • Status: offline
Re: Working and Replacing with PIC17 2017/10/15 01:25:15 (permalink)
+1 (1)
it might be possible to use a PIC18 disassembler on the hex or binary program memory to recreate the source code

 
They're not trying to recreate the source code, they're trying to get the hex file off of the chip so they can program it on other chips.
 
#7
1and0
Access is Denied
  • Total Posts : 9525
  • Reward points : 0
  • Joined: 2007/05/06 12:03:20
  • Location: Harry's Gray Matter
  • Status: offline
Re: Working and Replacing with PIC17 2017/10/15 01:28:25 (permalink)
+1 (1)
PStechPaul
The PIC18F242 datasheet says it is source code compatible with PIC17 (and PIC16) source code. Since the PIC17 has a 16 bit instruction word, like the PIC18, it might be possible to use a PIC18 disassembler on the hex or binary program memory to recreate the source code. You might need to look closely at the peripherals and choose an 18F part that closely matches the PIC17C.

I don't think so. I believe the datasheet refer to C source code. If you have a disassembler that can recreate workable C source code from a hex file, let me know. ;)
 
Anyway, as Jtemples said, they just want to make more copies of the chip.
#8
DarioG
Allmächtig.
  • Total Posts : 54081
  • Reward points : 0
  • Joined: 2006/02/25 08:58:22
  • Location: Oesterreich
  • Status: offline
Re: Working and Replacing with PIC17 2017/10/15 02:12:10 (permalink)
0
Yep Smile (i really want to take a look at PIC17 assembler code now!)

GENOVA :D :D ! GODO
#9
jtemples
عُضْوٌ جَدِيد
  • Total Posts : 11251
  • Reward points : 0
  • Joined: 2004/02/13 12:31:19
  • Location: Southern California
  • Status: offline
Re: Working and Replacing with PIC17 2017/10/15 10:53:49 (permalink)
+2 (2)
The instruction set is almost the same, but the architecture of the chip is completely different; the PIC17 is more like a PIC16 as far as memory layout.
#10
JKTextile
New Member
  • Total Posts : 6
  • Reward points : 0
  • Joined: 2017/10/03 12:45:59
  • Location: 0
  • Status: offline
Re: Working and Replacing with PIC17 2017/10/31 06:55:19 (permalink) ☄ Helpfulby Andrew_Martin 2019/02/24 08:33:38
+4 (4)
Just an update.  
With meLabs U2 Programmer and their 1784 PLCC Adapter along with meProgrammer I have successfully read and reprogrammed a PIC17C766-16I/L and verified it functions on the machine.
 
So I ordered 15 chips from Microchip Direct and we should be set for the life span of the 15-20 machines we have on our floor.
#11
Andrew_Martin
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2019/02/22 04:36:08
  • Location: 0
  • Status: offline
Re: Working and Replacing with PIC17 2019/02/24 09:17:50 (permalink)
0
I need to read and program the microcontroller PIC17C756A and I have a EPIC programmer from melabs.
There is no MCU clock source and TEST line in this programmer. Perhaps these signals are generated inside the adapter.


From README.TXT:
"17C752, 17C756(A): Supported using 1768 PLCC Adapter"

But to buy this adapter is now impossible.
Can you send the circuit diagram for your 1784 PLCC adapter?
Need to know how the TEST signal and MCU clock is generated.
#12
Jump to:
© 2019 APG vNext Commercial Version 4.5