首页 中英文翻译 AT89C52 单片机

中英文翻译 AT89C52 单片机

举报
开通vip

中英文翻译 AT89C52 单片机中英文翻译 AT89C52 单片机 AT89C2051 AT89C2051 Reference Manual AT89C2051 is made in the ATMEL Corporation, which is the low-voltage, high-performance CMOS8-bit microcontroller. Tablets containing repeated 2k bytes of program memory erasable read-only (PEROM) and r...

中英文翻译 AT89C52 单片机
中英文翻译 AT89C52 单片机 AT89C2051 AT89C2051 Reference Manual AT89C2051 is made in the ATMEL Corporation, which is the low-voltage, high-performance CMOS8-bit microcontroller. Tablets containing repeated 2k bytes of program memory erasable read-only (PEROM) and random 128bytes data memory (RAM), device using ATMEL's high density, non-volatile memory technology, Compatible with the standard of MCS-51 instruction set, built-chip 8-bit general-purpose central processing unit and repeatedly write the Flash memory, which can effectively reduce the development costs. AT89C2051 features a powerful single-chip can provide cost-effective in many Applications. AT89C2051 MCU MCU is a series of 51 members, is the 8051 version of SCM. Internal comes with a programmable EPROM 2 k bytes of high-performance microcontrollers. With the industry standard MCS-51 orders and pin-compatible, so it is a powerful micro-controllers, many embedded control applications, it provides a highly flexible and effective solutions. AT89C2051 has the following characteristics: 2 k bytes EPROM, 128 bytes RAM, 15 I / O lines, two 16 regular / counter, two five vector interrupt structure, a full two-way serial port, and includes Precision analog comparator and on-chip oscillator, a 4.25 V to 5.5 V voltage scope of work and 12 MHz/24MHz frequency, and also offers the encryption array of two program memory locking, power-down and the clock circuit. In addition, AT89C2051 also supports two kinds of software-selectable power-saving mode power supply. During my free time, CPU stop and let RAM, timing / counter, serial port and interrupt system to continue to work. Power-down can preserve the contents of RAM, but will stop oscillator chip-to prohibit all the other functions until the next hardware reset. AT89C2051 have two 16 time / counter register Timer0t Timer1. As a timer, each machine cycle register an increase, such registers to counting machine cycle. Because a machine cycle is 12 oscillator cycles, the count rate is the frequency oscillator 1 / 12. As a counter, the register in the corresponding external input pin P3.4/T0 and P3.5/T1 emerged from the 1-0 when the changes by 1. Two machine cycle because of the need to identify a 1-0 change, the largest count rate is the frequency oscillator 1 / 24, the external input P3.2/INT0 and P3.3/INT1 programming, for Measuring the pulse width of the door. Therefore, AT89C2051 constitute the SCM system is a simple structure, the cost of the cheapest, most efficient micro-control system, eliminating the external RAM, ROM and interface devices, reducing hardware costs, cost savings, improved The cost-effective system. Clock circuit MCU clock signal used to provide various micro-chip microcontroller operation of the benchmark time, the clock signal is usually used by the form of two circuits: the internal and external shocks oscillation. MCS-51 has a microcontroller internal oscillator for a reverse of the high-gain amplifier, pin XTALl and XTAL2 are here to enlarge the electrical inputs and outputs, as in-house approach, a simple circuit, from the clock Signal relatively stable, and actually used often in this way, as shown in Figure 3-1 in its external crystal oscillator (crystal) or ceramic resonator constituted an internal oscillation, on-chip high-gain amplifier and a reverse Feedback components of the chip quartz crystal or ceramic resonator together to form a self oscillator and generate oscillation clock pulse. Figure 3-1 in the external crystal and capacitors C1 and C2 constitute a parallel resonant circuits, their stability from the oscillation frequency, rapid start-up role, and its value are about 33 PF, crystal frequency of elections 12 MHz. Reset Circuit In order to initialize the internal MCU some special function register to be reset by the way, will reset after the CPU and system components identified in the initial state, and from the initial state began work properly. MCU is reset on the circuit to achieve, in the normal operation of circumstances, as long as the RST-pin on a two machine cycle time over the high, can cause system reset, but if sustained for the RST-pin HIGH, in a circle on the MCU reset state. After the system will reset input / output (I / 0) home port register for the FFH, stack pointer SP home for 07 H, SBUF built-in value for the indefinite, all the rest of the register-0, the status of internal RAM from the impact of reduction, On the system, when the contents of RAM is volatile. Reset operation There are two situations in which a power-on reset and manual (switch) reduction. The system uses a power-on reset mode. Figure 3-1 in the R0 and C0 formed a power-on reset circuit, and its value for R for 8.2 K, C for the 10 uF. Main features: Compatible the MCS51 command system; Contains the 2KB memory re-programming FLASH (1000); 123456 DD 120VCC2.7 ~ 6V voltage range; RST 219P1.7P3.0the whole Static work: 0Hz ~ 24KHz; 3P3.1P1.618Secrets 2 Program Memory Lock 4XTAL2P1.517CC 128 × 8-bit internal RAM 5XTAL1P1.416 615P1.315 programmable I / O lines P3.2 147P1.2P3.3Two 16-bit timer / counter 8P3.4P1.1136 interrupt sources, two external interrupt sources 129P3.5P1.0 11Programmable Serial Channel 10GNDP3.7 High Precision Voltage Comparator ,P1.0~P1.1~P3.6,, Have the output port of the LED direct drive Low-power idle and power-down mode The pin Picture of AT89C2051 Picture one the pin of AT89C2051 AT89C2051’s functional description: VCC: Power Supply Voltage BBGND: land P1 port: P1 mouth is a group of 8-bit bi-directional I / O interface, P1.2 ~ P1.7 provide internal pull-up resistor,P1.0 and P1.1 internal supreme pull-up resistor. P1 mouth output buffer can absorb the current 20mA and direct-drive LED.When Programming and calibration, P1 mouth as the eighth address receive. P3 mouth: P3 port P3.0 ~ P3.5, P3.7 is the internal pull-up resistor with the seven bi-directional I / O interface. Did not bring out the P3.6~It as a generic I / O port, but can not visit. Can be used as a fixed-chip input comparator output signal. when P3 write 1, they were highed the internal pull-up resistor can be raised as an input port. P3 port special function as shown in table 1: Table 1 P3 mouth’s special features PIN functional characteristics AA Title SizeNumberRevision B Date:21-May-2009Sheet of File:D:\Program Files\Design Explorer 99 SE\Library\Sch\Protel DOS Schematic Libraries.ddbDrawn By: 123456 P3.0 RXD P3.1 TXD P3.2 INT0 P3.3 INT1 P3.4 T0 P3.5 T1 RST:Reset output. When the oscillator device reset, RST pin to maintain the high level of two machine cycle time. XTAL1: the RP-oscillator amplifier and internal clock generator input. XTAL2: RP-oscillator output amplifier. Timer Overview of the Timer 89C2051 single-chip-chip has two 16-bit timer / counter, That is the timer 0 (T0) and Timer 1 (T1). They all have from time to time and event count function, Can be used for timing control, delay of external events, such as counting and testing occasions. Timer’s T0 and T1—— two 16-bit timers in fact is 16-bit counter plus 1. Among them, T0 compositioned by the two 8-bit special function registers TH0 and TL0; T1 posed by the TH1 and TL1. These functions were controled by the special function registers TMOD and TCON When set to the work in the timing, Through the pin count of the external pulse signal. When the input pulse signal generated by the falling edge of 1-0, The value of timer plus 1. At of every machine cycle during the S5P2 sampling pin T0 and T1 the input level, if a machine cycle before sample value of 1, The next machine cycle sampling value is 0, The counter plus 1. Since then during S3P1 of the machine cycle, New value will into the counter.so Detection of a 1-0 transition of the two machine cycles,So The maximum count frequency of oscillation frequency of 1 / 24. In addition to the option of work from time to time or count, Each timer / counter have four kinds of work mode, That is, each of timer circuit kinds of four constitute a structural model Two low-power mode Idle mode In idle mode, CPU to maintain sleep and all-chip peripherals remain active, this way generated in Software, At this point, Chip RAM and all the contents of special function registers remain unchanged. Idle mode was terminated by any interrupt request permission to or hardware reset. P1.0 and P1.1 ,in the non-use of external pull-up resistor on the case should be set to "0", Or in the use of pull-up resistor is set to "1." It should be noted that: when uses of hardware reset Termination idle mode, AT89C2051 is usually stopped from the program until the internal reset control of the two machine cycles before the restore procedure Service. In this case the hardware within the prohibition of the reading and writing of internal RAM, However, to allow access to ports, To eliminate the Hardware reset in the idle mode of port accidents may write, In principle, to enter the idle mode of instruction should not be under the command of a pin or an external memory port for a visit. Power-down mode In power-down mode, the oscillator to stop working, enter the power-down mode ,Instructions, who was the last one, the implementation of the Directive, Chip RAM and all the contents of special function registers the termination of the previous power-down mode be frozen. To withdraw from power-down mode is the only way to reset the hardware, Reset will redefine all the Special Function Registers but Does not change the contents of RAM before the the Vcc work returned to normal levels Shall be null and void and must be reset to maintain a certain period of time in order to restart and oscillator stability P1.0 and P1.1 in the non-use of external pull-up resistor on the case should be set to "0", Or in the use of pull-up resistor is set to "1." Oscillator Oscillator connected client XTAL1: RP-oscillator amplifier and internal clock generator input XTAL2: RP-oscillator amplifier output Characteristics of Oscillator XTAL1, XTAL2 ware the RP-chip oscillator amplifier inputs and outputs, Quartz crystal can be composed of the clock oscillator or ceramic oscillator, For more information from the external input clock driver AT89C2051, XTAL1 input clock signal from, XTAL2 should be left vacant.As the input to the internal circuit is a 2-flip-flop, Therefore, the external clock signal input without special requirements, However, it must comply with the maximum level and minimum norms and timing 中文翻译: AT89C2051 AT89C2051数据参考手册 AT89C2051是美国ATMEL公司生产的低电压、高性能CMOS8位单片机,片内含2k bytes的可反复擦写的只读程序存储器(PEROM)和128bytes的随机数据存储器(RAM),器件采用ATMEL公司的高密度、非易失性存储技术生产,兼容标准MCS-51指令系统,片内置通用8位中央处理器和可反复擦写的Flash存储器,可有效地降低开发成本。功能强大AT89C2051单片机可提供许多高性价比的应用场合。 AT89C2051单片机是51系列单片机的一个成员,是8051单片机的简化版。内部自带一个2k字节可编程EPROM的高性能微控制器。它与工业标准MCS-51的指令和引脚兼容,因而是一种功能强大的微控制器,它对很多嵌入式控制应用提供了一个高度灵活有效的解决 方案 气瓶 现场处置方案 .pdf气瓶 现场处置方案 .doc见习基地管理方案.doc关于群访事件的化解方案建筑工地扬尘治理专项方案下载 。AT89C2051有以下特点:2k字节EPROM、128字节RAM、15根I/O线、2 个16位定时/计数器、5个向量二级中断结构、1个全双向的串行口、并且内含精密模拟比较器和片内振荡器,具有4.25V至5.5V的电压工作范围和12MHz/24MHz工作频率,同时还具有加密阵列的二级程序存储器加锁、掉电和时钟电路等。此外,AT89C2051还支持二种软件可选的电源节电方式。空闲时,CPU停止,而让RAM、定时/计数器、串行口和中断系统继续工作。可掉电保存RAM的内容,但可使振荡器停振以禁止芯片所有的其它功能直到下一次硬件复位。 T89C2051有2个16位计时/计数器寄存器Timer0t Timer1。作为一个定时器,每个机器周期寄存器增加1,这样寄存器即可计数机器周期。因为一个机器周期有12个振荡器周期,所以计数率是振荡器频率的1/12。作为一个计数器,该寄存器在相应的外部输入脚P3.4/T0和P3.5/T1上出现从1至0的变化时增1。由于需要二个机器周期来辨认一次1到0的变化,所以最大的计数率是振荡器频率的1/24,可以对外部的输入端P3.2/INT0和P3.3/INT1编程,便于测量脉冲宽度的门。 因此,AT89C2051构成的单片机系统是具有结构最简单、造价最低廉、效率最高的微控制系统,省去了外部的RAM、ROM和接口器件,减少了硬件开销,节 省了成本,提高了系统的性价比。 时钟电路 单片机的时钟信号用来提供单片机片内各种微操作的时间基准,时钟信号通常用两种电路形式得到:内部振荡和外部振荡。MCS-51单片机内部有一个用于构成振荡器的高增益反向放大器,引脚XTALl和XTAL2分别是此放大电器的输入端和输出端,由于采用内部方式时,电路简单,所得的时钟信号比较稳定,实际使用中常采用这种方式,如图3-1所示在其外接晶体振荡器(简称晶振)或陶瓷谐振器就构成了内部振荡方式,片内高增益反向放大器与作为反馈元件的片外石英晶体或陶瓷谐振器一起可构成一个自激振荡器并产生振荡时钟脉冲。图3-1中外接晶体以及电容C2和C1构成并联谐振电路,它们起稳定振荡频率、快速起振的作用,其值均为33PF左右,晶振频率选12MHz。 复位电路: 为了初始化单片机内部的某些特殊功能寄存器,必须采用复位的方式,复位后可使CPU及系统各部件处于确定的初始状态,并从初始状态开始正常工作。单片机的复位是靠外电路来实现的,在正常运行情况下,只要RST引脚上出现两个机器周期时间以上的高电平,即可引起系统复位,但如果RST引脚上持续为高电平,单片机就处于循环复位状态。复位后系统将输入/输出(I/0)端口寄存器置为FFH,堆栈指针SP置为07H, SBUF内置为不定值,其余的寄存器全部清0,内部RAM的状态不受复位的影响,在系统上电时RAM的内容是不定的。复位操作有两种情况,即上电复位和手动(开关)复位。本系统采用上电复位方式。图3-1中R0和C0组成上电复位电路,其值R取为8.2K, C取为10uF。 3.2主要功能特性: *兼容MCS51指令系统; *2KB可重编程FLASH存储器(1000次); *2.7,6V电压范围; *全静态工作:0Hz,24KHz; *2级程序存储器保密锁定; * 128×8位内部RAM; *15条可编程I/O线; D 234516 120VCCRST 219P1.7CP3.0D 3P3.1P1.618 4XTAL2P1.517 5XTAL1P1.416 *两个16位定时器/计数器; 615P1.3P3.2 14*6个中断源,两个外部中断源;7 P1.2P3.3 8P3.4P1.113*可编程串行通道; 129P3.5P1.0*高精度电压比较器(P1.0,P1.1,P3.6); 1110GNDP3.7 *直接驱动LED的输出端口; *低功耗空闲和掉电模式 AT89C2051的管脚引脚图如图2所示。 图1 AT89C2051封装管脚引脚图 AT89C2051引脚功能说明: VCC:电源电压 BCGND:地 P1口:P1口是一组8位双向I/O接口,P1.2,P1.7提供内部上拉电阻,P1.0和P1.1内部无上拉电阻。P1口输出缓冲器可吸收20mA的电流并可直接驱动LED。编程和校验时, P1口作为第八位地址接收。 3口:P3口的P3.0,P3.5、P3.7是带有内部上拉电阻的7个双向I/O接口。P P3.6没有引出,它作为一个通用的I/O口,但是不可访问。可作为固定输入的片内比较器的输出信号。当P3口写入1时,它们被内部的上拉电阻拉高并可作为输入端口。P3口的特殊功能如表1所示: RST:复位输出。当振荡器复位器件时,要保持RST脚两个机器周期的高电平时间。 XTAL1:振荡器的反相放大器及内部时钟发生器的输入端。 XTAL2:振荡器反相放大器的输出端。 AB A Title SizeNumberRevision B Date:21-May-2009Sheet of 123456 File:D:\Program Files\Design Explorer 99 SE\Library\Sch\Protel DOS Schematic Libraries.ddbDrawn By: 表1 P3口的特殊功能 引脚 功能特性 P3.0 RXD (串行输入口) P3.1 TXD (串行输出口) P3.2 (外中断0) INT0 P3.3 (外中断1) INT1 P3.4 T0 (定时/计数器0外部输入) P3.5 T1 (定时/计数器1外部输入) 定时器 定时器概述 89C2051单片机片内有两个16位定时器/计数器,即定时器0(T0)和定时器1(T1)。它们都有定时和事件计数功能,可用于定时控制、延时、对外部事件计数和检测等场合。 定时器T0和T1两个16位定时器实际上都是16位加1计数器。其中,T0由两个8位特殊功能寄存器TH0和TL0构成;T1由TH1和TL1构成。这些功能都由特殊功能寄存器TMOD和TCON所控制。 设置为定时工作方式时,定时器计数AT89C2051片内振荡器输出的经12分频后的脉冲,即每个机器周期使定时器的数值加1直至计满溢出。当AT89C205采用12MHz晶振时,一个机器周期为1µs,计数频率为1MHz。 设置为计数工作方式时,通过引脚对外部脉冲信号计数。当输入脉冲信号产生由1至0的下降沿时,定时器的值加1。在每个机器周期的S5P2期间采样T0和T1引脚的输入电平,若前一个机器周期采样值为1,下一个机器周期采样值为0,则计数器加1。此后的机器周期S3P1期间,新的数值装入计数器。所以,检测一个1至0的跳变需要两个机器周期,故最高计数频率为振荡频率的1/24。除了可以选择定时或计数工作方式外,每个定时器/计数器还有4种工作模式,也就是每个定时器可构成4种电路结构模式。 两种低功耗模式 空闲模式 在空闲模式下,CPU保持睡眠状态而所有片内的外设仍保持激活状态,这种 方式有软件产生。此时,片内RAM和所有特殊功能寄存器的内容保持不变。空闲模式可由任何允许的中断请求或者硬件复位终止。 P1.0和P1.1在不使用外部上拉电阻的情况下应设置为“0”,或者在使用上拉电阻的情况下设置为“1”。 应注意的是:在用硬件复位终止空闲模式时, AT89C2051通常从程序停止一直到内部复位获得控制之前的两个机器周期处回复程序执行。在这种情况下片内硬件禁止对内部RAM的读写,但允许对端口的访问,要消除硬件复位终止空闲模式对端口意外写入的可能,原则上进入空闲模式指令的下一条指令不应对端口引脚或外部存储器进行访问。 掉电模式 在掉电模式下,振荡器停止工作,进入掉电模式的指令是最后一条被执行的指令,片内RAM和所有特殊功能寄存器的内容在终止掉电模式前被冻结。退出掉电模式的唯一方法是硬件复位,复位后将重新定义全部特殊功能寄存器但不改变RAM中的内容在Vcc恢复到正常工作电平前,复位应无效且必须保持一定时间以使振荡器重启动并稳定工作。 P1.0和P1.1在不使用外部上拉电阻的情况下应设置为“0”,或者在使用上拉电阻的情况下设置为“1”。 振荡器 振荡器连接端 XTAL1:振荡器反相放大器以及内部时钟发生器的输入端 XTAL2:振荡器反相放大器的输出端 振荡器特征 XTAL1、XTAL2为片内振荡器的反相放大器的输入和输出端,如图3所示。可采用石英晶体或者陶瓷振荡器组成时钟振荡器,如需从外部输入时钟驱动AT89C2051,时钟信号从XTAL1输入,XTAL2应悬空。由于输入到内部电路是经过一个2分频触发器,所以输入的外部时钟信号无需特殊要求,但它必须符合电平的最大和最小值及时序规范。
本文档为【中英文翻译 AT89C52 单片机】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_105949
暂无简介~
格式:doc
大小:42KB
软件:Word
页数:15
分类:其他高等教育
上传时间:2017-09-21
浏览量:27