When an instruction has been written into a microcontroller through a programmer and the programmer is removed, the device can still execute that instruction, which means the instruction must have been saved somewhere inside the chip that retains it without power or supervision. Working out where, and in what form, is the purpose of this microcontroller internal storage structure analysis. The answer decides why some firmware survives decades on a shelf, why other data vanishes the moment a battery is pulled, and why a careless erase command can destroy a calibration table while leaving the program intact.
Modern microcontrollers organise internal storage into three regions. The program memory, flash on contemporary parts and EPROM or ROM on ancestors, holds the instruction stream; the data memory, SRAM, holds variables, stacks and peripheral buffers while power is present; and a small non-volatile block, EEPROM or dedicated flash rows, holds settings that must outlast a power cycle. The first region is the one a programmer writes during production, and the only one whose content defines what the machine does.
marks these regions on a real device map.Most microcontroller families separate program and data memory physically, the Harvard arrangement, so the core fetches instructions over one path while reading and writing data over another. The practical consequences are visible in every datasheet: the program counter addresses words or bytes in the flash space, while load and store instructions address the SRAM and register file space. Special function registers, the windows through which software drives peripherals, occupy the bottom of that data space, which is why writing a timer compare register looks identical to writing a variable.
shows an LED output register being written through this arrangement, the same mechanism the programming tutorial walks through step by step.The register file deserves its own sentence in this analysis. Special function registers are storage with behaviour attached: writing a timer register arms hardware, writing a UART register transmits a byte, and reading a status register samples live hardware state rather than a passive value. This is why a data-memory dump without the register map is nearly uninterpretable, and why our reconstruction reports always ship the peripheral map beside the memory map. It also explains a familiar debug experience, code that works on the bench and misbehaves in the field, since register-level effects, write-only registers and read-to-clear flags, behave differently under real interrupts and timing.
Because the two spaces are distinct, recovery work must treat them distinctly as well. A dump of program memory answers what the device does; a dump of EEPROM answers what it has been configured with. The memory operation page continues down to the cell level, explaining how a single bit is stored as a charge state.
The three regions behave differently under stress. Flash keeps its charge for decades but is erased in whole pages or sectors, typically 512 bytes to a few kilobytes, so rewriting one byte means erasing and restoring a block. SRAM holds its state only while powered, and its residual patterns after power removal have been used in research attacks, though they fade within seconds to minutes at room temperature. EEPROM erases by page or byte but with a limited endurance, on the order of a hundred thousand cycles, which is why firmware writers wear-level their settings. On top of all three sit protection layers, lock bits and fuse bytes, that decide what an external reader may see, and those layers are family-specific enough that our protection-method survey treats them as a taxonomy of their own.
Every engagement starts by placing the target on this map: which region holds the asset, which erase unit would touch it, and which protection byte governs access. The answers branch quickly. A service counter in EEPROM is recoverable from a part whose program was already wiped; a key stored in a locked flash region is a different conversation; and a variable that should have been in EEPROM but was placed in SRAM by a coding mistake means the data ended at every power cut, a diagnosis that saves customers from blaming the hardware.
The architecture introduction gives the block-level view, the software-file service shows what a properly verified extraction produces, and the source reconstruction path explains when a dump can be lifted back into readable form. Send us the part number and a description of what the device stores, and we will tell you which of these regions your case actually turns on.