ATtiny24V: The Debug Fuse That Also Takes the Reset Pin
On a small AVR, the reset pin is a shared resource. It is the serial programming entry, it is the debug interface’s communication line, and it can be turned into an ordinary I/O pin. Three functions, one pin, and two fuses that decide which one wins.
The result is a family of failure modes that all look the same from the programmer’s socket: no device detected. Telling them apart is a matter of reading one byte, and reading that byte requires access — which is the circularity that makes this worth understanding before a part arrives.
The two fuses
Reset disable. The pin becomes a general-purpose I/O. Serial programming cannot be entered because there is no reset signal to assert. The debug interface cannot be entered either.
Debug wire enable. The pin is handed to the on-chip debug system. Serial programming cannot be entered, because the debug system owns the line. But the debug interface itself is available, and through it the fuse can be cleared.
That difference is decisive. One is recoverable over a wire you already have; the other needs twelve volts and a different adapter.
| Fuse state | Serial programming | Debug interface | Recovery path |
|---|---|---|---|
| Both clear | available | not available | none needed |
| Debug enabled | blocked | available | clear the fuse over the debug interface |
| Reset disabled | blocked | blocked | high-voltage entry only |
The middle row is the interesting one, and it is the one people miss. A part with the debug fuse set is not inaccessible — it is accessible through a different protocol, using the same pin.
Why the debug fuse gets set
Two reasons, both mundane. A developer debugging a prototype enables it and forgets to clear it before the build goes to production. Or a product uses the debug interface in the field for diagnostics, which is unusual but not unheard of.
Either way, the fuse is set for engineering convenience, not for protection. It is not a security feature, and treating it as one overstates what it does — the debug interface is a full read and write path for anyone with the right adapter.
What the debug fuse actually gives away
When the debug interface is available and the lock bits are clear, it offers something a static read does not: the ability to halt the core and inspect registers and memory while the firmware runs. On a part with fourteen pins and one timer, that is often more informative than a dump, because it shows the code’s interaction with the outside world rather than its text.
When the lock bits are set, the debug access is removed along with everything else. The fuse enables the interface; the lock bits determine what the interface may do.
That two-layer arrangement is worth keeping straight: fuse = which door, lock bits = what is behind it.
The V suffix and the read
The low-voltage grade extends the operating range downward. It does not change the fuses, the lock bits, or the interface protocols. What it changes is margin.
On a small part running from an untrimmed internal oscillator at the bottom of its range, the interface answers slowly, and a programmer set for speed will produce intermittent failures that look like a bad chip. Lowering the clock rate on the programmer is the fix, and it costs seconds.
The same caution applies to the high-voltage path. The twelve-volt pulse has to be delivered cleanly; a clip lead with poor contact will produce a failure that reads as a dead die.
Establishing which case you have
- Power at the design rail, measured at the socket.
- Attempt serial programming. Note the exact failure mode — some programmers distinguish “no response” from “signature mismatch”.
- Measure the reset pin while the programmer asserts it. If it does not follow, a fuse reassigned it.
- Attempt the debug interface before reaching for the high-voltage adapter.
- Only if both fail, use high-voltage entry to read the fuse byte and restore it.
Step 4 is the one that saves an adapter and a socket. A debug probe is a smaller commitment than a twelve-volt programmer, and on this family it is frequently the correct answer.
Why the fuse byte is the record
Whatever path gets you in, read the fuse byte and write it down. It explains the access problem, it predicts whether the same part will be reachable after reprogramming, and it is the only evidence of how the device was built.
A device whose fuses say “debug enabled” was built by someone iterating; a device whose fuses say “reset disabled” was built to save a pin; a device whose fuses say both was built by someone who did not check. Each of those is a different story about the product, and all three are visible in one byte.
Related notes
- ATtiny24 and high-voltage entry — what the twelve-volt path can reach.
- ATtiny44 and the debug interface — the same mechanism in more detail.
- ATtiny25V and what software protection means — the layer above the fuses.
FAQ
Can the debug fuse be cleared over serial programming? No. Serial programming is what the fuse disables. It must be cleared over the debug interface or by high-voltage entry.
Does the debug fuse affect the lock bits? No. They are separate fields with separate effects. The fuse selects the interface; the lock bits govern what it may read.
Is a part with the debug fuse set insecure? It is accessible through a documented interface. Whether that is a security problem depends entirely on the lock bits.
Will high-voltage entry always work? It works on a healthy die regardless of fuses. It does not work on a damaged one, and it does not bypass lock mode 2.
Conclusion
Two fuses, one pin, three failure modes that present identically. The distinguishing evidence is the reset pin’s behaviour and the fuse byte, and the cheapest recovery path is usually the debug interface rather than the high-voltage adapter. Naming the case before acting is what keeps a small AVR from being written off as dead.