Category: Read Locked MCU Data

  • PIC16C642: Four Thousand Words And No Converter

    PIC16C642: Four Thousand Words And No Converter

    The PIC16C642 is the member of the 16C6x line that carries four thousand words and thirty-three I/O without an analogue converter. That is not an omission, it is a price point: the 662 has the converter, the 642 does not, and the difference decides which designs used which. Reading one is a digital exercise from beginning to end.

    Reading Microprocessor PIC16C642 Binary
    Reading Microprocessor PIC16C642 Binary

    Four Kilobytes, Two Pages

    4096 words of EPROM spans two 2K pages, so PCLATH participates in every long call. The array itself is the same structure as the 74A’s, which means the reconstruction discipline is familiar: walk from reset, shadow the PCLATH writes, resolve every computed jump, then close the unresolved ones on hardware.

    The difference is what the code is doing. Without a converter, the firmware is a logic controller — state machines, timers, keypad scans, display multiplexing — and its correctness is expressed in timing rather than in analogue values.

    Thirty-Three Pins Of Digital

    Three full ports plus control lines, and no analogue function to share them with. On this part a pin is either an input, an output, or a bidirectional line, and the direction registers are the whole interface definition.

    For a rebuild that is convenient: a pin map is sufficient, and a static test that drives each pin high, low and floating covers the interface. There is no reference voltage to characterise and no channel map to verify, which removes the most time-consuming part of a converter-based job.

    What The 662 Has That This Does Not

    The 662 adds eight analogue channels in the same package and the same array size. Firmware written for one will not run correctly on the other: the ADCON register does not exist on the 642, and code that writes it is writing to an unimplemented address.

    That matters when a customer sends a board and says it is a 642. We read the device ID at 2000h before accepting the description, because a 662 image delivered as a 642 image is a rebuild that fails on first power-up with no obvious cause.

    Two Pages And A State Machine

    Logic firmware on a 4K part is usually a state machine with a transition table, and the table is the part of the image that has to be exactly right. A disassembler shows the table as a run of instructions that never execute, because a computed jump consumes it as data.

    We locate it by finding the computed jump first, then reading backwards to the table base and forwards to its last entry, bounded by the value range of the index. The table is then delivered as a separate CSV alongside the listing, because a transition table is documentation of the product’s behaviour as much as it is code.

    Why Pure Digital Jobs Finish Faster

    Without a converter there is no reference to characterise, no channel map to verify and no sample timing to measure, so the bench work reduces to a power-up test and a pin sweep. The read is the same length as any other 4K part; the verification is a fraction of it.

    That does not make the job trivial. It moves the risk from the bench to the reconstruction, where a wrong table entry produces a device that behaves correctly in every state the test visits and wrongly in the one state the test does not.

    Reading The Part

    Fuse photographed first, then the ID, then the configuration word at 2007h, then the array in one sweep with a comparison pass. The 40/44-pin package opens cleanly and the die is large enough that probe placement is not delicate.

    Because the medium is EPROM, the erase state is 3FFFh and the protect element is external to the matrix. On a windowed part we note whether the window shows evidence of prior erasure, since a part that has been cleared and reprogrammed carries a different risk profile from a factory-programmed one.

    Delivery

    Binary, HEX with configuration, a listing with bank annotations, a pin map verified on the bench, and the device ID read as a separate field. Where the customer’s description and the ID disagree, the delivery says so in the first paragraph rather than in a footnote.

    The nearest part with a converter in the same package is the PIC16C74A job, which adds eight channels and a parallel slave port in the same 40/44-pin body, and the 8K member of the line is the PIC16C77 page. Package photographs and scoping questions go through the contact form.

    Service scope and next steps

    PIC parts from the 16F, 18F and 32F families are handled on the same bench every week. We identify the exact device revision, check the read-protection level, and confirm the flash layout before quoting. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Need a PIC part read?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation

  • PIC16C554: 512 Words On A Thirteen-Pin Budget

    The PIC16C554 is the entry point of the 16C55x line: 512 words of EPROM, 80 bytes of RAM, 13 I/O and an 18-pin body, with no converter and no serial port on the die. There is very little to reconstruct and one thing to get right, which is the protection element — because on a part this small, everything else follows from whether the fuse is real.

    Read MCU PIC16C554 Heximal
    Read MCU PIC16C554 Heximal

    What Thirteen Pins Imply

    Two pins are power, one is the programming clock and one the data line during manufacture, and the remaining nine carry the application. Designs built at this ceiling do not waste a pin, which means the pin functions in the configuration word matter more than usual: a wrong MCLR setting turns a reset input into an ordinary digital input, and the board then behaves as if the reset circuit had been removed.

    The configuration word at 2007h is therefore read before the array, decoded field by field, and reported in the delivery as a table rather than as a hex value.

    512 Words Is Not A Small Program

    Half a kilobyte of 14-bit instructions is enough for a state machine with a timing loop and a couple of tables, and that is exactly what these parts do: timers, chargers, simple controllers. The code is hand-written and tight, and every subroutine is reachable from the main loop.

    On an image this size we can prove reachability. Starting from the reset vector and the interrupt vector at 0004h, we walk every branch and call, and we list the words that no path reaches. Unreachable code on a 512-word part is either a data table that the disassembler mistook for instructions or a real leftover — both worth knowing before a rebuild.

    Where This Part Sits In Its Line

    The 16C55x family runs 512, 1024 and 2048 words across the 554, 556 and 558, in the same 18-pin package with the same 13 I/O and the same instruction set. Only the array size changes. That makes the family useful to a rebuild team: a dump from a 554 can be checked against the code layout of a 556 from the same product line, and the common routines should match byte for byte.

    We use that where a customer sends several boards from a product family and only one has a readable part. The sibling images bound the uncertain regions, and the reconstruction stops being a guess.

    What A Nine-Pin Application Looks Like

    Two pins for power, four for the application, and three that are shared with programming or reset. In practice these parts run a timer, a charger or a two-button controller, and the firmware is a polling loop with a handful of compares.

    That shape is why the reachability report matters here. On a 512-word image of a polling loop, any block that no branch reaches is either a table or a mistake, and there is no operating system to hide it.

    The Fuse, And Why It Is The Whole Job

    This generation stores protection in a fuse outside the memory matrix. It is visible under a microscope, it can be photographed, and it does not participate in the array read at all. A part with the fuse programmed reads exactly like a part without it, once the die is open — which is why the photograph is taken before anything else happens.

    The photograph answers a question that arises on almost every obsolete-part job: was the part protected when it arrived? A customer who has been told by a contract manufacturer that the parts were protected sometimes finds out otherwise.

    Reading And Checking

    The array reads in one sweep from 0000h to 01FFh, twice, with a third pass through the programming interface where the part permits it. The 18-pin OTP package opens quickly and the die is small enough that a single probe position covers the matrix.

    Where the three passes disagree, the block is re-probed at a slower sweep. On parts of this age the disagreement is usually a marginal bit rather than a logic error, and the slower sweep resolves it.

    Delivery

    Binary, HEX with configuration, a listing with the reachability report, the decoded configuration table, and the fuse photograph. The reachability report is the one customers comment on, because it tells them how much of the image is actually live code.

    The 1K member of the same line is the PIC16C621 job, the 2K version with the same pinout is the PIC16C622A page, and the 18-pin part with a converter is the PIC16C710 job. Scheduling goes through the services desk.

    Service scope and next steps

    PIC parts from the 16F, 18F and 32F families are handled on the same bench every week. We identify the exact device revision, check the read-protection level, and confirm the flash layout before quoting. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Need a PIC part read?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation

  • PIC16C715: The Same 1K Core Without A PWM Output

    Two parts, one die: the PIC16C712 has a capture/compare/PWM module bolted onto a 1K core, and the PIC16C715 is the same core with the module removed and the pin budget spent elsewhere. Reading one is nearly identical to reading the other. Verifying a rebuilt device is not, because the thing that would have told you the clock was right is missing.

    Read Chip PIC16C715 Program
    Read Chip PIC16C715 Program

    What A Missing Peripheral Costs

    A PWM output is an instrument. Its period is derived from the instruction clock, so a rebuilt part with the wrong oscillator setting produces a visibly wrong period, and the error announces itself. Take the module away and the same oscillator error hides inside software delay loops, where it shows up as a timing drift measured in seconds rather than microseconds.

    On a 715 job we therefore measure the instruction clock directly, from a spare output pin toggled by the firmware, and we report it alongside the dump. It is the only independent check on the timing chain that the application itself does not provide.

    1K Words And Four Channels

    The array is one page, 1024 words, with 68 bytes of RAM and four 8-bit converter inputs. With no PWM to reconstruct, the interesting part of the firmware is the sampling strategy: which channel is read how often, what averaging is applied, and what the code does when a reading sits outside a band.

    Those decisions live in tables and comparisons. On a small image they are visible in an evening, and they are what customers actually want to talk about, because the thresholds encode the product’s behaviour and are often undocumented.

    Two Ways To Check A Clock

    With no PWM output to scope, the instruction clock is verified in two independent ways. The first is a toggling pin: a few instructions in a spare loop, measured on a frequency counter. The second is the timer interrupt period, measured across a hundred interrupts so that the prescaler arithmetic is included.

    The two numbers must agree. When they do not, the firmware is using a different clock source than the one assumed — usually because the configuration word selects an external crystal that the rebuilt board does not have.

    What 68 Bytes Buy

    Sixty-eight bytes of RAM sounds like a limitation and behaves like documentation. The file register map is dominated by special-function registers, so the user variables are a short list, and each one can be traced from its first write to its last read.

    On a part this size we deliver that trace as a table: address, name where recoverable, range of values observed, and the routine that owns it. Customers rebuilding into a modern replacement find it more useful than the disassembly, because it describes the interface rather than the implementation.

    The Configuration Word Tells The Story

    At 2007h this generation stores oscillator mode, watchdog enable, code protect and a handful of pin functions. The watchdog bit is the one that causes the most rebuild failures: a part rebuilt with the watchdog enabled where the original had it disabled resets every few hundred milliseconds, and the symptom looks like a code fault.

    We report the configuration word in three forms — raw, decoded by field, and as the register value to write on a production programmer — because those three forms get confused constantly.

    Reading And Checking

    Fuse state photographed, ID at 2000h, configuration at 2007h, array swept from 0000h to 03FFh. Two passes with a word-for-word comparison, plus a third pass through the programming interface where the part allows one.

    The 18-pin package is friendly: a modest die, a wide window, and bond pads far enough from the edge that the etch is not a negotiation between exposing the matrix and keeping the wires attached.

    Delivery

    Binary, HEX with configuration, a listing, the measured instruction clock, and the recovered threshold table with the channel each threshold applies to. The threshold table is the part customers reuse; the rest is insurance.

    Its sibling with the PWM module is the PIC16C712 job, the 2K member of the line is the PIC16C716 page, and the comparator-based 18-pin part is the PIC16C711 job. Quotations start at the services desk.

    Service scope and next steps

    Before we quote a PIC job we confirm the silicon revision and the protection configuration, because both decide whether the on-chip programming area can be read directly or needs a different approach. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Ready to extract this PIC firmware?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation

  • PIC16C717: EEPROM In The Slug, No EEPROM On The Die

    Customers ask for PIC16C717 EEPROM content and the honest answer is that this die does not contain any. The 16C717 is an EPROM part with 4096 words of program memory, 192 bytes of RAM and no data EEPROM block — the first PIC16 devices to carry one were the 16C84 and the flash-based 16F8x. What the customer usually means is the program array, and that is what gets read.

    Read MCU PIC16C717 Eeprom
    Read MCU PIC16C717 Eeprom

    What The Slug Is Really Asking For

    In this trade “EEPROM” has become a synonym for “the memory inside the chip”, which was accurate in the 1990s and has been misleading ever since. The distinction is not academic: a data EEPROM block is a separate array with its own read path, its own protection bit and its own endurance, and a program array is a completely different structure.

    On the 717 the answer is simple. There is one array, 4096 words wide, plus the device ID at 2000h and the configuration word at 2007h. No second block, no separate protect bit, nothing to reconcile.

    Four Channels And A 4K Array In 18 Pins

    The converter offers four inputs at eight bits, and the part is available in 18-pin and 28-pin bodies with 16 I/O in the smaller one. Four kilobytes means two 2K pages and one PCLATH boundary, which is the smallest array in this family that actually needs bank reconstruction.

    That single boundary is worth attention. It is easy to assume a 4K part behaves like a 2K one and read the code as a flat image. The result is a listing that is correct for the first half and quietly wrong after 0800h, where calls land one page off.

    How The Read Is Organised

    Fuse state first, photographed. Then the device ID, then the array from 0000h to 0FFFh, then the configuration word. The die is small and the window is generous on an 18-pin package, so the physical work is quick; most of the elapsed time is the double read and the comparison.

    We treat the two halves of the array differently. Page zero is checked against the reset and interrupt vectors, which have known semantics. Page one is checked against call targets from page zero, which gives an independent structural test that does not depend on the disassembler.

    Two Packages, One Image

    The 717 ships in an 18-pin and a 28-pin body, and the larger package exposes I/O the smaller one does not. A single image can be built for either, which means the die tells you what the code does but not which board it came from. The pin map, the package marking and the customer’s description together resolve that, and we record all three.

    For a rebuild this matters more than it sounds. On the 28-pin variant a port that is unconnected on the 18-pin board may be driving something, and a reconstruction that leaves it as an input will look correct on the bench and fail in the product.

    What The Fuse Photograph Proves

    The photograph of the intact fuse is not decoration. It answers, months later, the question of whether the part arrived protected or was programmed without protection. On a customer dispute that single image has settled more cases than any log file, because it shows the die before anything was cut.

    We keep it alongside the bond map, so the two documents can be reconciled if a second unit from the same lot arrives later.

    Verification On A Rebuilt Part

    The rebuilt device is tested with the four analogue inputs driven in sequence and with the oscillator configured as the donor board had it. The 717 is often used as a sensor front end, and a firmware image that runs but samples the wrong channel produces plausible numbers in the wrong place — the kind of fault that survives a smoke test.

    What You Receive

    Binary, HEX, a listing with the page boundary annotated, the fuse photograph, and a statement of what the die does and does not contain — including the note that there is no data EEPROM, which more than one customer has needed in writing.

    The 2K member of the same 18-pin line, with PWM on top of the converter, is the PIC16C716 job, and the larger 28-pin array is the PIC16C72A page. Volume and package questions go through the services desk or the contact form.

    Service scope and next steps

    PIC parts from the 16F, 18F and 32F families are handled on the same bench every week. We identify the exact device revision, check the read-protection level, and confirm the flash layout before quoting. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Need a PIC part read?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation

  • PIC16C76: 8K Words In A 64-Pin Thin Quad Package

    The slug on this page says flash, and the first correction belongs here: the PIC16C76 is an EPROM device, available as a windowed ceramic part or as a plastic OTP. There is no flash array to erase and no flash-style protection cell. What the part does have is 8192 words of program memory in a 64-pin thin quad flat pack, and that package is the real subject of the job.

    Read Chip PIC16C76 Flash
    Read Chip PIC16C76 Flash

    Four Pages And 52 Pins

    Eight kilobytes of program space on this core means four 2K pages, so the two upper bits of PCLATH participate in every long jump. The 64-pin package exposes 52 I/O, which is the largest pin count in the 16C7x line and the reason the part appears in designs that needed three full ports plus a parallel slave port plus the analogue block.

    Reconstructing the page state is the same discipline as on the 4K parts, with twice the surface. The rebuild tool walks from the reset vector, records PCLATH writes, and flags every computed jump whose target cannot be resolved statically. Those flags are then closed on hardware, not by inspection.

    Opening A 0.5 mm Pitch Package

    A 64-pin TQFP has leads on 0.5 mm centres, and the die inside is larger than the one in a 44-pin part. The window has to be cut wide enough to expose the whole matrix while leaving the bond shelf intact, because the leads sit closer to the die edge and a mis-aimed etch takes the bond wires with it.

    That is the part of the schedule that varies most between jobs. A 44-pin part with a known package outline goes quickly; a 64-pin part from an unfamiliar assembly house needs the lead frame mapped before the first etch, and we photograph the top metal before decapsulation so the fuse location can be referenced afterwards.

    The Converter And The Slave Port

    Eight analogue channels at eight bits, plus the parallel slave port on this device. Neither is difficult to reconstruct and both are easy to mis-verify. The slave port in particular only misbehaves when a host drives it, so a standalone bench test of the rebuilt part will not exercise it.

    We test the PSP with a host that writes and reads in both directions, and we test the converter by driving two channels from a common divider and comparing the difference. Both checks are cheap; skipping them is what turns a good read into a support ticket three months later.

    The Read Itself

    The array sweep covers 0000h to 1FFFh, then the device ID at 2000h and the configuration word at 2007h. Because the part is EPROM, the protect element is external to the matrix and its state is documented photographically before anything is read. On a windowed part we also record whether the window shows prior erasure, since a part that has been cleared and reprogrammed behaves differently from one that left the factory once.

    Bond Maps And Why They Save A Day

    A 64-pin package carries more bond wires than a 44-pin one, and they land closer to the die edge. Before the etch we photograph the lead frame and record which lead goes to which pad, because after decapsulation the wires are the first thing an etch takes with it. That map is what lets us probe without re-deriving the pinout from the datasheet, and it is often the difference between a two-day job and a week.

    The photograph goes into the delivery. It also answers the most common post-delivery question, which is whether the part that came back is the part that went in.

    The 52 I/O also mean the rebuilt device is tested in banks rather than pin by pin: a port that is correct in isolation can still be wrong when two ports share a direction register.

    Delivery And Handover

    Binary, HEX, disassembly with page-state annotations, a lead-frame photograph, and the verified pin and channel maps. Cross-page jumps are listed with their resolved targets so a rebuild team can audit the reconstruction instead of trusting it.

    The 40/44-pin sibling with the same 8K array is the PIC16C77 job, and the 4K two-page version is documented on the PIC16C74A page. If the medium in question is genuinely flash rather than EPROM, the memory-type comparison sets out what changes. Package photographs and quotes go through the contact form.

    Service scope and next steps

    PIC parts from the 16F, 18F and 32F families are handled on the same bench every week. We identify the exact device revision, check the read-protection level, and confirm the flash layout before quoting. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Need a PIC part read?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation

  • PIC32MX210F016C: The USB Descriptors Are The Product

    PIC32MX210F016C: The USB Descriptors Are The Product

    Plug a USB device into a host and the host asks three questions in the first second: who are you, what are you, how do you talk. The answers come from descriptor tables in the device’s flash, and on a PIC32MX210F016C those tables are not plumbing — they are the product. Recovering a USB product without its descriptors yields a firmware image that boots and says nothing.

    What Lives In The Tables

    The descriptor set holds the vendor and product IDs, the class and interface definitions, the endpoint structure, the string table with product and manufacturer names, and for HID-class devices the report descriptor — the byte-level grammar that defines every field the device ever sends. A report descriptor is authored once and approved by a host stack; it is compact, idiosyncratic, and utterly specific. Two competing mice with identical silicon are separated, at the protocol level, by their report descriptors and nothing else.

    On the 210F016C those tables occupy flash alongside the code, typically near the top of the 16 KB array. They are constant data, copied or referenced by the USB stack at enumeration time. The peripheral itself is a full-speed USB 2.0 controller with device, host and OTG modes, backed by dedicated DMA channels so descriptor transfers do not starve the CPU. The M4K core runs to 50 MHz; SRAM is 4 KB; the package is 36-pin VTLA, the pin count that gives fixture builders pause — the 150F128C page covers that logistics problem in its own right.

    Why Descriptors Are Intellectual Property

    Code can be rewritten by anyone with the protocol documentation. The report descriptor cannot, because it encodes decisions: report IDs, field widths, padding choices, usage pages. Rebuilding it from observed traffic is reverse engineering with a sample rate problem — every field that only appears under rare conditions is a field the reconstruction gets wrong. Recovering the original table removes the guesswork. The same holds for the string table, which carries product names and revision strings that production documents rarely record accurately.

    That is why a recovery report for this part separates the descriptor region from application code instead of shipping one flat HEX. The customer rebuilding or supporting the product needs both, but needs them labeled: here is the array’s code, here is the boot bank with its 3 KB and its DEVCFG words, here are the descriptors at these addresses. The firmware extraction page describes the packaging standard.

    The Descriptor Hierarchy, Briefly

    USB descriptors nest: one device descriptor, configurations inside it, interfaces inside those, endpoints and class-specific tables — the HID report descriptor among them — at the leaves. The nesting is declared in the bytes, so a reconstruction can validate its own reading: lengths must sum, counts must match, and a dump that violates the structure is either misaligned or from a different product than assumed. That self-check is free, and it catches capture errors before they become support errors. On a 4 KB SRAM part the descriptors are also some of the largest constants in flash, which makes them easy to locate once the region boundaries are known.

    Endpoint zero handles enumeration itself; the interface descriptors declare what the other endpoints do. For HID products the report descriptor is the document that matters — it is the grammar of every field the device ever sends — and hosts cache it at enumeration, which is why a rebuilt device with the wrong descriptor fails in ways users notice instantly.

    Capture And Verification

    The mechanical read is family-standard: two independent captures of the 16 KB program array from 0x1D000000 to 0x1D003FFF and the 3 KB boot flash from 0x1FC00000 to 0x1FC00BFF, compared word for word, with the device ID read back to confirm the die — the C package shares its silicon with B and D siblings of the same density, and the ID settles the flash size while the marking settles the lead count. Page geometry is 256-word erases and 32-word program rows.

    Code protect sits in DEVCFG0 bit 28, active low; armed, it blocks external reads of both partitions, and the only documented exit is a chip erase that destroys the image. Write-protect fields do not block reads. The configuration words are read before anything else for exactly this reason — they answer the security question before the effort is spent. The reading process page details the sequence.

    Who Needs This

    The recurring callers are three: the product owner who lost source and needs the device to keep enumerating as itself after a firmware rebuild; the support team reverse-documenting a legacy product line; and the engineer porting the product to a successor part, who needs the descriptors byte-exact because hosts remember them. All three jobs start the same way — the part, the board, or both — under the terms on the NDA page. The capture is routine; the value is in knowing that on a USB product, identity is data, data is in flash, and flash yields to a competent reader before it yields to anything else.

    Part numbers across the branch are collected on the PIC32MX family page, each with its page size and pin count.

    Service scope and next steps

    PIC parts from the 16F, 18F and 32F families are handled on the same bench every week. We identify the exact device revision, check the read-protection level, and confirm the flash layout before quoting. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Need a PIC part read?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation

  • PIC16C63A: Four Kilobytes And A Page Boundary At 0800h

    Four kilobytes in a 28-pin package, with 192 bytes of RAM, 22 I/O and the same pair of serial ports as its 2K sibling. The PIC16C63A is what a design moved to when the protocol outgrew two kilobytes, and the move introduced a page boundary that the smaller part did not have.

    Read Out Secured PIC16C63A Microcontroller
    Read Out Secured PIC16C63A Microcontroller

    The Boundary Is The Whole Difference

    At 2K the program counter fits inside one page and every call is direct. At 4K the upper bit comes from PCLATH, and the firmware has to set it before every long jump. A reconstruction that reads the array as a flat image produces a listing where the second half looks like a different program.

    We shadow the PCLATH writes from the reset vector and resolve each computed jump against the recorded state. Where a target cannot be resolved statically, it is exercised on a rebuilt part and the observed address is written back into the listing.

    The Same Two Ports, More Room

    The serial peripherals are unchanged, but the extra code space means the protocol handler can be modular: separate routines for framing, checksum and command dispatch. That structure is visible in the disassembly and it makes the command table easier to locate.

    We look for the dispatch first, then work backwards to the table, then bound the table by the range of the index register. On this part that takes an afternoon rather than a day.

    Two Hundred Bytes Of Buffer

    192 bytes of RAM is enough for a real receive buffer, and a design that uses one has to handle overflow. The overflow path is where firmware bugs live, and it is also where a reconstruction can silently differ from the original: a rebuilt device that drops a different byte than the donor under load will still pass a functional test.

    We exercise the path by sending more data than the buffer holds and comparing which bytes survive. The comparison runs on two rebuilt units in parallel, because a single run cannot distinguish a dropped byte from a byte the sender never sent.

    Why Four Kilobytes Changed The Coding Style

    Two kilobytes forces a flat program: a main loop, a few subroutines, everything reachable from anywhere. Four kilobytes allows structure — separate modules for framing, checksum and dispatch — and the compiler of the day produced calls across the page boundary as a matter of course.

    That change of style is visible in the dump and it changes how a reconstruction is organised. Instead of reading linearly, we find the module boundaries first, then read each module against its own entry convention.

    Reading Both Pages Without Losing The Thread

    The two pages are contiguous in the address space and discontinuous in the programmer’s mind, because the bank bit belongs to the caller. A listing that ignores it reads as two unrelated programs that happen to share a reset vector.

    We deliver the listing twice: once as a flat image for byte comparison, once with bank annotations for reading. Customers who only ever look at one of them tend to pick the annotated version after the first attempt.

    The Command Table As Documentation

    The dispatch table is the part of the image that describes the product to the outside world: which bytes are accepted, in what order, and what each one returns. Recovering it is worth more than recovering any single routine.

    We deliver it as a table with the accepted value, the handler address and a short description inferred from the code, and we mark the entries whose handler could not be read unambiguously rather than guessing.

    Reading The Part

    Configuration word decoded first, then the device ID, then both pages in two passes. The 28-pin package is straightforward, and the die is the same size as the 2K member, so the physical work is identical.

    Delivery

    Binary, HEX with configuration, a listing with a bank column, the command table, the overflow behaviour observed on the bench, and the baud rate measured on the rebuild.

    The 2K version without the page boundary is the PIC16C62B page, the 40-pin version with a parallel port is the PIC16C64A job, and the 8K member of the same architecture is covered at the PIC16C77 page. Volume questions go through the contact form.

    Service scope and next steps

    PIC parts from the 16F, 18F and 32F families are handled on the same bench every week. We identify the exact device revision, check the read-protection level, and confirm the flash layout before quoting. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Need a PIC part read?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation

  • PIC16LC620: The Smallest 18-Pin EPROM Part

    PIC16LC620: The Smallest 18-Pin EPROM Part

    Five hundred words of EPROM in an 18-pin package is close to the floor of what a microcontroller can be. The PIC16LC620 has 512 words, 80 bytes of RAM and 13 I/O, no converter and no serial port, and it exists for products that need a decision and a timer and nothing else.

    Reading Microchip PIC16LC620 Software
    Reading Microchip PIC16LC620 Software

    A Small Array Leaves No Room For Doubt

    Half a kilobyte is roughly two hundred instructions of real code once the initialisation is counted. There is no structure to speak of: a start-up block, a loop and a couple of subroutines. That makes the read short and the acceptance test strict, because there is no redundancy anywhere in the image.

    We read the array three times and require unanimous agreement on every word. On a part of this age the third pass is what catches the marginal bit that two passes happen to agree on.

    What Eighty Bytes Of RAM Tells You

    Eighty bytes is enough for a handful of variables and a small buffer. In a dump, that means the file register map is almost entirely special-function registers, and any user variable stands out as an address that is written before it is read.

    We produce the variable list as part of the delivery.

    The Low-Voltage Design

    The LC rating means the part is specified for a low supply, and products using it are usually powered from a battery with no regulator. The firmware therefore treats the supply as a measured quantity, and the measurement path is often the only interesting analogue behaviour in the product.

    Since there is no converter, the supply is compared against the internal reference and the result is a single bit. That bit drives everything: a low-battery indication, a shutdown, a write to a counter.

    Reset Is A Circuit, Not A Pin

    On an 18-pin part the reset line is often the only pin the designer did not have to share, and the external RC that holds it low at power-up is part of the product’s behaviour. The firmware may also rely on a brown-out reset rather than an external supervisor.

    A rebuilt device without the same reset behaviour starts at the wrong moment and writes to an output before the supply has settled — which on a part with 13 pins and no converter is the most common cause of a first-power-up failure.

    One Timer, One Prescaler

    There is a single 8-bit timer with a shared prescaler, and the prescaler is assigned to either the timer or the watchdog, never both. That assignment is a configuration bit and appears in the code as a specific write sequence.

    Getting it wrong produces a device whose timer runs at the wrong rate and whose watchdog fires at the wrong interval — two faults from one bit, which is why we report the assignment explicitly rather than leaving it buried in the configuration word.

    What Five Hundred Words Cannot Do

    A program of this size cannot buffer, cannot parse a protocol and cannot recover from much. It does one thing repeatedly with the resources available.

    Because there is nothing spare, every instruction has a purpose, and a word that looks like data is data. A customer can check the disassembly against the product’s behaviour without needing the source.

    OTP Batch Consistency

    Plastic OTP parts from the same lot program to the same behaviour, and that consistency is useful when a customer sends several units. Reading two and comparing gives a reference for the third.

    Where the units differ, the difference is usually in the data region rather than the code, and that distinction tells us whether we are looking at a product variant or at a failing part.

    Choosing A Replacement

    Most of these jobs end with a rebuild onto a modern part rather than an identical one, and the choice is constrained by the 18-pin package, the 13 I/O and the absence of a converter. The image tells us the timing and the pin map tells us the electrical requirements.

    We deliver both in a form a designer can use for substitution rather than only for cloning.

    Reading The Part

    Fuse photographed, configuration word decoded, array swept three times across 0000h–01FFh. The package is small, and the whole matrix is reachable with one probe position — but the window is narrow, so the etch is done slowly.

    Delivery

    Binary, HEX with configuration, a listing, the variable map, the fuse photograph, and the three-pass comparison report.

    The 1K version is the PIC16LC621 job, the 2K part with an A-revision die is the PIC16C622A page, and the 28-pin communication-oriented member of the family is the PIC16C62B job. Scheduling goes through the services desk or the contact form.

    Service scope and next steps

    PIC parts from the 16F, 18F and 32F families are handled on the same bench every week. We identify the exact device revision, check the read-protection level, and confirm the flash layout before quoting. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Need a PIC part read?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation