Posts Tagged ‘reverse mcu security bits’

PostHeaderIcon PIC12LC508: LC Is a Voltage Bin, Not a Second Design

Letters after a part number are usually read as features, and the middle letter of PIC12LC508 is not one. It marks a bin: the same die, screened at final test to a wider supply range, with the low end of that range guaranteed rather than merely tolerated. Knowing this changes two things at once, the way the part is read and the confidence that can be placed in what comes out.

Reverse Chip PIC12LC508 Heximal File is a process to replicate cpu pic12lf508 program from memory, and then extract the code from pic12lf508 locked flash memory.

What the letters are doing

The C in the family name indicates the erasable process, and the L indicates the low-voltage screen. A part that passes at two volts is a part whose cells switch with less margin than one that only has to work at five, and the test house knows it: the screen is what separates the two, and the same wafer supplies both. There is no second mask set, no separate array layout, and no difference in word count or instruction set. Anyone treating the LC as a distinct design will over-plan the read.

Same layout, and therefore the same route

Because the die is shared, every route proven on the ordinary part transfers unchanged. The array is 512 by 12, the protection bit sits in the same configuration word, a protected read returns zero across the range, and the factory trim lives in the last word. What transfers is the plan; what does not transfer is the yield. The same etch, the same probe, the same lighting, and a different number of usable reads, because the cells start closer to the decision boundary.

Why a looser part reads differently

A cell is read by comparing its current against a reference. The screen guarantees that the comparison resolves correctly at the low end of the supply range, which means the part is characterised at a point where the difference between a programmed and an erased cell is smaller. That is good in the field and awkward afterwards: the margin a reader works with is the margin the part was screened to.

Retention is where the bin shows

Property Effect of the low-voltage screen Consequence for a read
Cell margin Narrower by design More marginal bits at any age
Supply floor Two volts guaranteed Reads at five volts may differ
Ageing Faster charge loss Repeat reads disagree
Word count Unchanged Plan transfers intact

The third row is the one that costs time. A part stored for twenty years in a warehouse will have lost charge, and a low-voltage bin will show it first. Two reads taken minutes apart can differ in a handful of words, and the honest response is not to pick the reading that looks more like a program but to read a third time and take the majority per bit.

Reading it properly

Supply the part at the voltage the screen specifies, not at the voltage that is convenient. Read at least twice, ideally at both ends of the permitted range, and compare word by word. Words that agree are settled; words that disagree go to a majority vote over more passes, and any word that still disagrees is flagged in the deliverable rather than silently resolved. Then check the result the way any image is checked: it has to disassemble into a program that makes sense, and its length has to match the array exactly.

When the trim value is the real problem

The last word of the array holds the factory trim for the internal oscillator, and on a low-voltage bin that number matters more than on the ordinary part because the spread it has to cover is wider. A recovered image without it will run, and it will run at a frequency that is legal but wrong, which on a design that bit-bangs a serial protocol is a functional failure that looks like a firmware bug. Treat the last word as part of the image, and if it is missing, say so in the deliverable rather than leaving the omission for the customer to discover.

What to tell a customer who asks for the LC version

That it is the same chip, tested at a lower supply, and that this makes the read slightly less certain rather than slightly harder. The plan is unchanged, the price is unchanged, and the caveat is that a marginal word may have to be reported as uncertain. Customers accept that framing because they chose the low-voltage part for a battery.

Where this connects

The plain-voltage sibling is covered in PIC12C508 code, and the trim word it depends on matters more here because a low-voltage bin has a wider spread to begin with. The clocking question that produces shifted reads is in PIC12F508 firmware, and the way a marginal image is turned into a verified file is the subject of extracting MCU code.