MCS-51单片机存储器扩展与C51程序设计详解

需积分: 0 6 下载量 158 浏览量 更新于2024-08-09 收藏 5.74MB PDF 举报
在"单片机原理与应用及C51程序设计"这本书中,第六章详细探讨了单片机扩展数据存储器的电路设计。MCS-51系列单片机,如8031,通常使用P2端口的高8位地址和P0端口的低8位地址来寻址外部存储器,这包括程序存储器和数据存储器。由于它们的扩展方法与程序存储器类似,但控制信号不同,用户需要参考芯片的数据手册来配置相应的电路连接。 在实际应用中,系统设计常常需要同时扩展程序存储器和数据存储器,甚至I/O接口,可能涉及多片器件。为了确保数据传输的有序性和避免冲突,关键在于合理分配外部存储器的空间,使得程序存储器和数据存储器在不同芯片上占用的地址空间互不重叠。例如,图6.6所示的电路图展示了如何扩展一片程序存储器(如2764)和一片数据存储器(如6264),这两者的地址范围都是0000H~1FFFH,但通过不同的控制信号(PSEN、RD和WR)以及使用MOVC和MOVX指令,CPU能够区分并正确访问这两类存储器。 单片机在访问外部存储器时,通常需要经过两个步骤:首先通过片选信号("片选")选择特定芯片,然后通过芯片内部地址线的译码("字选")确定具体存储单元。这种方法确保了在多片存储器共存的情况下,数据访问的准确性和一致性。 此外,本书还强调了实际操作中的编程技巧,例如在第八、九章提供了大量设计性和系统设计实例,采用汇编语言和C语言对照的方式编写,有助于读者理解并熟练运用这两种编程语言进行单片机应用开发。书中内容覆盖了单片机的全面知识,包括其概述、内部结构、指令系统、接口技术以及应用系统的实际设计,适合于本科院校电气信息类学生的学习,也作为工程师的实用参考书。本书强调应用性和实践性,旨在培养学生的创新能力,提升他们的实际操作技能。

翻译 This is Elsevier's new document class for typeset journal articles, elsarticle.cls. It is now accepted for submitted articles, both in Elsevier's electronic submission system and elsewhere. Elsevier's previous document class for typeset articles, elsart.cls, is now over 10 years old. It has been replaced with this newly written document class elsarticle.cls, which has been developed for Elsevier by the leading TeX developer STM Document Engineering Pvt Ltd. elsarticle.cls is based upon the standard LaTeX document class article.cls. It uses natbib.sty for bibliographical references. Bugs and problems with elsarticle.cls may be reported to the developers of the class via elsarticle@stmdocs.in. The file manifest.txt provides a list of the files in the elsarticle bundle. The following are the main files available: - elsarticle.dtx, the dtx file - elsdoc.pdf, the user documentation - elsarticle-template-num.tex, template file for numerical citations - elsarticle-template-harv.tex, template file for name-year citations - elsarticle-template-num-names.tex, template file for numerical citations + new natbib option. Eg. Jones et al. [21] - elsarticle-num.bst, bibliographic style for numerical references - elsarticle-harv.bst, bibliographic style for name-year references - elsarticle-num-names.bst, bibliographic style for numerical referencces + new natbib option for citations. To extract elsarticle.cls from *.dtx: latex elsarticle.ins The documentation file is elsdoc.tex in the contrib directory. To compile it: 1. pdflatex elsdoc 2. pdflatex elsdoc 3. pdflatex elsdoc

2023-06-01 上传
2023-05-23 上传