《单片机外文翻译51系列单片机的功能和结构(译文英文)(共8页).doc》由会员分享,可在线阅读,更多相关《单片机外文翻译51系列单片机的功能和结构(译文英文)(共8页).doc(8页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、精选优质文档-倾情为你奉上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 introducin
2、g 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-c
3、hip 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)Proc
4、edure 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 e
5、xporting 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 th
6、e 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
7、 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. T
8、he 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
9、 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 transmi
10、ssion 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
11、 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
12、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,
13、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. P
14、rocedure 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 d
15、ata 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
16、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 vis
17、iting 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,
18、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 ang
19、le 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 addresse
20、s) 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 bloc
21、k 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 indepen
22、dently. 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 slic
23、e, 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 comp
24、uters 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 require
25、ment, 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
26、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
27、 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
28、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 ve
29、ry 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 corre
30、sponding 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 bu
31、ffer. 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
32、 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 th
33、e 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
34、 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 n
35、eed 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
36、 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
37、 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 predi
38、cament , 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 tim
39、es. 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系列单片机是一个电脑晶片,英
40、特尔公司生产的. 这家公司于1976年48系列推出8级一个计算机芯片监控单片机51系列之后,于1980年引入一个计算机芯片监控。它属于这一类型很多行一个芯片的电脑芯片都如8051、8031、8751、80c51bh,80c31等,其基本组成、性能和使用说明,都是一样的. 8051是 51系列的代表之一-电脑晶片 有一个芯片的计算机系统是由以下几个方面: (1)18微处理器(CPU)。(2)一部分数据存储器(128B/256B),使用可以不读入数据,最后结果要数据显示等。(3)存储器存储程序/可擦写可编程只读存储器(4KB/8KB),用于保存程序和数据。 但可存储器/可擦写可编程只读存储器在一些
41、电脑芯片,如8031、8032、80c等。(4)4个并行的8个输入/输出接口P0到P3口,每口可以用作输入,也可以用作输出。 (5)两个定时/计数器,每个定时/计时器可用计算的方法,用来计算的外部事件,也可以建立成一个时间的方式和根据计算结果或时间实现控制计算(6)切断源头上控制系统。(7)各I/O口UART(异步接收世界/发送(UART),它是实现一个计算机芯片和通讯系列电脑上的使用。(8)时钟振荡器电路生产、水晶石英需要外部电容。使振动频率最少为12兆。上述的每个口的内部数据通过数据寄存器被连接起来。其中,CPU的核心是一个电脑芯片,它是计算机的指挥控制中心,有运算器和控制等部分组成。算术
42、单元有8运算单元和一个算术逻辑运算器件。此外,堆栈经常被视为转运站,在8051内传输数据。它和一般微处理器一样,是占存.表示了赞同的命令。控制程序包括数据命令详解,振荡器电路和时间等。程序相当于16各字节。这是一个字节地址位的程序,其实,内容是未来IA将进行PC。 修改的内容,它可以改变方向,进行程序。 在8051电路里有一个电脑芯片、石英晶体,只需要相当频繁调整电容,其范围是12mhz的频率。这一脉冲信号,作为8051工作的基本单元,即单位时间内的最低。8051和计算机一样,在和谐的工作基本控制打,就像打了一个乐团,按照发挥,指挥。有存储器(程序存储器,只能读),8051在器片(存储数据,是
43、可以写出),他们每个独立存储空间处理,处理方式是一样的,一般的电脑记忆。8051和8751程序存储程序存贮器4kb,从0000h地址,用于保存程序和方式不变。数据8051、8751、8031、128b记忆存储数据,00fh地址,用于存放操作结果中,暂时储存数据和资料等。在这种存储器有128b, 32个单位字节可以使用,这是与一般的微处理器不同。这是很不相同的51系列单片机之一-计算机芯片,除了一般电脑的方式处置。一般电脑先向空间、存储器和RAM,可安排在不同的空间范围内解决,即存储器的地址和RAM,地址分配不同的空间形成。 同时来访的记忆,相应的存储器,只有一个地址,可以存储,也可以撞击,并以
44、同样的访问。这种记忆结构称为普林斯顿结构。8051记忆分为程序存储空间和数据存储空间的物理结构,有四个存储空间:我们的程序储存在一个数据存储空间之外的数据存储和一个程序存储空间、结构形式的这种程序装置和数据存储与形式的数据存储,称为哈佛结构。但用用户的角度,讨论8051年的记忆空间分为三类:(1)在时代安排Ffffh,0000h地点,从外部(地址用十六)。(2)处理数据存储空间之外64kb之一,被安排从地址0000h-Ffffh64kb(地16)。(3)处理数据存储空间256b(地址8)。上述三个存储空间地址重叠,象征不同的数据传输的系统8051:CPU访问片,以存储器,阻止访问命令RAM用M
45、OV访问途外用一张旅游片。1个8051芯片有32个外部扩展口,即P0、P1、P2和P3。每个口8准确双向口,共占32个 每一个I/O线可作为独立输入和输出。每个口有闭锁(即特殊功能寄存器)、输出口。可使输出数据,数据可以缓冲时推出,但这些四个功能自我同一。在扩展模块具有时代记忆系统,这四个口可准确双向口 I/O共同使用。在扩展模块具有时代记忆系统,P2口地址。 0口是一个双向车采用8送数据低地址/出口分时 在8051的巡回一个计算机芯片和四个I/O港口很巧妙的设计。 熟悉I/O逻辑电路,不仅有利于正确、合理地使用I/O口、使周边逻辑电路设计的一个计算机芯片有所提高。在不同的等级,负载能力和接口
46、有一定的要求,因为数量等,P0和P1口的最终数量、P3口的结构 ,所以,负载能力和接口要求其性质相处。P0口不同于其他,在使用它的输出口取决于负载,它是利用NMOS的阻抗,应同时输入。当被用作介绍,应该送一个1。 每一个P0口有8个输出模式LSTTL载荷。P1口是一个正确的双向口也作为输入/输出使用。 P0口有不同循环的电路,联系负载的阻抗。事实上,阻抗是两种影响,同时负责操作:1配量负责,定期阻力。 0时,可以寄以很高的速度; 如果阻值很大,P1口,以妨碍系统引进高。P1口高电平时,它是利用电流负载提供保护。在这里介绍的是用作码元,必须写1到相应的口也使操作结束。相对约20,000ohms因
47、负载阻力,因为在现场40,000ohms,不会产生影响的数据输入。P2口的结构有些类似于P0口。这是促使口腔类似,但有些不是嘴巴大转换控制P1、P3口的多功能,口也越来越多。这两个部分,使它除了精确的双向功能与P1口仅也可以使用第二指针功能。一门三转功能实际上它决定将产量数据信号的第二产出功能。在担任W=1时,到生产信号;作为在Q=1时,信号线可以生产W。输出时,它是第一个功能,但仍是第二个功能不用软件P3口提前成立。这不是硬件是在自动有两个功能输出量,当CPU进行寻求地点(所在地或字节)访P3输入/输出,有在硬件促使它为1。THE经营原则P3口类似于P1口。生产级的P3口,P1,P1,内有连
48、接负载阻抗,每个人可以带动4产出模型LSTTL载荷。而作为输入口,任何NMOS电路可驱动TTL或P1的8051一个电脑芯片P3口的正常运行。其他都准确双向口也。当行为输入,要写出一首相应的口与口。 以805的一个计算机芯片,只能提供毫安的电流电产出,它是生产口去要求一个普通的计算是将晶体管、接触的阻力应该在口及半导体,同时为了抑制高电力输出P1-P3级是恢复,是一个着手运作一个计算机芯片。其主要功能是将电脑变成0000h开始,使一个开始进行计算机芯片进行程序0000h单位。 除了那些进入正常初始化系统,因为它的程序操作失误,为了解决这个问题,恢复原来信号,恢复太重要了。这是一项投入恢复原来的信号,结束了在8051的信息寄存。恢复有效信号,应保持24震撼周期(2个机器周期)有效时间段。如果频率效率高,恢复原来信号完成期限不得超过4微秒,恢复正常。根据逻辑电路的情况,恢复原来的信号。专心-专注-专业