Maker Pro
Maker Pro

Upload code from pic

shlomo1234

Jun 20, 2016
10
Joined
Jun 20, 2016
Messages
10
Hello,
For my hobby Im doing some programing in Picmicro, mostly Pic16F87XA, Pic18FXX2.
To do so Im using mplab and Pickit3.

I have an old controll board of airconditioner with mcu Pic16F72.
My question is,
Is it Possible To read the code? and how to do so (upload the code to Mplab)?

Thanks alot
 
Last edited:

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
The microcontroller may have the security set so that you can't read from it, and even if you can, you'll get hex code, not readable source.
 

shlomo1234

Jun 20, 2016
10
Joined
Jun 20, 2016
Messages
10
Thanks.
So in that case, can I Program other Pic mcu with that hex file? download the file to make a copy one?
 

BobK

Jan 5, 2010
7,682
Joined
Jan 5, 2010
Messages
7,682
MPLAB will dissassemble the code if you can read it. Still not easy to follow, but at least you get instruction mnemonics instead of just hex code.

If you can read it, you will be able to program another PIC with the code. But, unless is the exact same part number, it may not work correctly.

Bob
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
MPLAB will dissassemble the code if you can read it. Still not easy to follow, but at least you get instruction mnemonics instead of just hex code.

I guess that with Harvard architecture, this becomes somewhat easier.
 

hevans1944

Hop - AC8NS
Jun 21, 2012
4,878
Joined
Jun 21, 2012
Messages
4,878
Thanks.
So in that case, can I Program other Pic mcu with that hex file? download the file to make a copy one?
IF the security bit IS NOT SET, you can download the code from the PIC using your PICkit 3. That's a crap shoot for a commercial product. Why wouldn't the manufacturer lock their code? I would if it were mine.
 

Amar Dhore

Dec 2, 2015
129
Joined
Dec 2, 2015
Messages
129
Yes, you can read it with PICKit 3 if its not protected. Give it a try. Go to the Mplab, create a test project (any random name project). Select a PIC that you want to read from. Instead of compile, click on a read option. It will ask you to save the file as hex. You can use it to program other devices as Bobk mentioned.
 
Top