Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC16F685 Reverse Engineering

Status
Not open for further replies.

corvese210

New Member
Hello,

I am new fairly new to PIC processors. I have a circuit board that I am trying to reverse engineer its functionality and it has a PIC16F685 on board.

What tools do I need, and how do I read the code running on this PIC processor, so I can find out what functions it is performing?

Thanks for your help,

J
 
You take the PIC out and read it with a PIC programmer - assuming it's not code protected, in which case you can't.

I would expect any commercial product to be code protected.
 
Thanks for the response. Is there a way to do it in circuit without a PIC programmer? The 16F685 has two pins designated ICSP (In Circuit Serial Programming) and on the board I am trying to reverse engineer, these two pins are going out to some through holes I could solder leads onto.
 
The header on the board has 6 terminals. 1 is no connection. 1 is ICSPDATA, 1 is ICSPCLK, 1 is Vdd, 1 is Vss, and the last is MCLR'/Vpp.

Do you still need a PIC programmer to read fro mthe ICSP or can i just use the serial port on my computer?
 
It sounds like it is laid out to be programmed by a PICkit2 or PICkit3. You can see the connections at https://ww1.microchip.com/downloads/en/devicedoc/51553e.pdf on page 9. That has the connections in a different order, but I don't know if the board that you are looking at has them in a line.

You cannot read the data with a serial port. You can buy a programmer from microchip for not much money. The PICkit2 is £32+vat from Farnell, while the PICkit3 is £45+vat. The PICkit3 will work with a wider range of devices, but the PICkit2 has a really useful terminal emulator and a logic analyser. The PICkit2 will work with the PIC16F685. There are of course copies that are cheaper.

It is also possible to use very simple programmers that are little more than level converters, where a lot more of the work is done by the PC.

Whatever programmer you use, if it is code protected, you can't read it.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top