Posts Tagged ‘retrieve secured ic eeprom’
PIC16LF57 Program: When Two Volts Decides the Bench
The low-voltage letter in a part number reads as a convenience until the day a read has to be performed. A PIC16LF57 runs from two volts, its product is usually battery powered, and entering programming mode requires a supply well above the one the product was designed to produce. The board cannot be talked into giving what it does not have.

The supply is a design constraint, not a detail
A battery product has a rail that starts near three volts and falls as the cell discharges, plus a boost or a regulator sized for the current the circuit actually draws. The programming voltage is not in that budget, and there is no room in the enclosure for a connector that could deliver it. So the question “can this be read in circuit” is answered by the power architecture before it is answered by the firmware.
Why twelve volts changes the whole plan
Entering programming mode needs a pin driven above the normal operating range, which on a two-volt design is several times the rail. Generating that in place requires access to the pin, a ground return, and the ability to hold the rest of the circuit in a state where it does not contend. On a board with a programming header and a documented entry sequence that is routine. On a potted assembly with the part on the far side of a flex it is not.
In circuit or off board
| Situation | Feasible in circuit | Reason |
|---|---|---|
| Header present, pins isolated | Yes | Nothing contends |
| Header present, pins loaded | Sometimes | Bus fights the programmer |
| No header, part accessible | Usually not | No way to deliver the voltage |
| Potted or conformally coated | No | Access itself is the project |
The second row is the one that produces false confidence. A header exists, so the assumption is that a session will work, and then the programmer’s clock is loaded by an I/O line that the firmware drives, producing a read that half succeeds. That mechanism is set out in PIC12F509 EEPROM and applies to any part whose programming pins are shared.
What changes once the part is off
Removing the device costs a soldering operation and returns full control of the supply, the clock and the pin states. It also removes the possibility of damaging the product, which on a single-unit repair matters more than the labour. The cost is that the board may not survive, so the removal is done with hot air and the pads are photographed before and after. For a customer with one unit this is the conversation that has to happen before any work starts.
Reading a part that still works
If the product still functions, the image is not needed to make it work; it is needed to make a second one. That changes what has to be preserved. A device that runs gives you something better than a file: it gives you the behaviour to check the file against, and it gives you the option of capturing the external memory while the firmware is still driving it. Read the part, then make the unit prove the read by running its own self-test, and do it before anything is desoldered.
What belongs in the report
The image, the configuration word, and a statement of the supply and clock conditions under which the read was taken. On a low-voltage part those conditions are not boilerplate: they are the difference between a read that is representative and one that was taken outside the range the part was screened for. Add the entry method, because the next engineer will need to repeat the session, and a part that has to be removed from a board is a part that will be removed again.
The customer conversation
Say the number out loud: this part cannot be read on the board, so the board will be disturbed. Customers accept that when it is stated early and resent it when it is discovered later. The alternative for a design that must stay intact is to build the read into the next revision, with test points and a documented entry sequence, which is advice worth giving even when it does not produce a job today.
Where the limits sit
A low-voltage part is also a part whose cells were screened at the bottom of the range, so a marginal read is more likely than on the plain-voltage sibling covered in PIC16LF54 protection. The file side of the job, including the out-of-range configuration word, is in PIC16F57 hex data. Where the part cannot be removed and cannot be entered, the remaining options are the die-level ones described in breaking an IC.