8051 memory access

While the 8051 has 4 kilobytes of built-in ROM (other variants may have 8 kilobytes or none at all), it is also capable of addressing 64 kilobytes of external code memory and 64 kilobytes of external data memory.

In the Harvard architecture, the code memory and data memory are separate, whereas they are combined into one block of memory in the von Neumann architecture.

Reading external code memory