论文部分内容阅读
MCS-48单片机的存贮器分为数据存贮器和程序存贮器。本文着重说明单片机的数据存贮器与程序存贮器的区别、寻址,编程和扩展(包括超寻址扩展)。单片机与其他微型机的重大区别之一,就是数据存贮器与程序存贮器在逻辑上及物理上是分开的。其中数据存贮器在运行时,可以读或写操作,但不能运行程序,而程序存贮器总是只读的,不能在运行时写入数据。本文提出了一种接口方法,利用RAM实现对单片机的数据存贮器与程序存贮器的混合扩展。使RAM既能存取数据,又能运行程序,给单片机的开发、应用带来方便。
MCS-48 microcontroller’s memory is divided into data memory and program memory. This article focuses on the difference between single-chip data memory and program memory, addressing, programming and expansion (including the super-address expansion). One of the major differences between microcontrollers and other microcomputers is that the data memory and the program memory are logically and physically separated. The data memory can be read or written while running, but the program can not be run. The program memory is always read-only and can not be written at runtime. This paper presents an interface method, the use of RAM to achieve SCM data memory and program memory mixed expansion. So RAM can access data, but also run the program, to SCM development, application brings convenience.