Posts Tagged ‘extract protected chip eeprom’
PIC16C57A Program: Two Generations of Programming Algorithm
Two parts with the same pinout, the same 2048-word array and the same part number stem can require different programmers, different entry voltages and different command sequences. The trailing revision letter is not cosmetic, and on a bench where both generations turn up in the same week it is the single most common reason a job stalls before it starts.

What a revision letter actually changes
A revision marks a die change, and a die change on an erasable part usually means a new programming algorithm, because the algorithm is a property of the cells and the charge pump rather than of the instruction set. The array size and the pin functions stay put, which is why the parts look interchangeable in a drawer. The programming interface underneath does not, and the difference shows up as an ID that does not match, a part that refuses to enter programming mode, or a verify that fails on every word.
What the entry voltage buys
Getting into programming mode requires a high voltage on the designated pin, applied in a defined order relative to the supply. The older generation wants that voltage to arrive before the supply is fully up; the newer one tolerates a different order and a different level. Apply the wrong combination and the part does not report an error, it simply does not enter the mode, and a programmer that does not know the difference reports a blank or absent device. That is a false negative which has caused more than one part to be written off as dead.
Telling the generations apart
| Clue | Where to look | Reliability |
|---|---|---|
| Device ID | Read command, if the part answers | Highest, when it answers |
| Date code | Package marking | Good for era, not for revision |
| Die mark | After opening | Certain, expensive |
| Programming behaviour | Entry attempt | Fast, ambiguous |
The fourth row is what most benches use, and it is the one that produces arguments. A part that fails to enter programming mode under the newer algorithm may be an older part, or a damaged newer one. Only the first two rows settle it, which is why a device ID read is worth attempting before anything destructive is considered.
Where the two get confused in practice
The confusion is not usually about the array; it is about the socket, and an operator who has one socket and a deadline will conclude the part is locked or faulty. The same mistake appears in reverse when an old algorithm is applied to a newer part and the programming appears to succeed while the verify fails.
What the extraction itself involves
Once the part is in programming mode under the correct algorithm, the read is the ordinary one: the array is presented word by word, and on a protected part it comes back as zeros. The interesting work is therefore upstream of the read, in establishing which generation is on the bench and which route is legal for it. When the part will not enter programming mode at all, the fallback is the physical route, and the constraints of that are set out in breaking an IC.
When the programmer’s limit becomes the project’s limit
Bench programmers are sold by the parts they support, and support for a discontinued revision usually arrives as a profile that someone else wrote. A profile that is wrong about the entry sequence produces exactly the failure described above, and the operator has no way to tell it apart from a dead part. The remedy is unglamorous: check the profile against the data sheet for the specific revision, and keep a known-good part of each generation as a reference. A single known-good unit of the older generation is worth more than any amount of documentation when a job arrives on a Friday.
What this does to cost and schedule
Extraction itself is unchanged in price by the generation question, because the array is the same size and the route is the same. What changes is the front end: identifying the part, finding or writing the correct profile, and proving the bench can talk to it before the customer’s unit is touched. That front end is where a negotiated schedule is won or lost, and it is worth quoting explicitly rather than burying in a fixed fee.
The same array in other packages
The C revision is covered in PIC16C57C firmware, and the 18-pin version of the identical array is in PIC16C58B data. Because the array is shared, a route proven on one package transfers to the others once the algorithm question is settled, which is the useful part of this family for planning purposes. Once the image exists, cloning a PIC16C54 shows what the manufacturing half of the job looks like on a one-time part.