PIC16F877A Unlock — Authorized Firmware Recovery Explained
The PIC16F877A uses Microchip’s CP (Code Protect) and CPD (Data Code Protect) fuse bits to block external read access to its 8 K × 14-bit flash program memory and 256-byte EEPROM. A PIC16F877A unlock recovers the firmware stored behind those protection bits so you can restore a legacy product, migrate to a new PCB revision, or rebuild a prototype whose source code was lost. Our engineers have processed hundreds of PIC16F87xA-family parts with a high success rate, typically delivering a verified HEX file within 3–5 working days.
How Does the PIC16F877A Protect Its Firmware?

Microchip’s mid-range PIC architecture protects the PIC16F877A through configuration word bits rather than hardware encryption. Understanding these bits is the first step in any unlock assessment.
| Protection Feature | Config Bit(s) | What It Blocks |
|---|---|---|
| Flash Code Protect | CP (bit 13 of CONFIG) | External read/verify of 0x0000–0x1FFF program memory |
| Data EEPROM Protect | CPD (bit 8) | External read of 256-byte data EEPROM |
| Write Protect (Flash) | WRT (bits 9-10) | Self-write to program memory regions |
| Low-Voltage Programming Disable | LVP (bit 7) | MCLR/VPP pin programming entry |
Because the PIC16F877A relies on fuse-level protection without a dedicated cryptographic engine, the firmware is stored in plain 14-bit words. This makes physical-layer recovery significantly more feasible than on modern encrypted MCUs like the nRF52840 with its ARM TrustZone protection. However, the process still demands precision lab equipment and experienced operators to avoid damaging the die.
What Makes PIC16F877A Unlock Realistic?
Several factors work in favor of a successful readout on this part:
- Mature process node: Fabricated on Microchip’s 0.35 µm (and some lots 0.5 µm) CMOS process. Feature sizes are large enough for reliable microprobing and UV/fault-injection techniques.
- No encryption engine: Flash contents are not scrambled. Once protection is bypassed, the data reads out as a standard Intel HEX file.
- Well-documented architecture: The 14-bit instruction set, memory map (8 K words flash, 368 bytes SRAM, 256 bytes EEPROM), and fuse structure are fully public, reducing reverse-engineering ambiguity.
- Large package options: The 40-pin PDIP and 44-pin TQFP packages give physical access advantages over BGA or WLCSP parts.
Our lab maintains a reference library of PIC16F87xA silicon revisions. When a customer submits a part, we cross-reference the die revision markings against known protection implementations before selecting the optimal attack vector. This pre-screening step typically takes one working day and is included in every engagement.
Step-by-Step: How We Perform the Unlock
1. Authorization & Intake
You ship us the target PIC16F877A (we recommend at least two samples in case of destructive analysis). We require proof of ownership or a signed authorization letter—this is mandatory for every IC recovery engagement. Details on our compliance framework are available on our trust and authorization policy page.
2. Package Decapsulation
We chemically decapsulate the PDIP or TQFP package using fuming nitric acid or a sulfuric/peroxide blend at controlled temperature (90–110 °C). The goal is full die exposure with no damage to bond wires or the flash array. Typical decap time for a PIC16F877A PDIP-40 is 8–15 minutes.
3. Protection Bypass
Depending on the silicon revision, our engineers apply one or more techniques—UV exposure of the security fuse area, glitch-based fault injection on the VDD rail during read cycles, or focused microprobing of the configuration latch. The PIC16F877A’s single-bit CP fuse is physically smaller than multi-zone protection on newer Microchip parts, so targeted UV erasure of just the security bit is often sufficient without disturbing program data.
4. Firmware Readout & Verification
Once protection is cleared, we read the full 8 K × 14-bit flash, the 256-byte data EEPROM, and the configuration word using a standard Microchip-compatible programmer (PICkit 3 or equivalent). We perform three consecutive reads and compare checksums to confirm data integrity. If all three match, the file is considered verified.
5. Delivery
You receive the Intel HEX file covering program memory and EEPROM, a copy of the configuration word settings, and a brief technical report noting silicon revision and any anomalies observed during extraction.
Cost and Turnaround for PIC16F877A Unlock
| Service Tier | Turnaround | Typical Price Range (USD) | Notes |
|---|---|---|---|
| Standard | 5 working days | $300 – $500 | Includes 2 read attempts, HEX + config word |
| Rush | 2–3 working days | $500 – $750 | Priority queue, same deliverables |
| Batch (5+ units) | 7–10 working days | $200 – $350 per unit | Volume discount, per-unit verification |
Pricing depends on package type, silicon revision, and whether additional services (disassembly annotation, BOM cross-reference) are requested. We provide a firm quote after the initial feasibility check—no hidden charges.
Check feasibility for your project
Send the chip marking or board details and tell us what you need to recover. Add clear photos if available.
Request a feasibility reviewWhat Can Go Wrong?

Transparency matters. Here are the realistic failure modes we’ve encountered on PIC16F877A parts:
- Die damage during decap: Aggressive acid exposure or excessive temperature can etch bond pads or crack the die. Using two samples mitigates this risk.
- UV over-exposure: If the UV dose erases flash cells beyond the security fuse, partial data corruption occurs. Our calibrated UV source and masking jig limit exposure to a 50 µm × 50 µm target area to prevent this.
- Remarked or counterfeit parts: We occasionally receive parts marked as PIC16F877A that contain a different die—sometimes a PIC16F874A or even a non-Microchip clone. Die inspection catches this before any destructive work begins.
- Corroded or degraded flash: Parts pulled from equipment that operated above 85 °C for years may have degraded flash charge levels, leading to bit errors. We flag suspect cells in the report.
Overall, our success rate on genuine PIC16F877A parts in good physical condition exceeds 90%. When recovery isn’t possible, we refund the service fee minus the decapsulation cost.
PIC16F877A vs. Related Microchip Parts
If your design uses a different PIC variant, the protection level and recovery difficulty can vary significantly. The table below compares the PIC16F877A to parts we commonly process.
| MCU | Flash Size | Protection Type | Relative Difficulty |
|---|---|---|---|
| PIC16F877A | 8 K × 14-bit | CP / CPD fuse bits | Low–Moderate |
| PIC16F18 family | Up to 32 K × 14-bit | Multi-zone CP, SAF | Moderate |
| PIC16F15 family | Up to 14 K × 14-bit | Multi-zone CP | Moderate |
| PIC18F series | Up to 128 KB | CP + block write protect | Moderate–High |
| dsPIC33 series | Up to 512 KB | Code Guard Security (CGS) | High |
For EEPROM-only recovery tasks on companion memory chips, our engineers also handle parts like the 24C256 serial EEPROM and similar I²C/SPI memory devices that may sit alongside a PIC on the same board.
Who Needs a PIC16F877A Unlock?
Common authorized use cases include:
- Legacy equipment maintenance: Industrial controllers, building automation panels, and agricultural monitors from the 2000s–2010s frequently use the PIC16F877A. When the original firmware source is lost and the OEM no longer supports the product, authorized readout is the fastest path to continued operation.
- PCB migration: Moving a proven design from the PIC16F877A (now in a mature lifecycle phase) to a newer PIC16F or PIC18F requires the original binary as a baseline for porting.
- Failure analysis: Comparing firmware from a failed unit against a known-good reference helps isolate whether a field failure is hardware or firmware related.
- Prototype recovery: Engineering teams that lost source control access (contractor departure, drive failure) need the HEX to resume development.
Deliverable Formats
| Deliverable | Format | Contents |
|---|---|---|
| Program Memory | Intel HEX (.hex) | 8,192 × 14-bit words (0x0000–0x1FFF) |
| Data EEPROM | Intel HEX (.hex) or raw binary | 256 bytes (0x2100–0x21FF logical) |
| Configuration Word | Text annotation in HEX + report | CP, WDT, OSC, WRT, LVP, BODEN settings |
| Technical Report | Die photo, revision ID, checksum, anomalies |
Is PIC16F877A unlock legal?
Firmware recovery is legal when performed on parts you own or are authorized to service. We require a signed ownership declaration or authorization letter before starting work. This protects both parties and ensures compliance with IP law. See our authorization and trust policy for full details.
How many sample chips should I send?
We recommend shipping at least two PIC16F877A units. The decapsulation process is semi-destructive, and having a backup ensures we can complete the job if the first die is damaged or if the part turns out to be remarked. For batch jobs of 5+ identical units, one extra sample is usually sufficient.
Can you recover firmware if the PIC16F877A has both CP and CPD set?
Yes. CP and CPD protect different memory regions (flash and data EEPROM, respectively), but both are fuse-bit-level protections on this part. Our process addresses both simultaneously during the security-bit bypass step. There is no additional charge for dual-protected parts.
What if my part is a PIC16F877 (non-A revision)?
The original PIC16F877 uses the same 8 K flash and similar fuse protection but runs on an older silicon revision with slightly different configuration word mapping. We support both the PIC16F877 and PIC16F877A. Mention the exact marking when you request a quote so we can pre-screen the correct die revision.
Do you offer disassembly or source-code reconstruction?
We deliver the raw HEX binary by default. Annotated disassembly (commented ASM listing with peripheral register labels) is available as an add-on service. Full C source reconstruction is not offered, as decompilation of 14-bit PIC instructions yields unreliable results compared to working directly from the annotated assembly.
Check feasibility for your project
Send the chip marking or board details and tell us what you need to recover. Add clear photos if available.
Request a feasibility reviewWorking on a board like this?
Send the chip marking or two photos. You get feasibility, lead time and price within 24 hours, and the check costs nothing.
Get a free quote