Posts Tagged ‘decap ic content’
PIC16C54A Hex File: Counting Metal Layers Before the Cells Appear
Every decapsulation conversation eventually arrives at the same question, and it is not about acid. It is about how many layers of metal sit between the outside world and the floating gates. On a PIC16C54A the answer is one, and that single number changes the job from a multi-day delayer into an afternoon of selective etching.

Why the layer count comes first
A modern microcontroller stacks four to eight metal layers over the array, and each one has to come off without touching the layer below, because the array is only visible when nothing reflective is above it. That is the expensive part of the work: not opening the package, which is routine, but removing interconnect uniformly across a die whose topography was never designed to be opened. A part from the early single-metal era has none of that. Remove the passivation and the polysilicon floating gates are already the topographical feature you are looking at.
What this particular die gives you
The process is a coarse one by any later standard, with cell dimensions measured in whole microns and a program array of only 512 words by 12 bits. Large cells mean strong contrast under an optical microscope, and strong contrast means a bit can be classified from a single image rather than from a stack of them. The 18-pin package is also helpful in a mundane way: the die is small, the bond wires are short, and there is plenty of room around the cavity to work.
Where the etch stops, and why
| Layer | What it is | Does it have to go |
|---|---|---|
| Epoxy body | Package | Yes, entirely |
| Passivation | Glass over the die | Yes, over the array |
| Metal 1 | Interconnect | No, there is nothing above it |
| Polysilicon | Floating gates | No, this is the signal |
The third row is the point. On a multi-metal part the interconnect sits above the cells and must be removed; here the interconnect is coplanar with what you want to see, and in most layouts it does not cross the array at all because the array is a regular block that the designer routed around.
Reading 512 words by eye
The array is small enough that a full read is a matter of a few dozen images and a stitching step. Each cell’s threshold state maps to a brightness, the brightness maps to a bit, and twelve bits make a word. The labour is in the bookkeeping, not the imaging, and the check is arithmetic: the reconstructed image should disassemble into instructions that make sense as a program. A block of cells that decodes to a plausible instruction stream is strong evidence the bit classification is right; a block that decodes to nonsense means the polarity or the word boundary is wrong.
What the hex file will not contain
Unlike the eight-pin parts, this one has no factory calibration word in the array. Its oscillator is either an external crystal or an RC network with an external resistor, so there is no per-die trim value to recover and nothing at the top of memory that behaves differently from code. What is missing instead is the configuration word, which on a twelve-bit core is outside the program counter’s reach and is programmed by a separate command. A file that stops at the last program word is complete as code and incomplete as a device description, and the difference shows up when the image is used to build a second unit rather than to read the first.
The one failure that ends the job
Etch past the passivation and the same chemistry starts on the aluminium that the bond wires are welded to. It happens quietly, because the die still looks intact from above while the weld has been undercut, and it is discovered when a probe touchdown lifts a pad and takes the wire with it. There is no recovery from that, which is why an etch on a single-unit job is timed conservatively and inspected between steps rather than run to a schedule taken from a different die.
What the deliverable looks like
A hex file in the ordinary sense, plus a note listing the configuration word, the polarity assumed for the optical classification, and the checksum of the reconstructed image. The note matters more than usual here because the read was made by eye: a reviewer needs to know which words were certain and which were inferred from a single marginal image. Where the die is too degraded for optics, the electrical alternative is the one described in probing the wider 55, and the general constraints are in breaking an IC. Format and verification follow extracting MCU code.