Read Chip PIC16C770 Eeprom: Reading, Breaking and Rebuilding Are Three Jobs
The request line says “read”. Two messages later it may say “break”, and by the time the unit arrives the requirement is often a third thing again: a design that can be maintained. These are not degrees of the same effort. They are three different jobs that happen to involve the same twenty-pin device, and conflating them produces quotes that are wrong in both directions.
The PIC16C770 is a twenty-pin OTP part with a two-kilobyte-word program array, a small data EEPROM, and the higher-resolution converter that distinguishes this branch of the family from the general-purpose parts around it. The converter is why the device appears in weighing equipment, pressure transmitters and thermocouple front ends — applications where the analogue path matters more than the instruction count.
Three jobs, defined by their starting condition
| Job | Starting condition | Work | Typical deliverable |
|---|---|---|---|
| read | protection not engaged | programming interface read | image, config word, data area |
| break | protection engaged, device intact | physical access to the array | same content, by a different route |
| rebuild | image available, product undocumented | analysis and annotation | structure, constants, behaviour note |
The distinction is not about difficulty. A read on an unprotected part is fifteen minutes of fixture work. A break on a protected part of the same model is a different engagement with a different risk profile, even though the output file looks identical. And a rebuild does not involve the device at all beyond the initial read — it is an analysis task whose input happens to be a hex file.
Why the customer’s words do not settle it
Three patterns account for most of the mislabelling.
A customer who owns the design says “break” because that is the vocabulary of the market, when what they need is a read of their own unprotected part. Charging for a break and delivering a read is a commercial error in the customer’s favour; the reverse is worse.
A customer who has lost the source says “read” when the part is protected, and the first read attempt comes back as a pattern. That pattern is the answer to a question they did not ask, and the conversation that follows is about the difference between “the device has no protection” and “the device has protection and it worked”.
A customer with a working unit and no documentation says “read” when the need is a rebuild: they want to change a threshold, and a hex file does not let them.
The clarifying question that resolves all three is short: do you need the bytes, the bytes that are currently blocked, or an understanding of the design.
The read, on a part that is not protected
The device enters programming mode through the standard in-circuit interface, and both arrays are accessible. The program array comes back as words, and the data EEPROM as bytes in its own address space.
Two details matter on this family. The configuration word at the top of the map should be read and decoded rather than treated as trailing data, because on an OTP part it is also the record of what protection state the device was shipped in — information the customer may need years later. And the analogue channel configuration written at initialisation is worth noting, because it is the cheapest cross-check that the image belongs to the product described.
The break, on a part that is protected
Once protection is engaged on this technology, the array does not respond with content. A read returns a uniform pattern, which is a deliberate behaviour rather than a failure of the interface. Recognising that pattern for what it is — the protection working — is the difference between a correct diagnosis and a report claiming the device is empty.
From there the work moves to the die. The package is opened, the array is accessed physically, and the content is reconstructed. The constraints are the ones that apply to any irreversible medium: no retries, the unit is consumed, and the assessment has to be right before the first irreversible step.
The rebuild, which is where the value usually is
A recovered image of a two-kilobyte-word part is small enough to annotate thoroughly, and on an analogue-facing device the annotation is the product.
Three artefacts make the difference. A memory map that names every RAM location by the role it plays. A constant table listing the scale factors, offsets and thresholds with their inferred physical meaning. And a short behaviour note describing the main loop, the sampling rate and the alarm logic, in the language of the application rather than the language of the instruction set.
The third artefact is what allows the customer’s engineer to change a trip point without re-deriving the whole design, and it is routinely omitted from deliveries that focus on the hex file.
What each job cannot deliver
| Expectation | Available from a read | from a break | from a rebuild |
|---|---|---|---|
| exact bytes of both arrays | yes | yes | n/a |
| original source code | no | no | no |
| equivalent maintainable structure | partly | partly | yes, as equivalent |
| commercial part numbers of sensors | no | no | sometimes, with caution |
| a device that behaves identically | yes, if config included | yes | only after rebuilding |
The second row is the one that has to be stated plainly and early. Recovery produces bytes and structure; the original source, with its names and comments, exists only on a drive somewhere that is not the microcontroller.
Protection state is the first measurement
Before any of the three jobs can be quoted, one read of the configuration word settles the question, because it is readable on most units even when the array is not. That single measurement decides whether the engagement is a read, a break, or a rebuild that starts from an already-recovered file.
Where a sibling in the same family has more memory and the same converter, PIC16C771 firmware covers the protection mechanism in detail. Where the constants rather than the job type are the subject, PIC16C717 program reads the numbers. And where the part is an eight-pin device whose entire content is under a kilobyte, PIC12F508 code recovery shows how much of the work is physical.
The short version
Read, break and rebuild are three services. Ask which one is needed before quoting, measure the protection state before committing, and deliver the analysis artefacts rather than only the file, because on a part like this the understanding is the product.