PostHeaderIcon Recover Chip PIC12CE518 Binary: When the Device Is Broken, Not Protected

Two words describe most of this work and they are not interchangeable. Breaking assumes a functioning device that is refusing to disclose its content. Recovery assumes the opposite: a device that has stopped functioning, in a product that still needs to run. The methods overlap, the expectations do not.

The PIC12CE518 is a small OTP part in an eight-pin package: 512 twelve-bit instruction words, twenty-five bytes of RAM, sixteen bytes of data EEPROM that can be reached through two pins, and an internal oscillator. In a working unit the sixteen bytes are often the most valuable part, because they hold the values that make one unit different from the next. In a failed unit they are also the part most likely to be unreadable through the normal route, because the normal route is the processor.

Two failure modes that look the same from outside

Symptom Likely cause Whether content is intact
no response, no clock activity supply or reset fault, die intact usually yes
responds, then resets repeatedly brown-out or watchdog misbehaviour usually yes
runs but all outputs static program corrupted in one region partly
draws excess current, no activity die damage, latch-up, ESD depends on the damaged region
reads blank through the interface protection engaged, or interface fault unknown until tested

The fifth row is the one that produces wrong conclusions. A blank read is the same observation whether the array is protected, whether the interface is not entering programming mode, or whether the part is genuinely empty. Separating those three takes two measurements: the voltage on the reset pin during the entry attempt, and a comparison of two addresses that should differ.

What can be recovered from a device that no longer runs

The honest answer has three levels, and stating which level applies is part of the job.

Content recovery. The array is read by a method that does not depend on the processor executing. This is possible whenever the die is intact, regardless of whether the device works in its application.

Partial recovery. Part of the array reads and part does not, either because of damage or because the protection state differs across regions. What survives is delivered with a map of what did not.

Behavioural reconstruction. The die yields nothing usable. The product’s behaviour is sampled from a working sibling or from the failed unit’s own outputs before the failure, and a functional equivalent is written. This is not recovery of the original, and it should never be described as such.

Most commercial pressure comes from customers who want the first level and would accept the third if it were labelled honestly. The failure of the market is that the third is sometimes sold as the first.

Why sixteen bytes matter out of proportion

On a device with five hundred words of program, sixteen bytes of EEPROM is three percent of the content. In practice it is often the reason for the job.

Those bytes hold the unit’s individual values: a calibration offset, a set of thresholds, a serial number, a usage count, sometimes a key for a simple challenge-response exchange. The program is generic across the product line; the EEPROM makes the unit.

Two consequences follow for the recovery plan. The EEPROM is reachable through two pins on this family, which means an external reader can sometimes extract it without the processor running — a route worth trying before decapsulation. And the EEPROM is written far more often than the program, so on a device that failed in service it is the block most likely to have been mid-write when the supply collapsed.

The external route to the sixteen bytes

Because the EEPROM on this family is accessible over a two-wire interface, a failed processor does not necessarily mean a failed EEPROM. If the die’s interface logic is intact, an external master can address the array directly.

Three conditions have to be met. The device must be powered within its operating range from an external supply, with the rest of the board isolated so that the product’s own circuits do not contend for the two pins. The interface must be spoken at a clock rate the device accepts — slow is safe. And the address space must be read in full, including bytes that read as blank, because on this part a blank byte is a legitimate value and not an error.

When this route works, the result is sixteen bytes and a strong indication that the die is alive, which changes the plan for the program array.

Reading the program array from a device that cannot execute

If the processor is not running, the reading method cannot rely on it. The approaches are the ones that apply to any OTP device: enter programming mode through the interface with the correct voltage sequence, and if that fails, access the array physically.

On an eight-pin package the physical path is short and the risk is concentrated in the removal. Once the die is exposed, the array is small enough that a single imaging pass usually covers it, and the transcription is checkable against the structure of the code.

The output is the same as from a working device. What differs is the confidence: a physical read has no second pass, so the transcription has to be verified internally — reset vector decodes, table structures are coherent, and the ratio of code to blank matches the design.

What the delivery says about confidence

A recovery report for a failed device should state, for each block, how it was obtained.

Block Method Confidence statement
program array interface read or physical read complete, or complete except listed ranges
data EEPROM external interface or physical read sixteen bytes, with any mid-write bytes flagged
configuration decoded from the array states protection and oscillator
behaviour inferred from code equivalent, not original

The fourth row is where a report can mislead without lying. Describing inferred behaviour as recovered behaviour is a claim the evidence does not support, and it becomes a dispute the moment the customer compares against a working unit.

Where a related eight-pin part is discussed from the interface-constraint angle, PIC12C509A binary covers the pin budget. Where the same sixteen bytes are the subject from the design side rather than the failure side, PIC12CE518 binary breaking takes that view. And where a part in the same family differs only in memory size but not in method, PIC12CE519 flash is the direct comparison.

The short version

A broken device and a protected device are different problems with different promises. Try the external route to the sixteen bytes first, separate blank from unreadable before drawing conclusions, and label reconstructed behaviour as reconstructed. The sixteen bytes are usually the point of the exercise.

Comments are closed.