ATtiny48: A Small Core in a Wide Package
A small flash array in a wide package is not a contradiction. It is a part chosen for its pin count rather than its memory, and the combination says something about the product: many signals, little logic, no need for a large program.
Those are also the products that are easiest to examine, because the program is small enough to read in full and the pin count makes in-circuit access practical rather than awkward.
Why the mismatch exists
Three reasons appear repeatedly.
Driving a display or a keypad. Dozens of pins, each doing something trivial. The code is a lookup table and a loop, and it fits comfortably in a few kilobytes.
Interfacing many discrete signals. A bank of sensors or relays, each on its own pin, each with a short handler. Pin count is the constraint; memory is not.
Replacing glue logic. A part that reads eight inputs, applies a small truth table, and drives eight outputs. This is the case where the program is genuinely tiny and the package is doing all the work.
In each case the flash is small because the job is small, and the package is wide because the job is parallel.
| Property | Consequence |
|---|---|
| Many pins | In-circuit programming is usually practical |
| Small array | Full read takes seconds, double-reading costs nothing |
| Wide port set | Port configuration describes the product |
| No boot section | One protection field, binary outcome |
What the small array makes easy
A full read of an array this size takes seconds. There is no reason to skip the second pass, no reason to skip page-level comparison, and no reason to accept an unverified image.
More usefully, the whole program can be read rather than sampled. On a few kilobytes, a careful reader can account for every function, and unusual constructs stand out — a hand-written delay loop sized for a specific device, a table with an obvious stride, a checksum constant that matches an external chip.
That is a different activity from analysing a large image, where the work is statistical and the conclusions are probabilistic. Here it is exhaustive, and the conclusions can be certain.
The protection model, unchanged
Nothing about the package affects the protection. Two lock bits, four states, and one erase that clears them along with the array. No boot section, no self-programming path, no second container.
That means the reasoning is short and the outcome is binary: the array is readable, or it is not, and if it is not, the only operation that changes that returns a blank part.
The only thing the wide package changes is access. With twenty-eight pins, the programming interface is much less likely to be fully consumed by other functions, and a header is more likely to exist on the board. In-circuit entry is therefore the norm rather than the exception, which is a real practical advantage over the eight-pin members.
Reading a many-pin, small-memory device
- Supply at the design rail, measured at the socket.
- Signature and fuses. With this many pins, a part configured for an external clock is common — a wide package often accompanies a design that has room for a crystal.
- Lock byte.
- Array read in pages, twice each.
- Map the port accesses: which port is initialised as input, which as output, and in what order.
Step 5 is the one that turns the image into a description of the product. On a device whose purpose is driving many signals, the port configuration is the design. It says which pins are inputs, which are outputs, which have pull-ups enabled, and which are left alone — and that is more informative than the arithmetic in between.
What the pin map tells a customer
For a device that exists to interface with the physical world, the questions are usually about the interface: what does it expect, what does it drive, what are the timing requirements.
All three are answerable from the port configuration plus the code that reads and writes those ports. The memory size stops being interesting at that point, which is the correct outcome: the product’s behaviour is the subject, not its storage.
Related notes
- ATtiny48A and revision behaviour — what changes between dies of the same name.
- ATtiny88 and page boundaries — the larger array in the same package.
- ATtiny25 and shared pins — the opposite end of the package range.
FAQ
Does a wide package mean more memory? No. Memory size and pin count are independent choices in this family.
Is in-circuit programming easier here? Generally yes, because the programming pins are less likely to be fully committed to other functions.
Does the package change the lock bit behaviour? No. The protection model is identical across packages.
Why would a design use such a large package for such a small program? Because the pin count is the requirement and the program is incidental.
Conclusion
A small core in a wide package is a deliberate trade, and it makes examination easier rather than harder. The array fits in a single reading, the pins are accessible, and the port configuration describes the product more directly than its code does. On this kind of device, the interface is the design.