PostHeaderIcon ATtiny2313A: Three Ways to Name the Silicon, and Only One Is Stamped on It

A trailing letter is the least dramatic change in a part number and the one that causes the most confusion in a recovery. It does not normally mean a different memory size or a different pinout. It marks a revision: the same design with corrected or improved silicon behind it, sometimes with a wider specification and almost always with its own errata list.

For the person holding the part, that creates a problem with three separate answers. What the package says, what the interface reports, and what the calibration value implies are three different statements about identity, and they do not have to agree.

What a revision letter changes and what it does not

Across this family the storage map and the peripheral set stay fixed: 2 KB of flash, 128 bytes of SRAM, 128 bytes of EEPROM, twenty pins, a USART, an SPI port, a universal serial interface, two timers, an analogue comparator. Code written for one revision runs on the other, because the instruction set and the register map are the same.

What moves is the specification envelope and the defect list. Supply range, maximum frequency at a given voltage, current consumption, the behaviour of a peripheral under a corner condition — these are the things a revision adjusts, and they are exactly the things a fuse configuration encodes. That is the practical consequence: a fuse map copied from a non-A device onto an A device may put the newer part outside its specified operating point even though every bit is a legal bit.

property same across revisions may differ
flash, SRAM, EEPROM size yes —
pinout and package yes —
instruction set yes —
signature bytes — possible
oscillator calibration — yes, per device and per revision
fuse defaults and safe limits — yes
errata — yes

The signature answers a narrower question than people expect

The three signature bytes report the manufacturer, the family and the memory class. They are read with a dedicated command that does not consume a flash address, which makes them the cheapest identity check available and the first thing to obtain.

What they do not report is the revision in any reliable form. Two devices built from different masks can return the same signature, and the same part number from two production runs can differ in behaviour without differing in signature. So a matching signature proves the interface works and the family is right. It does not prove the marking is honest.

The calibration value is the per-device fingerprint

Every one of these parts is calibrated at test, and the result is stored in a row that is separate from the flash array. That value tunes the internal oscillator, and because it is measured rather than assigned, it varies from device to device within a distribution set by the process.

Two uses follow. The first is functional: an image restored onto a different physical part inherits the donor’s calibration unless the row is rewritten, and the timing consequences range from negligible to fatal depending on whether the design depends on the internal oscillator for a communication rate.

The second is forensic. A batch of genuine parts from one production period has calibration values clustered in a predictable band. A part whose marking says one revision, whose signature says the family, and whose calibration value sits far outside the band for that revision is worth a second look — that combination is characteristic of remarked or refurbished material, which is common in the second-hand market this family ends up in.

The marking is a claim, not a measurement

Laser marking is applied after test and can be removed and reapplied. On a twenty-pin plastic package the operation is not difficult, and the economic incentive is real because the A revision often trades at a different price from the older part.

That does not make every package suspect. It does mean the marking should be treated as the weakest of the three sources rather than the primary one, and that a report which records only the marking is recording the customer’s belief rather than the silicon’s answer.

Reading order for an identity dispute

When the question is specifically «which revision is this», the sequence that settles it without destroying evidence:

  1. Read the signature. Establish that the interface works and the family is correct.
  2. Read the fuse and lock bytes as found. They state the operating point the device was configured for, and comparing them against the defaults for the claimed revision is informative.
  3. Read the calibration row. Compare against the expected band.
  4. Read the flash, if the lock state allows it, and check the oscillator setup in the initialisation code. A build that programs the divider or selects an external clock is telling you what it expected the part to be.
  5. Only then compare against the marking.

Steps 1 to 3 are non-destructive. Step 4 may require the erase, so it comes after the decision about whether the flash contents are needed.

What the recovery returns

For a heximal-level job the deliverable is the flash image with the correct length for a 2 KB array, the EEPROM as a separate file, the signature, the calibration value and the fuse and lock state as read, and a disassembly annotated with the register configuration the image assumes.

Recording the calibration value is not decoration. It is the only per-device datum in the set, it cannot be reconstructed from the image, and a customer who later moves the image to another unit needs it to restore the timing the design was built around.

The unsigned variant’s own behaviour under erase is covered in ATtiny2313 code recovery. Where the same package carries 4 KB, ATtiny4313 code recovery follows the migration. The same identification discipline applied to a part with an ambiguous suffix appears in ATtiny48V firmware recovery.

FAQ

Does the A suffix mean more memory? No. The array size is unchanged across the revisions of this part; the suffix marks silicon revision and with it the specification envelope.

Can a fuse map be copied between revisions? The bits will be accepted, but the resulting operating point may be outside the newer part’s specification. Fuse maps belong to a part, not to a family.

Why does the calibration value matter if the code runs? It sets the internal oscillator. Code that runs at the wrong frequency may still execute, and still fail every timing-sensitive function it performs.

Conclusion

Identity on a revised part is a three-way question with three partial answers: the marking states a claim, the signature confirms a family, and the calibration value places a specific device in a production distribution. Read all three, in that order of reliability rather than the order printed on the box, and the revision question stops being a matter of opinion.

Comments are closed.