ATtiny13 Unlock: What You Need to Know Before You Start
The ATtiny13 is one of Microchip’s (formerly Atmel’s) most widely deployed 8-bit AVR microcontrollers — an 8-pin device with 1 KB of flash, 64 bytes of SRAM, and 64 bytes of EEPROM. It appears in consumer electronics, industrial sensors, LED drivers, and countless legacy designs. When the original source code or project files are lost, an ATtiny13 unlock — authorized firmware readout past the device’s lock bits — is often the fastest path to recovering your own intellectual property.
Our engineers have handled hundreds of AVR-family recovery projects. Below we break down the ATtiny13’s specific protection mechanism, what recovery actually involves, realistic success factors, and what it costs.
How Does the ATtiny13 Protect Its Firmware?

The ATtiny13 uses a two-level lock-bit scheme (LB1 and LB2) that restricts external read/write access to flash and EEPROM through the ISP and High-Voltage Serial Programming (HVSP) interfaces. There is no advanced secure boot, encrypted storage, or anti-tamper mesh — the protection is entirely fuse- and lock-bit-based.
Lock-Bit Modes at a Glance
| Mode | LB2 | LB1 | Protection Level | Unlock Feasibility |
|---|---|---|---|---|
| Mode 1 | 1 | 1 | No memory lock — flash/EEPROM freely readable | Trivial (no lock) |
| Mode 2 | 1 | 0 | Further programming of flash/EEPROM disabled via ISP/HVSP | High |
| Mode 3 | 0 | 0 | Read + write of flash/EEPROM disabled; verification disabled | High — requires invasive or semi-invasive technique |
Mode 3 is the most common configuration we encounter in production-programmed ATtiny13 devices. Even at this level, the ATtiny13’s relatively simple die geometry (130 nm process, single metal layer for fuse storage) makes physical readout well-understood.
What Does ATtiny13 Unlock Actually Involve?
The exact technique depends on the lock-bit configuration and the condition of the chip. Our workflow follows three stages:
- Non-invasive assessment — We attempt to read device signature bytes, fuse states, and lock bits via ISP and HVSP. If Mode 1 is set, the firmware dumps directly — no further work needed.
- Semi-invasive / invasive recovery — For Mode 2 or Mode 3 devices, our lab decapsulates the package using fuming nitric acid or laser decap, then applies fault-injection or microprobing techniques to bypass lock-bit enforcement and extract flash and EEPROM contents.
- Verification & delivery — The extracted binary is verified against a CRC or functional test (if a reference board is available). We deliver an Intel HEX or raw BIN file, plus the fuse-byte configuration, so you can reprogram identical or replacement ATtiny13 parts.
Because the ATtiny13’s flash is only 1 KB, the entire extraction and verification cycle is shorter than for larger AVR devices like ATmega328P or ATmega2560.
Realistic Success Rate and Failure Modes
The ATtiny13’s straightforward architecture means recovery success is high for intact devices. However, certain conditions reduce feasibility:
- Physical damage — Cracked die, corroded bond wires, or heat-damaged flash cells (common in field-failed boards) can make readout partial or impossible.
- UV-erased flash — Older ATtiny13 parts left exposed to UV during rework may have partially erased sectors.
- Remarked or counterfeit parts — We occasionally see ATtiny13-labeled packages that contain a different die entirely. We identify this during decap and report findings before proceeding.
- EEPROM wear — If your firmware stores calibration or runtime data in the 64-byte EEPROM and the device has exceeded its 100,000-cycle endurance, those cells may return unreliable data.
For physically intact, genuine ATtiny13 devices with Mode 3 lock bits, our engineers achieve successful readout in the vast majority of cases. We provide a free feasibility assessment before any paid work begins — if recovery is unlikely, we tell you upfront.
Cost and Turnaround for ATtiny13 Unlock
| Service Tier | Typical Price Range (USD) | Turnaround (Working Days) | Includes |
|---|---|---|---|
| Standard recovery | $300 – $600 | 5 – 7 | Flash + EEPROM dump, fuse bytes, HEX file |
| Rush recovery | $500 – $900 | 3 – 5 | Same deliverables, priority queue |
| Batch (5+ identical ICs) | $200 – $400 per unit | 7 – 10 | Volume discount, consolidated report |
Pricing depends on lock-bit mode, chip condition, and whether EEPROM data is also required. The ATtiny13 sits at the lower end of our AVR pricing because of its small memory footprint and well-documented die layout. A formal quote follows the free feasibility check.
Deliverables You Receive
- Firmware binary — Intel HEX (.hex) and/or raw binary (.bin), 1 KB flash image.
- EEPROM dump — Separate 64-byte file when requested.
- Fuse & lock-bit report — Exact values of LFUSE, HFUSE, and lock bits so you can reproduce the original programming configuration.
- Decap micrograph (on request) — Die photo confirming part authenticity.
Files are delivered via encrypted transfer. All work is performed under NDA, and we require proof of ownership or written authorization before beginning any ATtiny13 unlock project. Read more about our nRF52840 authorized firmware recovery process for a comparison of how we handle more complex protected MCUs.
ATtiny13 vs. Other Common Unlock Targets

How does the ATtiny13 compare to other microcontrollers our lab handles regularly?
| Parameter | ATtiny13 | PIC16F18 Series | MSP430F4 Series | GD32E230 |
|---|---|---|---|---|
| Flash size | 1 KB | 7–28 KB | 48–120 KB | 16–64 KB |
| Protection type | Lock bits (2-bit) | Code-protect fuse (CP) | JTAG fuse + BSL password | RDP Level 0/1/2 |
| Typical cost | $300 – $600 | $400 – $800 | $500 – $1,200 | $400 – $900 |
| Turnaround | 3 – 7 days | 5 – 10 days | 5 – 12 days | 5 – 10 days |
The ATtiny13’s minimal flash and simple lock scheme keep both cost and turnaround at the low end. For related Microchip PIC projects, see our PIC16F18 unlock page, or explore MSP430F4 firmware recovery for TI-based designs.
Who Needs ATtiny13 Unlock?
Common scenarios our clients bring to us:
- Legacy product maintenance — The original developer left or the company folded; you need the firmware to continue manufacturing or repairing your own product.
- Prototype recovery — A one-off prototype was programmed before version control was set up. The HEX file no longer exists.
- Counterfeit verification — You suspect a batch of ATtiny13 parts are remarked fakes and need die-level confirmation plus a functional firmware comparison.
- Field failure analysis — Extracting firmware from a failed unit to compare against the golden image and identify corruption or bit-rot.
In every case, authorization documentation is required. We operate under strict IP-protection policies — details are available on our trust and compliance page.
How to Get Started
Send us the physical ATtiny13 device (or the entire PCB if desoldering is impractical). Include a brief description of the project context and your proof of ownership. Our engineers perform the feasibility assessment at no charge and return a formal quote within 1–2 working days.
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 reviewFrequently Asked Questions
Can ATtiny13 lock bits be reset without erasing flash?
No. Microchip’s AVR architecture ties lock-bit clearing to a full chip erase. That is precisely why invasive or semi-invasive techniques are needed — they read the flash contents directly from the die, bypassing the lock enforcement rather than clearing it. The extracted data is saved before any erase occurs.
Is ATtiny13 unlock legal?
Recovering firmware you own or are authorized to access is legal in most jurisdictions. We require written proof of ownership or a signed authorization letter before starting work. Unauthorized extraction of third-party IP is outside our scope. Every project is covered by a mutual NDA.
What if my ATtiny13 is soldered to a board?
Ship the entire assembly. Our technicians desolder the chip using hot-air rework with controlled profiles to avoid thermal damage to the die. We can also attempt ISP-header-based readout first if the board has an accessible programming header, which avoids desoldering entirely.
Do you also recover ATtiny13A firmware?
Yes. The ATtiny13A is a drop-in revision of the ATtiny13 with identical flash size, lock-bit scheme, and die geometry. The same recovery process applies, and pricing is the same. Other 8-pin AVR variants like ATtiny25 and ATtiny85 are also supported.
Can you reprogram new ATtiny13 chips with the recovered firmware?
Yes. Once we deliver the HEX file and fuse configuration, we can program replacement ATtiny13 units for you — or you can program them in-house using any standard ISP or HVSP programmer. We also support batch programming for production runs.
Related IC Unlock Services
If you work with mixed designs or need recovery across multiple chip families, explore these related pages:
- GD32E230 firmware extraction — ARM Cortex-M23 with RDP protection
- PIC18FK code-protect recovery — Microchip’s enhanced mid-range PIC family
- 24C256 EEPROM readout — I²C serial EEPROM data recovery
Working 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