




免费预览已结束,剩余3页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Structure and function of the MCS-51 seriesStructure and function of the MCS-51 series one-chip computer MCS-51 is a name of a piece of one-chip computer series which Intel Company produces. This company introduced 8 top-grade one-chip computers of MCS-51 series in 1980 after introducing 8 one-chip computers of MCS-48 series in 1976. It belong to a lot of kinds this line of one-chip computer the chips have ,such as 8051, 8031, 8751, 80C51BH, 80C31BH,etc., their basic composition, basic performance and instruction system are all the same. 8051 daily representatives- 51 serial one-chip computer .An one-chip computer system is made up of several following parts:(1) One microprocessor of 8 (CPU).(2) At slice data memory RAM (128B/256B),it used to depositing not can reading /data that write, such as result not middle of operation, final result and data wanted to show, etc.(3)Procedure memory ROM/EPROM (4KB/8KB ), is used to preserve the procedure , some initial data and form in slice. But does not take ROM/EPROM within some one-chip computers, such as 8031 , 8032, 80C ,etc.(4)Four 8 run side by side I/O interface P0 four P3, each mouth can use as introduction , may use as exporting too.(5)Two timer / counter, each timer / counter may set up and count in the way, used to count to the external incident, can set up into a timing way too, and can according to count or result of timing realize the control of the computer.(6)Five cut off cutting off the control system of the source .(7)One all duplex serial I/O mouth of UART (universal asynchronous receiver/transmitter(UART), is it realize one-chip computer or one-chip computer and serial communication of computer to use for.(8) Stretch oscillator and clock produce circuit, quartz crystal finely tune electric capacity need outer. Allow oscillation frequency as 12 now at most. Every the above-mentioned part was joined through the inside data bus .Among them, CPU is a core of the one-chip computer, it is the control of the computer and command centre, made up of such parts as arithmetic unit and controller, etc. The arithmetic unit can carry on 8 persons of arithmetic operation and unit ALU of logic operation while including one, the 1 storing device temporarily of 8, storing device 2 temporarily, 8s accumulation device ACC, register B and procedure state register PSW, etc. Person who accumulate ACC count by 2 input ends entered of checking etc. temporarily as one operation often, come from person who store 1 operation is it is it make operation to go on to count temporarily , operation result and loop back ACC with another one. In addition, ACC is often regarded as the transfer station of data transmission on 8051 inside .The same as general microprocessor, it is the busiest register. Help remembering that agreeing with A expresses in the order. The controller includes the procedure counter ,the order is deposited, the order decipher, the oscillator and timing circuit, etc. The procedure counter is made up of counter of 8 for two, amounts to 16. It is a byte address counter of the procedure in fact, the content is the next IA that will carried out in PC. The content which changes it can change the direction that the procedure carries out .Shake the circuit in 8051 one-chip computers, only need outer quartz crystal and frequency to finely tune the electric capacity, its frequency range is its 12MHZ of 1.2MHZ. This pulse signal, as 8051 basic beats of working, namely the minimum unit of time. 8051 is the same as other computers, the work in harmony under the control of the basic beat, just like an orchestra according to the beat play that is commanded.There are ROM (procedure memory , can only read ) and RAM in 8051 slices (data memory, can is it can write ) two to read, they have each independent memory address space, dispose way to be the same with general memory of computer. Procedure 8051 memory and 8751 slice procedure memory capacity 4KB, address begin from 0000H, used for preserving the procedure and form constant. Data 8051- 8751 8031 of memory data memory 128B, address false 00FH, use for middle result to deposit operation, the data are stored temporarily and the data are buffered etc. In RAM of this 128B, there is unit of 32 bytes that can be appointed as the job register, this and general microprocessor is different, 8051 slice RAM and job register rank one formation the same to arrange the location. It is not very the same that the memory of MCS-51 series one-chip computer and general computer disposes the way in addition. General computer for first address space, ROM and RAM can arrange in different space within the range of this address at will, namely the addresses of ROM and RAM, with distributing different address space in a formation. While visiting the memory, corresponding and only an address Memory unit, can ROM, it can be RAM too, and by visiting the order similarly. This kind of memory structure is called the structure of Princeton. 8051 memories are divided into procedure memory space and data memory space on the physics structure, there are four memory spaces in all: The procedure stores in one and data memory space outside data memory and one in procedure memory space and one outside one, the structure forms of this kind of procedure device and data memory separated form data memory, called Harvard structure. But use the angle from users, 8051 memory address space is divided into three kinds: (1) In the slice, arrange blocks of FFFFH , 0000H of location , in unison outside the slice (use 16 addresses). (2) The data memory address space outside one of 64KB, the address is arranged from 0000H 64KB FFFFH (with 16 addresses) too to the location. (3) Data memory address space of 256B (use 8 addresses). Three above-mentioned memory space addresses overlap, for distinguishing and designing the order symbol of different data transmission in the instruction system of 8051: CPU visit slice, ROM order spend MOVC, visit block RAM order uses MOVX outside the slice, RAM order uses MOV to visit in slice.8051 one-chip computer have four 8 walk abreast I/O port, call P0, P1, P2 and P3. Each port is 8 accurate two-way mouths, accounts for 32 pins altogether. Every one I/O line can be used as introduction and exported independently. Each port includes a latch (namely special function register), one exports the driver and a introduction buffer. Make data can latch when outputting, data can buffer when making introduction, but four function of pass way these self-same. Expand among the system of memory outside having slice, four port these may serve as accurate two-way mouth of I/O in common use. Expand among the system of memory outside having slice, P2 mouth see high 8 address off; P0 mouth is a two-way bus, send the introduction of 8 low addresses and data / export in timesharing The circuit of 8051 one-chip computers and four I/O ports is very ingenious in design. Familiar with I/O port logical circuit, not only help to use ports correctly and rationally, and will inspire to designing the peripheral logical circuit of one-chip computer to some extent. Load ability and interface of port have certain requirement, because output grade, P0 of mouth and P1 end output, P3 of mouth grade different at structure, so, the load ability and interface of its door demand to have nothing in common with each other. P0 mouth is different from other mouths, its output grade draws the resistance supreme. When using it as the mouth in common use to use, output grade is it leak circuit to turn on, is it is it urge NMOS draw the resistance on taking to be outer with it while inputting to go out to fail. When being used as introduction, should write 1 to a latch first. Every one with P0 mouth can drive 8 Model LS TTL load to export. P1 mouth is an accurate two-way mouth too, used as I/O in common use. Different from P0 mouth output of circuit its, draw load resistance link with power on inside have. In fact, the resistance is that two effects are in charge of FET and together :One FET is in charge of load, its resistance is regular. Another one can is it lead to work with close at two state, make its President resistance value change approximate 0 or group value heavy two situation very. When it is 0 that the resistance is approximate , can draw the pin to the high level fast ; When resistance value is very large, P1 mouth, in order to hinder the introduction state high. Output as P1 mouth high electricity at ordinary times, can is it draw electric current load to offer outwards, draw the resistance on neednt answer and then. Here when the port is used as introduction, must write into 1 to the corresponding latch first too, make FET end. The structure of P2 some mouth is similar to P0 mouth, there are MUX switches. Is it similar to mouth partly to urge, but mouth large a conversion controls some than P1. P3 mouth one multi-functional port, mouth getting many than P1 it have and 3 door and 4 buffer. Two part these, make her besides accurate two-way function with P1 mouth just, can also use the second function of every pin, and door 3 function one switch in fact, it determines to be to output data of latch to output second signal of function. Act as W =At 1 oclock, output Q end signal; Act as Q =At 1 oclock, can output W line signal . At the time of programming, it is that the first function is still the second function but neednt have software that set up P3 mouth in advance . It hardware not inside is the automatic to have two function outputted when CPU carries on SFR and seeks the location (the location or the byte) to visit to P3 mouth /at not lasting lining, there are inside hardware latch Qs =1.The operation principle of P3 mouth is similar to P1 mouth.Output grade, P3 of mouth , P1 of P1 , connect with inside have load resistance of drawing , every one of they can drive 4 Model LS TTL load to output. As while inputting the mouth, any TTL or NMOS circuit can drive P1 of 8051 one-chip computers as P3 mouth in a normal way . Because draw resistance on output grade of them have, can open a way collector too or drain-source resistance is it urge to open a way, do not need to have the resistance of drawing outer . Mouths are all accurate two-way mouths too. When the conduct is input, must write the corresponding port latch with 1 first. As to 80C51 one-chip computer, port can only offer milliampere of output electric currents, is it output mouth go when urging one ordinary basing of transistor to regard as, should contact a resistance among the port and transistor base, in order to the electricity while restraining the high level from exporting P1P3 Being restored to the throne is the operation of initializing of an one-chip computer. Its main function is to turn PC into 0000H initially, make the one-chip computer begin to hold the conduct procedure from unit 0000H. Except that the ones that enter the system are initialized normally ,as because procedure operate it make mistakes or operate there arent mistake, in order to extricate oneself from a predicament , need to be pressed and restored to the throne the key restarting too. It is an input end which is restored to the throne the signal in 8051 China RST pin. Restore to the throne signal high level effective , should sustain 24 shake cycle (namely 2 machine cycles ) the above its effective times. If 6 of frequency of utilization brilliant to shake, restore to the throne signal duration should exceed 4 delicate to finish restoring to the throne and operating. Produce the logic picture of circuit which is restored to the throne the signal。51系列单片机的结构和功能51系列单片机结构和功能之一-计算机芯片监控51系列单片机是一个电脑晶片,英特尔公司生产的. 这家公司于1976年48系列推出8级一个计算机芯片监控单片机51系列之后,于1980年引入一个计算机芯片监控。它属于这一类型很多行一个芯片的电脑芯片都如8051、8031、8751、80c51bh,80c31等,其基本组成、性能和使用说明,都是一样的. 8051是 51系列的代表之一-电脑晶片 有一个芯片的计算机系统是由以下几个方面: (1)18微处理器(CPU)。(2)一部分数据存储器(128B/256B),使用可以不读入数据,最后结果要数据显示等。(3)存储器存储程序/可擦写可编程只读存储器(4KB/8KB),用于保存程序和数据。 但可存储器/可擦写可编程只读存储器在一些电脑芯片,如8031、8032、80c等。(4)4个并行的8个输入/输出接口P0到P3口,每口可以用作输入,也可以用作输出。 (5)两个定时/计数器,每个定时/计时器可用计算的方法,用来计算的外部事件,也可以建立成一个时间的方式和根据计算结果或时间实现控制计算(6)切断源头上控制系统。(7)各I/O口UART(异步接收世界/发送(UART),它是实现一个计算机芯片和通讯系列电脑上的使用。(8)时钟振荡器电路生产、水晶石英需要外部电容。使振动频率最少为12兆。上述的每个口的内部数据通过数据寄存器被连接起来。其中,CPU的核心是一个电脑芯片,它是计算机的指挥控制中心,有运算器和控制等部分组成。算术单元有8运算单元和一个算术逻辑运算器件。此外,堆栈经常被视为转运站,在8051内传输数据。它和一般微处理器一样,是占存.表示了赞同的命令。控制程序包括数据命令详解,振荡器电路和时间等。程序相当于16各字节。这是一个字节地址位的程序,其实,内容是未来IA将进行PC。 修改的内容,它可以改变方向,进行程序。 在8051电路里有一个电脑芯片、石英晶体,只需要相当频繁调整电容,其范围是12mhz的频率。这一脉冲信号,作为8051工作的基本单元,即单位时间内的最低。8051和计算机一样,在和谐的工作基本控制打,就像打了一个乐团,按照发挥,指挥。有存储器(程序存储器,只能读),8051在器片(存储数据,是可以写出),他们每个独立存储空间处理,处理方式是一样的,一般的电脑记忆。8051和8751程序存储程序存贮器4kb,从0000h地址,用于保存程序和方式不变。数据8051、8751、8031、128b记忆存储数据,00fh地址,用于存放操作结果中,暂时储存数据和资料等。在这种存储器有128b, 32个单位字节可以使用,这是与一般的微处理器不同。这是很不相同的51系列单片机之一-计算机芯片,除了一般电脑的方式处置。一般电脑先向空间、存储器和RAM,可安排在不同的空间范围内解决,即存储器的地址和RAM,地址分配不同的空间形成。 同时来访的记忆,相应的存储器,只有一个地址,可以存储,也可以撞击,并以同样的访问。这种记忆结构称为普林斯顿结构。8051记忆分为程序存储空间和数据存储空间的物理结构,有四个存储空间:我们的程序储存在一个数据存储空间之外的数据存储和一个程序存储空间、结构形式的这种程序装置和数据存储与形式的数据存储,称为哈佛结构。但用用户的角度,讨论8051年的记忆空间分为三类:(
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 一、无端崖之辞教学设计-2025-2026学年初中信息科技泰山版2024九年级全一册-晋教版2017
- 2024-2025学年高中历史 第一单元 古代中国经济的基本结构与特点 第3课 古代商业的发展新课说课稿1 新人教版必修2
- 学校信息化建设管理制度
- 五年级品德与社会下册 悲愤的吼声2说课稿 浙教版
- 幼儿园夏季安全管理工作方案
- 房地产项目投资分析与风险防范策略
- 医院血液样本采集及检验操作规范
- 长沙团队管理咨询方案
- 小学英语教学单元教案设计
- 秋季美容院营销方案模板
- 微生物学第九章 微生物生态
- YS/T 226.12-2009硒化学分析方法第12部分:硒量的测定硫代硫酸钠容量法
- 雪落在中国土地上
- GB/T 29114-2012燃气轮机液体燃料
- GB/T 18690.1-2009农业灌溉设备微灌用过滤器第1部分:术语、定义和分类
- FCI测试试题附答案
- 部编版四年级上册语文全册1-8单元课文思维导图
- 耳部解剖及急慢性中耳炎课件
- 【成都】麓湖生态城地产视角分析总结
- 盘扣支模架工程监理细则
- 军事训练教学法模板课件
评论
0/150
提交评论