readme.txt

来自「这本书里共11章」· 文本 代码 · 共 16 行

TXT
16
字号
8051 von Neumann Memory Example Program
The following example program shows how you can build an application for a target with CODE, XDATA, and von Neumann memory.

The 8051 is a Harvard architecture. CODE memory and DATA memory are physically separate memory areas. There is no way to write to the CODE memory. You can, of course, AND the /PSEN and /RD lines of the 8051 and connect the output to the OE of a RAM. The RAM is then mapped into the CODE and DATA space of the 8051. You can write program code into the RAM and execute it.

This example uses the following memory map:

CODE:  0x0000-0xDFFF (ROM)
CODE:  0xE000-0xFFFF ('von Neumann' RAM)

XDATA: 0x0000-0xDFFF (RAM)
XDATA: 0xE000-0xFFFF ('von Neumann' RAM)

The program uses the XBYTE macro to write an LJMP 0xE000 instruction at address 0xE000. Then, the program calls the function at address 0xE000. This function never returns, of course.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?