AT89C2051单片机毕业论文外文翻译_第1页
AT89C2051单片机毕业论文外文翻译_第2页
AT89C2051单片机毕业论文外文翻译_第3页
AT89C2051单片机毕业论文外文翻译_第4页
AT89C2051单片机毕业论文外文翻译_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

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

文档简介

1、AT89C2051 AT89C2051 is the United States of America ATMEL company p roducti on of low voltage, high p erforma nee CMOS 8 bit MCU, tablets containing the 2K bytes rep eated erasable read-only memory p rogram (P EROM) and 128bytes ran dom data memory (RAM), device using ATMELs high density, non-volati

2、le memory tech no logy, comp atible with sta ndard MCS-51 in structi on system in gen eral, sheet 8 bit CPU and Flash storage unit, AT89C2051 single-chip microcomputer in electronic p roducts in a wide range of app licati ons. In ternal structure AT89C2051 is a 2K byte flash programmable and erasabl

3、e read only memory (EEP ROM) low voltage, high performa nee 8 bit CMOS micro processor.lt uses ATMEL high-de nsity non-v olatile memory tech no logy manu facturi ng and in dustry sta ndard MCS-51 instruction set and pin structure compatible.Through the single chip combination of general CPLI and fla

4、sh memory, ATMEL AT89C2051 is a powerful micro p rocessor, which for many embedded con trol app licati ons to pro vide a highly flexible and low cost soluti on. AT89C2051 offers the following functions: Standard 2K memory, 128 bytes of RAM, 15 I/O, two 16 bit timer, a five vector two suspendedstruct

5、ure, a full duplex serial port, a precision analog comparator and two optional software power save mode.Free party stop CPU work but allows RAM, timer / counter, serial port and in terr upt system to continu e.The po wer-dow n mode saves the RAM content but the oscillator stops working and the prohi

6、bition of other parts of the work to the next a hardware reset. The con fide ntiality of the p rocedure AT89C2051 desig n p rocedures are 2 con fide ntial, con fide ntial 1 is p rogrammed, a p rogram memory can not be erased uni ess a p rogram ming, the security bit 2 is p rogrammed, p rogram cannot

7、 be read. Hardware and software devel opment AT89C2051 can use the following two methods and development of application systems. 1, because 89C2051 internal p rogram memory Flash, and modify it in side the program is very convenient, if equipped with a programmable 89C2051 p rogrammer.Debugg ing per

8、sonnel can use the p rogram edit ing - Comp ilati on - curi ng - in serted into a circuit board test such rep eated cycle method, for exp erie need MCS-51 p rogrammers, debugg ing this method is not very difficult.But to do this test would not be able to un dersta nd the internal RAM content and p r

9、ogram directi on and other releva nt in formatio n. 2, ordinary 8031/80C31 emulator simulation plug in P 1.0 P 1.7 and P3.0 P 3.6 out simulati on 2051, this method can use sin gle-ste p, break point debugg ing method, but the simulatio n is not true, for exa mp le, 2051 internal an alog comp arator

10、function, P1, P3 export enhan ceme nt un der ten sile cap acity etc. Pin descri ptio n AT89C2051 chip pin diagram The AT89C2051 pin diagram as show n on the right. In 1, VCC: po wer supply voltage. In 2, GND. In 3, P1: P1 is a 8 bit bidirectional I/O export.Port of P 1.2P 1.7 with internal puII-up r

11、esistor, P 1.0 and P 1.1 requires external pull up resistor.P1.0 and P 1.1 are resp ectively as on-chi p p recisi on an alog comp arator of the in-p hase input (ANI0) and the inverting input (AIN1).The P1 port out put buffer cap able of absorb ing 20mA curre nt and can directly dis play driver LED.W

12、he n the P1 port write 1, which can be used as input, whe n P 1.2 P 1.7 is used as the input pins and is externally p ulled low, they will because of in ternal write 1, which can be used as inpu t.Whe n the pin is P 1.2 P 1.7 as input and is exter nally p ulled low, they will because of internal pu

13、II-up resistor and the outflow curre nt. In 4, P3: P3 P3.0P3.5, P3.7 mouth with internal pull-up resistor seven bidirect ional I/O port.P 3.6 is used for fixing the input in the out put sig nal of the comp arator and it serves as a gen eral I/O pins that are not accessible .P3 port buffer can absorb

14、 20mA curre nt.Whe n the P3 export to write 1, they are internal p ull-up resistors are p ulled up and used as inpu t.As inpu t, is exter nally p ulled low P3 mouth foot will use the p ull-up resistor and the outflow curre nt. P3 is also used to achieve various AT89C2051 sec ond function, are listed

15、 in the followi ng table: Pin export function P3.0 RXD serial input port P3.1 TXD serial out put port P 3.2 INT0 external in terru pt 0 P3.3 INT1 external in terru pt 1 P3.4 T0 timer 0 external input P3.5 T1 timer 1 external input P3 also receives some for flash memory programming and verification p

16、rocess con trol sig nal. In 5, RST: reset inpu t. Once RST becomes the high level all the pins of the I/O is reset to 1 .Whe n the oscillator is running, continued to give RST pin two mach ine cycles of high level can compi ete reduct ion .Each mach ine cycle n eeds 12 oscillator or clock cycles. In

17、 6, XTAL1: as the oscillator inv erter input and internal clock gen erator input. In 7, XTAL2: as the oscillator the out put of the inverting amp lifier. Main p erforma nee In 1, and MCS-51 comp atibility; In 2, 2KB rep rogrammable memory FLASH (10000 times); In 3, 2.7-6V voltage range; 4, all stati

18、c work: 0Hz-24MH z; In 5, 2 level p rogram memory security lock; In 6, 128*8 in ternal RAM; 7, 15 p rogrammable I/O line; In 8, two and 16 timer / coun ter; 9, 6 in terr upt sources; 10, p rogrammable serial cha nn el; In 11, and high p recisi on voltage com parator (P1.0, P 1.1, P3.6); 12, direct d

19、rive LED out put port. AT89C2051是美国ATME公司生产的低电压、高性能 CMOS位单片机,片内 含2k bytes的可反复擦写的只读程序存储器(PERO)和128bytes的随机数据存 储器(RAM,器件采用ATMEL公司的高密度、非易失性存储技术生产,兼容标准 MCS-51指令系统,片内置通用8位中央处理器和Flash存储单元,AT89C2051单 片机在电子类产品中有广泛的应用。 AT89C2051是一带有2K字节闪速可编程可擦除只读存储器 (EEPROM )的低电压,高性能 8位CMOS微处理器。它采用 ATMEL的高 密非易失存储技术制造并和工业标准MC

20、S-51指令集和引脚结构兼容。通过在 单块芯片上组合通用的CPLI和闪速存储器,ATMEL的AT89C2051是一强劲 的微型处理器,它对许多嵌入式控制应用提供一定高度灵活和成本低的解决 办法。 AT89C2051提供以下标准功能:2K字节闪速存储器,128字节RAM, 15根I/O 口,两个16位定时器,一个五向量两级中断结构,一个全双工串行 口,一个精密模拟比较器以及两种可选的软件节电工作方式。空闲方停止 CPU工作但允许 RAM、定时器/计数器、串行工作口和中断系统继续工作。掉 电方式保存 RAM内容但振荡器停止工作并禁止有其它部件的工作到下一个 硬件复位。 AT89C2051设计有2个

21、程序保密位,保密位1被编程之后,程序存 储器不能再被编程除非做一次擦除,保密位2被编程之后,程序不能被读出。 AT89C2051可以采用下面两种方法开发应用系统。 1、由于89C2051内部程序存贮器为Flash,所以修改它内部的程序 十分方便快捷,只要配备一个可以编程89C2051的编程器即可。调试人员可 以采用程序编辑-编译-固化-插到电路板中试验这样反复循环的方法,对于熟 练的MCS-51程序员来说,这种调试方法并不十分困难。但是做这种调试不能 够了解片内RAM的内容和程序的走向等有关信息。 引出来仿真2051,这种方法可以运用单步、断点的调试方法,但是仿真不够真 实,比如,2051的内

22、部模拟比较器功能, P1 口、P3 口的增强下拉能力等等。 P DIP/SOIC RSTrfVPPC 1 ivoc 3 It Jlpf J 仃C Ifl Fin 4 17| PI-S JfTAC C 5 14 3 If! 4 tnTo| pajc P3i C t 15 3 Pl 3 7 14 4 13 PS 1 fAtJJ話 * If OHD : 1曲 ml PJ7 ATB9QD5i1l AT89C2051芯片引脚图 AT89C2051的引脚图如右图所示。 1、VCC :电源电压。 2、GND :地。 3、P1 口: P1 口是一个 8位双向 I/O 口。口引脚 P 1.2P 1.7提供内部 上拉电阻,P1.0和P1.1要求外部上拉电阻。 P1.0和P1.1还分别作为片内精密 模拟比较器的同相输入(ANI0)和反相输入 (AIN1)。P1 口输出缓冲器可吸收 20mA电流并能直接驱动 LED显示。当P1 口引脚写入“1时,其可用作输入 端,当引脚P 1.2-P 1.7

温馨提示

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

评论

0/150

提交评论