I have never used C parts so I might wrong, however, I always thought that you cannot read the program out as that is for OTP / production, not for development. Can you confirm, that the data you read out is valid? Tamas On Fri, Jun 11, 2010 at 12:10 AM, RANDY ABERNATHY < randyabernathy@bellsouth.net> wrote: > I didn't exactly do what you are suggesting so I will try that. I did > compare the code in the newly burned PIC to the code I copied from the > original PIC and it did appear to match. Of course I could have missed > something. > > Randy Abernathy > CNC and Industrial Machinery > service, repair, installation and > design > > 4626 Old Stilesboro Rd NW > Acworth, GA 30101 > Fax: 770-974-5295 > Phone: 678-982-0235 > E-mail: > randyabernathy@bellsouth.net > > --- On Thu, 6/10/10, Isaac Marino Bavaresco > wrote: > > > From: Isaac Marino Bavaresco > Subject: Re: [PIC]Copy from unprotected PIC then programming another PIC > To: "Microcontroller discussion list - Public." > Date: Thursday, June 10, 2010, 6:29 PM > > > Em 10/6/2010 19:11, RANDY ABERNATHY escreveu: > > I copied the HEX code directly from the PIC16C72A. Then I tried just > burning it into another PIC16F72A and when I put the chip back into the > circuit, nothing worked. I also tried burning it into a PIC16F72 and that > didn't work either. > > > > Did you save the file in the HEX file format? It is not just a binary > image, it is a formated text file with hexadecimal number in it, with a > definite structure. > > Did you read back the PIC that you just programmed? Did the file compare > with the original? > > Try opening the original hex file in MPLAB and check in the program > memory window to see if the instructions make sense. > > > Best regards, > > Isaac > > > > I am using a Microengineering Labs USB programmer and I also have their > EPIC parallel programmer. This is what I used to copy the code to memory > and also to burn the code into the new PIC. I have tried both with the s= ame > results. > > > > I hope this helps shed some additional light on the matter. > > > > Thanks again, > > > > Randy Abernathy > > CNC and Industrial Machinery > > service, repair, installation and > > design > > > > 4626 Old Stilesboro Rd NW > > Acworth, GA 30101 > > Fax: 770-974-5295 > > Phone: 678-982-0235 > > E-mail: > > randyabernathy@bellsouth.net > > > > --- On Thu, 6/10/10, Jan-Erik Soderholm > wrote: > > > > > > From: Jan-Erik Soderholm > > Subject: Re: [PIC]Copy from unprotected PIC then programming another PIC > > To: "Microcontroller discussion list - Public." > > Date: Thursday, June 10, 2010, 5:57 PM > > > > > > > > > > On 2010-06-10 23:40, RANDY ABERNATHY wrote: > > > >> Hello: > >> > >> I am fairly new to the PIC family and have some PICs with code in them, > >> the code isn't protected, at least not according to my Melabs programm= er > >> and the person from whom I received the PIC. I want to copy the code > >> and then burn it into another PIC, possibly a different PIC. This is a > >> newbie question for sure. > >> > >> The one with the exisiting code is a PIC16C72A and I would like to be > >> able to burn another PIC16C72A > >> > > That would probably be OK. > > > > > >> and also a Flash version of a PIC. > >> > > Not "a PIC" as in "any PIC" > > You probably want to use the PIC16F72. > > > > > >> I have tried just copying and saving the code... > >> > > "Saving" how ? Using what tool ? > > And what did you get efter the "save" ? > > > > > >> then burning it into another PIC > >> of the same type but nothing works. > >> > > Burning *how* ? > > And what doesn't "work" ?? > > > > > >> I know that an "include" file needs to be sent... > >> > > Howe do you know that ? And what "include file" ? > > What you need is the HEX file saved from the old PIC > > containing the code. Nothing else. > > > > > >> with the functional code and am wondering if that is my > >> problem, even trying to burn the code into a PIC of the same type as t= he > >> one from which the code was copied. > >> > >> Your help will be greatly appreciated > >> > >> Randy Abernathy CNC and Industrial Machinery service, repair, > >> installation and design > >> > >> 4626 Old Stilesboro Rd NW Acworth, GA 30101 Fax: 770-974-5295 Phone: > >> 678-982-0235 E-mail: randyabernathy@bellsouth.net > >> > > __________________________________________________ > Fale com seus amigos de gra=E7a com o novo Yahoo! Messenger > http://br.messenger.yahoo.com/ > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- = int main() { char *a,*s,*q; printf(s=3D"int main() { char *a,*s,*q; printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist