温度报警器外文翻译.doc_第1页
温度报警器外文翻译.doc_第2页
温度报警器外文翻译.doc_第3页
温度报警器外文翻译.doc_第4页
温度报警器外文翻译.doc_第5页
已阅读5页,还剩7页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

毕业设计(论文)外文翻译题 目: 基于51单片机温度报警器的设计英文题目: 51 mcu-based design of a temperature alarm 系 别: _ 信息工程系_专 业: _ 电子信息工程_班 级: _ _学 号: _ _ 姓 名: _ _ _指导老师: _ _ _ 填表日期: _2010.12.18_ 单片机 单片机是指一个集成在一块芯片上的完整计算机系统。尽管他的大部分功能集成在一块小芯片上,但是它具有一个完整计算机所需要的大部分部件:cpu、内存、内部和外部总线系统,目前大部分还会具有外存。同时集成诸如通讯接口、定时器,实时时钟等外围设备。而现在最强大的单片机系统甚至可以将声音、图像、网络、复杂的输入输出系统集成在一块芯片上。 单片机也被称为微控制器(microcontroller),是因为它最早被用在工业控制领域。单片机由芯片内仅有cpu的专用处理器发展而来。最早的设计理念是通过将大量外围设备和cpu集成在一个芯片中,使计算机系统更小,更容易集成进复杂的而对提及要求严格的控制设备当中。intel的z80是最早按照这种思想设计出的处理器,从此以后,单片机和专用处理器的发展便分道扬镳。 早期的单片机都是8位或4位的。其中最成功的是intel的8031,因为简单可靠而性能不错获得了很大的好评。此后在8031上发展出了mcs51系列单片机系统。基于这一系统的单片机系统直到现在还在广泛使用。随着工业控制领域要求的提高,开始出现了16位单片机,但因为性价比不理想并未得到很广泛的应用。90年代后随着消费电子产品大发展,单片机技术得到了巨大的提高。随着intel i960系列特别是后来的arm系列的广泛应用,32位单片机迅速取代16位单片机的高端地位,并且进入主流市场。而传统的8位单片机的性能也得到了飞速提高,处理能力比起80年代提高了数百倍。目前,高端的32位单片机主频已经超过300mhz,性能直追90年代中期的专用处理器,而普通的型号出厂价格跌落至1美元,最高端的型号也只有10美元。当代单片机系统已经不再只在裸机环境下开发和使用,大量专用的嵌入式操作系统被广泛应用在全系列的单片机上。而在作为掌上电脑和手机核心处理的高端单片机甚至可以直接使用专用的windows和linux操作系统。 8051单片机由运算器、控制器、寄存器等组成。运算器以完成二进制的算术/逻辑运算部件alu为核心,再加上暂存器tmp、累加器acc、寄存器b、程序状态标志寄存器psw及布尔处理器。累加器acc是一个八位寄存器,它是cpu中工作最频繁的寄存器。在进行算术、逻辑运算时,累加器acc往往在运算前暂存一个操作数(如被加数),而运算后又保存其结果(如代数和)。寄存器b主要用于乘法和除法操作。标志寄存器psw也是一个八位寄存器,用来存放运算结果的一些特征,如有无进位、借位等。其每位的具体含意如下所示。psw cy ac fo rs1 rs0 ovp对用户来讲,最关心的是以下四点。1. 进位标志cy(psw7)。它表示了运算是否有进位(或借位)。如果操作结果在最高位有进位(加法)或者借位(减法),则该位为1,否则为0。2.2. 辅助进位标志ac。又称半进位标志,它反映了两个八位数运算低四位是否有半进位,即低四位相加(或减)有否进位(或借位),如有则ac为1状态,否则为0。3. 溢出标志位ov。mcs1反映带符号数的运算结果是否有溢出,有溢出时,此位为1,否则为0。4. 奇偶标志p。反映累加器acc内容的奇偶性,如果acc中的运算结果有偶数个1(如11001100b,其中有4个1),则p为0,否则,p=1。psw的其它位,将在以后再介绍。由于psw存放程序执行中的状态,故又叫程序状态字,运算器中还有一个按位(bit)进行逻辑运算的逻辑处理机(又称布尔处理机)。其功能在介绍位指令时再说明。关于控制器,控制器是cpu的神经中枢,它包括定时控制逻辑电路、指令寄存器、译码器、地址指针dptr及程序计数器pc、堆栈指针sp等。这里程序计数器pc是由16位寄存器构成的计数器。要单片机执行一个程序,就必须把该程序按顺序预先装入存储器rom的某个区域。单片机动作时应按顺序一条条取出指令来加以执行。因此,必须有一个电路能找出指令所在的单元地址,该电路就是程序计数器pc。当单片机开始执行程序时,给pc装入第一条指令所在地址,它每取出一条指令(如为多字节指令,则每取出一个指令字节),pc的内容就自动加1,以指向下一条指令的地址,使指令能顺序执行。只有当程序遇到转移指令、子程序调用指令,或遇到中断时,pc才转到所需要的地方去。8051 cpu指定的地址,从rom相应单元中取出指令字节放在指令寄存器中寄存,然后,指令寄存器中的指令代码被译码器译成各种形式的控制信号,这些信号与单片机时钟振荡器产生的时钟脉冲在定时与控制电路中相结合,形成按一定时间节拍变化的电平和时钟,即所谓控制信息,在cpu内部协调寄存器之间的数据传输、运算等操作。再来介绍一下存储器,存储器是单片机的又一个重要组成部分,有一种存储容量为256个单元的存储器结构。其中每个存储单元对应一个地址,256个单元共有256个地址,用两位16进制数表示,即存储器的地址(00hffh)。存储器中每个存储单元可存放一个八位二进制信息,通常用两位16进制数来表示,这就是存储器的内容。存储器的存储单元地址和存储单元的内容是不同的两个概念,不能混淆。单片机还包括程序存储器。程序是控制计算机动作的一系列命令,单片机只认识由“0”和“1”代码构成的机器指令。如前述用助记符编写的命令mov a,#20h,换成机器认识的代码74h、20h:(写成二进制就是01110100b和00100000b)。在单片机处理问题之前必须事先将编好的程序、表格、常数汇编成机器代码后存入单片机的存储器中,该存储器称为程序存储器。程序存储器可以放在片内或片外,亦可片内片外同时设置。由于pc程序计数器为16位,使得程序存储器可用16位二进制地址,因此,内外存储器的地址最大可从0000h到ffffh。8051内部有4k字节的rom,就占用了由0000h0fffh的最低4k个字节,这时片外扩充的程序存储器地址编号应由1000h开始,如果将8051当做8031使用,不想利用片内4krom,全用片外存储器,则地址编号仍可由0000h开始。不过,这时应使用ea脚,保持低电平。当ea为高电平时,用户在0000h至0fffh范围内使用内部rom,大于0fffh后,单片机cpu自动访问外部程序存储器。单片机的数据存储器由读写存储器ram组成。其最大容量可扩展到64k,用于存储实时输入的数据。8051内部有256个单元的内部数据存储器,其中00h7fh为内部随机存储器ram,80hffh为专用寄存器区。实际使用时应首先充分利用内部存储器,从使用角度讲,搞清内部数据存储器的结构和地址分配是十分重要的。因为将来在学习指令系统和程序设计时会经常用到它们。8051内部数据存储器地址由00h至ffh共有256个字节的地址空间,该空间被分为两部分,其中内部数据ram的地址为00h7fh(即0127)。而用做特殊功能寄存器的地址为80hffh。在此256个字节中,还开辟有一个所谓“位地址”区,该区域内不但可按字节寻址,还可按“位(bit)”寻址。对于那些需要进行位操作的数据,可以存放到这个区域。从00h到1fh安排了四组工作寄存器,每组占用8个ram字节,记为r0r7。究竟选用那一组寄存器,由前述标志寄存器中的rs1和rs0来选用。在这两位上放入不同的二进制数,即可选用不同的寄存器组。特殊功能寄存器(sfr)的地址范围为80hffh。在mcs51中,除程序计数器pc和四个工作寄存器区外,其余21个特殊功能寄存器都在这sfr块中。其中5个是双字节寄存器,它们共占用了26个字节。各特殊功能寄存器的符号和地址。其中带*号的可位寻址。特殊功能寄存器反映了8051的状态,实际上是8051的状态字及控制字寄存器。用于cpu psw便是典型一例。这些特殊功能寄存器大体上分为两类,一类与芯片的引脚有关,另一类作片内功能的控制用。与芯片引脚有关的特殊功能寄存器是p0p3,它们实际上是4个8位锁存器(每个i/o口一个),每个锁存器附加有相应的输出驱动器和输入缓冲器就构成了一个并行口。mcs51共有p0p3四个这样的并行口,可提供32根i/o线,每根线都是双向的,并且大都有第二功能。其余用于芯片控制的寄存器中,累加器a、标志寄存器psw、数据指针dptr等的功能前已提及。下面再来谈论如何让单片机如何正常工作。单片机要正常运作,事先需编制程序,再把程序放入存贮器中,然后由cpu执行该程序。程序是由指令组成的,指令的基本组成是操作码和操作数。单片机的品种很多,设计时怎样表示操作码和操作数,都有各自的规定,再有指令代码也各不相同,因此,必须对所选单片机的全部指令,也就是所谓“指令系统”,有足够的了解。各个系列的单片机虽然有不同的指令系统,但也有其共同性。掌握一种单片机的指令系统,对其它系列单片机可以起到触类旁通的作用。mcs51单片机应用广泛、派生品种多、具有代表性。所以,这里以mcs51系列的指令系统为例说明“指令”的组成和应用。例子1,mov a,#20h:这条指令表示把20h这个数送入累加器a中(一个特殊功能寄存器)。例子2,add a,70h:这条指令表示把累加器a中的内容(在上例中送入的#20h)和存贮器中地址为70h单元中的内容(也是一个数字),通过算术逻辑单元(英文缩写为alu)相加,并将结果保留在a中。这里mov、add等称为操作码,而a、#20h、70h等均称为操作数。在汇编语言程序中,操作码通常由英文单词缩写而成,这样有助于记忆,所以又称助记符。如mov就是英文单词move的缩写,含有搬移的意思;而add即为英文单词,其意为相加。因此,对于略懂英语的用户,掌握单片机指令的含意是较为方便的。操作数有多种表示法,如以上的#20h称为立即数,即20h就是真正的操作数。而70h是存贮器中某个单元的地址,在该单元中,放着操作数(比如说是3ah),adda,70h不是将70h和a中的内容相加,而是从存贮器70h单元中将3ah取出和a中的内容相加。由上可知,要找到实际操作数,有时就要转个弯,甚至转几个弯,这个过程称为寻址4:操作数放在ram某个单元中,该单元的地址又放在寄存器r0或r1中。 如果ram的地址大于256,则该地址存放在16位寄存器dptr(数据指针)中,此时在寄存器名前加符号来表示这种间接寻址。如mov a, r0。其它还有变址寻址、相对寻址、位寻址等,待以后再详细介绍。可能有人会问,在指令中直接给出实际操作数,不是简单明了吗?为什么还要用其它几种寻址方式呢?这是因为在编制程序时很难一下子就给出操作数。如用单片机控制温度时,时时需要将给定的控制温度(如20)减去环境温度,而环境温度时时有变化,显然无法在程序指令中给出,只有通过一定方式,将其送入某个输入/输出口,再存放在某个寄存器中,这就必须用到寄存器寻址。又如要进行算术运算,要计算每班学员各科成绩的平均值,如果把每个学员的各科都编一个程序,在程序中直接给出该学员各科成绩,再求平均值,显然太麻烦。这里可以编一个求平均成绩的通用程序,把每位学员的成绩送入存贮器的各个单元中,这时可采取直接寻址,一个程序可供每个学员用,不是更方便吗?所以,寻址方式越多,编制程序就越方便、灵活,适用范围就越广,寻址有如找人,如被找的人有手机、bp机、座机电话等多种联系方式则就容易找到他,单片机也是如此,寻址方式越多,找操作数越方便,单片机的功能就越强。前面介绍51系列单片机的寻址方式时,常遇到单片机内部的一些寄存器、累加器a、通用寄存器r0r7、数据指针dptr和存贮器等。在以后介绍指令时,数据就要在这些寄存器、存贮器之间传送,或者进行运算。因此,编制程序就需熟悉单片机的内部结构。8051单片机的内部总体结构其基本特性:8位cpu、片内振荡器、4k字节rom、128字节ram、21个特殊功能寄存器、32根i/o线可寻址的64k字节外部数据、程序存贮空间、2个16位定时器、计数器,中断结构:具有二个优先级、五个中断源、一个全双口串行口位寻址(即可寻找某位的内容)功能,适于按位进行逻辑运算的位处理器。除128字节ram、4k字节rom和中断、串行口及定时器模块外,还有4组i/o口p0p3,余下的就是cpu的全部组成。把4krom换为eprom就是8751的结构,如去掉rom/eprom部分即为8031的框图,如果将rom置换为flash存贮器或eeprom,或再省去某些i/o,即可得到51系列的派生品种,如89c51、at89c2051等单片机的框图。单片机各部分是通过内部的总线有机地连接起来的。下面再谈at89c51单片机性能介绍。at89c51是一种带4k字节闪烁可编程可擦除只读存储器(fperomflash :programmable and erasable read only memory)的低电压,高性能cmos8位微处理器,俗称单片机。该器件采用atmel高密度非易失存储器制造技术制造,与工业标准的mcs-51指令集和输出管脚相兼容。由于将多功能8位cpu和闪烁存储器组合在单个芯片中,atmel的at89c51是一种高效微控制器,为很多嵌入式控制系统提供了一种灵活性高且价廉的方案。 1.主要特性:与mcs-51兼容,4k字节可编程闪烁存储器,寿命:1000写/擦循环,数据保留时间:10年,全静态工作:0hz-24hz,三级程序存储器锁定,128*8位内部ram,32可编程i/o线,两个16位定时器/计数器,5个中断源,可编程串行通道,低功耗的闲置和掉电模式,片内振荡器和时钟电路。2.管脚说明:vcc:供电电压,gnd:接地,p0口:p0口为一个8位漏级开路双向i/o口,每脚可吸收8ttl门电流。当p1口的管脚第一次写1时,被定义为高阻输入。p0能够用于外部程序数据存储器,它可以被定义为数据/地址的第八位。在fiash编程时,p0 口作为原码输入口,当fiash进行校验时,p0输出原码,此时p0外部必须被拉高。 p1口:p1口是一个内部提供上拉电阻的8位双向i/o口,p1口缓冲器能接收输出4ttl门电流。p1口管脚写入1后,被内部上拉为高,可用作输入,p1口被外部下拉为低电平时,将输出电流,这是由于内部上拉的缘故。在flash编程和校验时,p1口作为第8位地址接收。 p2口:p2口为一个内部上拉电阻的8位双向i/o口,p2口缓冲器可接收,输出4个ttl门电流,当p2口被写“1”时,其管脚被内部上拉电阻拉高,且作为输入。并因此作为输入时,p2口的管脚被外部拉低,将输出电流。这是由于内部上拉的缘故。p2口当用于外部程序存储器或16位地址外部数据存储器进行存取时,p2口输出地址的高八位。在给出地址“1”时,它利用内部上拉优势,当对外部8位地址数据存储器进行读写时,p2口输出其特殊功能寄存器的内容。p2口在flash编程和校验时接收高8位地址信号和控制信号。p3口:p3口管脚是8个带内部上拉电阻的双向i/o口,可接收输出4个ttl门电流。当p3口写入“1”后,它们被内部上拉为高电平,并用作输入。作为输入,由于外部下拉为低电平,p3口将输出电流(ill)这是由于上拉的缘故。p3口也可作为at89c51的一些特殊功能口:p3.0 rxd(串行输入口)、p3.1 txd(串行输出口)、p3.2 /int0(外部中断0)、p3.3 /int1(外部中断1)、p3.4 t0(记时器0外部输入)、p3.5 t1(记时器1外部输入)、p3.6 /wr(外部数据存储器写选通)、p3.7 /rxd(外部数据存储器读选通)。p3口同时为闪烁编程和编程校验接收一些控制信号。rst:复位输入。当振荡器复位器件时,要保持rst脚两个机器周期的高电平时间。ale/prog:当访问外部存储器时,地址锁存允许的输出电平用于锁存地址的地位字节。在flash编程期间,此引脚用于输入编程脉冲。在平时,ale端以不变的频率周期输出正脉冲信号,此频率为振荡器频率的1/6。因此它可用作对外部输出的脉冲或用于定时目的。然而要注意的是:每当用作外部数据存储器时,将跳过一个ale脉冲。如想禁止ale的输出可在sfr8eh地址上置0。此时, ale只有在执行movx,movc指令是ale才起作用。另外,该引脚被略微拉高。如果微处理器在外部执行状态ale禁止,置位无效。 /psen:外部程序存储器的选通信号。在由外部程序存储器取指期间,每个机器周期两次/psen有效。但在访问外部数据存储器时,这两次有效的/psen信号将不出现。/ea/vpp:当/ea保持低电平时,则在此期间外部程序存储器(0000hffffh),不管是否有内部程序存储器。注意加密方式,/ea将内部锁定为reset;当/ea端保持高电平时,此间内部程序存储器。在flash编程期间,此引脚也用于施加12v编程电源(vpp)。xtal1:反向振荡放大器的输入及内部时钟工作电路的输入。 xtal2:来自反向振荡器的输出。振荡器:xtal1和xtal2分别为反向放大器的输入和输出。该反向放大器可以配置为片内振荡器。石晶振荡和陶瓷振荡均可采用。如采用外部时钟源驱动器件,xtal2应不接。有余输入至内部时钟信号要通过一个二分频触发器,因此对外部时钟信号的脉宽无任何要求,但必须保证脉冲的高低电平要求的宽度。 芯片擦除: 整个perom阵列和三个锁定位的电擦除可通过正确的控制信号组合,并保持ale管脚处于低电平10ms 来完成。在芯片擦操作中,代码阵列全被写“1”且在任何非空存储字节被重复编程以前,该操作必须被执行。此外,at89c51设有稳态逻辑,可以在低到零频率的条件下静态逻辑,支持两种软件可选的掉电模式。在闲置模式下,cpu停止工作。但ram,定时器,计数器,串口和中断系统仍在工作。在掉电模式下,保存ram的内容并且冻结振荡器,禁止所用其他芯片功能,直到下一个硬件复位为止。about single-chip refers to an integrated single-chip at a chip on the integrity of computer systems. even though most of his features at a small chip on, but it has a complete computer most of the necessary components: cpu, memory, internal and external bus system, most will have the core. at the same time, such as integrated communication interfaces, timers, real-time clock and other peripheral equipment. and now the most powerful single-chip microcomputer system can even voice, image, network, complex input and output of system integration on a single chip. also known as single-chip microcontroller, because it is the first to be used in the field of industrial control. single-chip by chip dedicated processor cpu only evolved. the first design concept through to a large number of peripherals and cpu in a single chip, the computer system so that smaller, more easily integrated into the complex and demanding with regard to the reference control devices. intel the z80 is one of the earliest in accordance with this idea to design the processor, from then on, the mcu and the development of a dedicated processor parted ways. early single-chip 8-bit or all of four. one of the most successful are intels 8031, because the performance of a good reliable and easy access to great acclaim. later on in 8031 developed a series of single-chip microcomputer system mcs51. based on single-chip microcomputer system of the system is still widely used until now. as the field of industrial control requirements improve, beginning a 16-bit single-chip, but not ideal because cost-effective has not been very widely used. after the 90s with the big consumer electronics product development, single-chip technology has been enormous improve. with intel i960 series, especially the later series of widely used arm, 32-bit single-chip 16-bit single-chip microcomputer rapidly replacing high-end status, and enter the mainstream market. whereas the traditional 8-bit mcu performance has been the rapid increase in processing power compared to the 80s to raise a few hundred times. at present, the high-end single-chip 32 ghz has been more than 300mhz, the performance of close on the heels of the mid-90s dedicated processor, while the general model ex-factory price dropped to one u.s. dollars, the most high-end models, only 10 u.s. dollars. contemporary single-chip microcomputer system is no longer only in the bare-metal environment development and use of a large number of dedicated embedded operating system is widely used in on a full range of single-chip microcomputer. in the cell phone as a handheld computer and deal with high-end single-chip core can even direct the use of a dedicated windows and linux operating systems.single-chip 8051 cpu by the operator and controller. calculator to complete the binary arithmetic/logic operations parts alu at the core, together with registers on tmp, accumulator acc, register b, the procedure register psw status symbol and boolean processor. accumulator acc is an eight registers, which are the most frequent job of cpu registers. in arithmetic, logic operations, the accumulator acc is often a temporary one at pre-computing operands (such as being summand), and computing and then save the results (such as algebra and). register b mainly used for multiplication and division operations. psw register is also a mark of eight registers, used to store the results of some of the characteristics of computing, if not binary, and so on, and borrow. its specific meaning of each are shown below. psw cy ac fo rs1 rs0 ov-p to users, the most concerned about are the following four. first of all, the binary symbol cy (psw7). whether or not it has express a binary operator (or borrow bits). if the operation results at the highest level there is binary (addition) or borrow (subtraction), the bit is 1, otherwise to 0. secondly, auxiliary binary symbol ac. also known as semi-binary logo, it reflects both the number eight computing whether there is a half low of four binary, that is, the sum of the four low (or minus) has not binary (or borrow), and if there is ac for one status, otherwise to 0. third, the overflow flag ov. mcs-1 to reflect the number of operator symbols with the results of whether there is any spill, there is spill, this bit is 1, otherwise to 0. fourth, the parity symbol p. reflect the content of accumulator acc parity, if the acc in an operation that results in even-numbered months have one (such as 11001100b, one of four there is one), then p is 0, otherwise, p = 1. psw other places, will introduce at a later time. psw stored procedures because of the status, it is also called the program status character have a calculator in bitwise (bit) to carry out logic operations logic processor (also known as boolean processor). its function in the introduction explain-bit instruction. about the controller, cpu controller is the nerve center, which includes the timing control logic circuit, an instruction register, decoder, address pointer dptr and the program counter pc, stack pointer sp and so on. this program counter pc is 16-bit register consisting of counters. to single-chip implementation of a program, it is necessary to put the program into memory in advance in order rom of an area. single chip action should be taken out of a sequence of commands to be implemented. therefore, we must have a circuit to find out where the command module address, the circuit is the program counter pc. when beginning the implementation of single-chip program, to the pc load instructions where the first address, it took out one of each command (such as for multi-byte instructions, each took out a command byte), pc will automatically add the contents of one to point to the next instruction address, so that instruction can be the order of implementation. only when the process encountered in the transfer of instructions, subroutine call instructions, or encountered failure (after the introduction), pc only needed to go to go places. 8051 cpus designated address, the corresponding unit from the rom command byte out on the instruction register in the storage, then, an instruction register of the instruction decoder code was translated into various forms of control signals, these single-chip signal and clock oscillator generated clock pulse in timing and control circuit combination of a certain period of time according to changes in electric calm beat the clock, the so-called control of information in the cpu internal coordination between the register data transfer, computing and other operations. then tell us about memory, memory mcu are also an important component of has a storage capacity of 256 units of memory structure. one of each memory cell corresponds to an address, a total of 256 unit 256 addresses, use two 16 hexadecimal numbers, that is, memory address (00h ffh). memory of each memory cell can store one of eight binary information, usually using two 16-band number to express, and this is the contents of memory. memory storage unit address and the contents of memory cells are two different concepts, should not confuse. single-chip also includes the program memory. process control computers are a series of action commands, microcontroller know only by 0 and 1 consisting of machine code instructions. such as the preparation of the foregoing order with mnemonic mov a, # 20h, know the code into the machine 74h, 20h: (written in binary is 01110100b and 00100000b). problem in scm is required before the deal will be good procedures, tables, constants compiled into machine code into single-chip memory, the memory referred to as program memory. program memory can be put on the chip or chip, chip-chip can also be set up simultaneously. as the pc program counter to 16, making the procedure available for 16-bit binary memory addresses, therefore, both inside and outside the memory address from 0000h to the largest ffffh. 8051 has 4k bytes of internal rom, on the occupied by the 0000h 0fffh minimum 4k bytes, when the expansion of chip program memory address number shall be 1000h start, if you use 8051 as a 8031, do not want to use chip 4krom , all used memory chip, then the address code can still start from 0000h.however, when ea feet should be used to maintain the low level. when ea is high, the user 0fffh at 0000h to use internal rom, more than 0fffh, the single-chip cpu automatic access to external program memory. single-chip data memory ram memory by reading and writing components. its maximum capacity can be expanded to 64k, used to store real-time input data. 8051 has 256 units within the internal data memory, one of 00h 7fh for internal random access memory ram, 80h ffh area dedicated registers. actual use should be the first full use of internal memory, from the use of perspective, to understand the structure of internal data memory and address of the distribution is very important. since studying at the future directions of design systems and procedures will be frequently used them. 8051 internal data memory address 00h to ffh by a total of 256 bytes of address space, the space was divided into two parts, one of the internal data ram address 00h 7fh (that is, 0 127). the special function registers to do with the address 80h ffh. in this 256-byte also has opened up a so-called digital address area, the region can not only byte addressable, but also by the bit (bit) addressable. for those required to carry out the operation of the data bit can be stored into the region. from 00h to 1fh arranged group of four working registers, each occupied by 8-byte ram, recorded as r0 r7. whether the choice of which set of registers, from the aforementioned signs register in the selection of rs1 and rs0. add on at these two different binary number, you can choose different registers.special function register (sfr) address the range of 80h ffh. at mcs-51, in addition to program counter register pc and four job outside the region, and the remaining 21 special function registers in this block in sfr. are one of five double-byte register, and they take up a total of 26 bytes. special function registers of the symbols a

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论