



下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、the at89c51 is a low-power, high-performance cmos 8-bit microcomputer with 4k bytes of flash programmable and erasable read only memory (perom). the device is manufactured using atmels high-density nonvolatile memory technology and is compatible with the industry-standard mcs-51 instruction set and
2、pinout. the on-chip flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory programmer. by combining a versatile 8-bit cpu with flash on a monolithic chip, the atmel at89c51 is a powerful microcomputer which provides a highly-flexible and cost-effective s
3、olution to many embedded control applications. function characteristic the at89c51 provides the following standard features: 4k bytes of flash, 128 bytes of ram, 32 i/o lines, two 16-bit timer/counters, a five vector two-level interrupt architecture, a full duplex serial port, on-chip oscillator and
4、 clock circuitry. in addition, the at89c51 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. the idle mode stops the cpu while allowing the ram, timer/counters, serial port and interrupt system to continue functioning. the pow
5、er-down mode saves the ram contents but freezes the oscillator disabling all other chip functions until the next hardware reset. pin description vcc:supply voltage. gnd:ground. port 0: port 0 is an 8-bit open-drain bi-directional i/o port. as an output port, each pin can sink eight ttl inputs. when
6、1s are written to port 0 pins, the pins can be used as highimpedance inputs.port 0 may also be configured to be the multiplexed loworder address/data bus during accesses to external program and data memory. in this mode p0 has internal pullups.port 0 also receives the code bytes during flash program
7、ming,and outputs the code bytes during programverification. external pullups are required during programverification. port 1 port 1 is an 8-bit bi-directional i/o port with internal pullups.the port 1 output buffers can sink/source four ttl inputs.when 1s are written to port 1 pins they are pulled h
8、igh by the internal pullups and can be used as inputs. as inputs,port 1 pins that are externally being pulled low will source current (iil) because of the internal pullups.port 1 also receives the low-order address bytes during flash programming and verification. port 2 port 2 is an 8-bit bi-directi
9、onal i/o port with internal pullups.the port 2 output buffers can sink/source four ttl inputs.when 1s are written to port 2 pins they are pulled high by the internal pullups and can be used as inputs. as inputs,port 2 pins that are externally being pulled low will source current, because of the inte
10、rnal pullups.port 2 emits the high-order address byte during fetches from external program memory and during accesses to external data memory that use 16-bit addresses. in this application, it uses strong internal pullupswhen emitting 1s. during accesses to external data memory that use 8-bit addres
11、ses, port 2 emits the contents of the p2 special function register.port 2 also receives the high-order address bits and some control signals during flash programming and verification. port 3 port 3 is an 8-bit bi-directional i/o port with internal pullups.the port 3 output buffers can sink/source fo
12、ur ttl inputs.when 1s are written to port 3 pins they are pulled high by the internal pullups and can be used as inputs. as inputs,port 3 pins that are externally being pulled low will source current (iil) because of the pullups.port 3 also serves the functions of various special features of the at8
13、9c51 as listed below: port 3 also receives some control signals for flash programming and verification. rst reset input. a high on this pin for two machine cycles while the oscillator is running resets the device. ale/prog address latch enable output pulse for latching the low byte of the address du
14、ring accesses to external memory. this pin is also the program pulse input (prog) during flash programming.in normal operation ale is emitted at a constant rate of 1/6 the oscillator frequency, and may be used for external timing or clocking purposes. note, however, that one ale pulse is skipped dur
15、ing each access to external data memory. if desired, ale operation can be disabled by setting bit 0 of sfr location 8eh. with the bit set, ale is active only during a movx or movc instruction. otherwise, the pin is weakly pulled high. setting the ale-disable bit has no effect if the microcontroller
16、is in external execution mode. psen program store enable is the read strobe to external program memory.when the at89c51 is executing code from external program memory, psen is activated twice each machine cycle, except that two psen activations are skipped during each access to external data memory.
17、 ea/vpp external access enable. ea must be strapped to gnd in order to enable the device to fetch code from external program memory locations starting at 0000h up to ffffh. note, however, that if lock bit 1 is programmed, ea will be internally latched on reset.ea should be strapped to vcc for intern
18、al program executions.this pin also receives the 12-volt programming enable voltage(vpp) during flash programming, for parts that require12-volt vpp. xtal1 input to the inverting oscillator amplifier and input to the internal clock operating circuit. xtal2 output from the inverting oscillator amplif
19、ier. oscillator characteristics xtal1 and xtal2 are the input and output, respectively,of an inverting amplifier which can be configured for use as an on-chip oscillator, as shown in figure 1.either a quartz crystal or ceramic resonator may be used. to drive the device from an external clock source,
20、 xtal2 should be left unconnected while xtal1 is driven as shown in figure 2.there are no requirements on the duty cycle of the external clock signal, since the input to the internal clocking circuitry is through a divide-by-two flip-flop, but minimum and maximum voltage high and low time specificat
21、ions must be observed. figure 1. oscillator connections figure 2. external clock drive configuration idle mode in idle mode, the cpu puts itself to sleep while all the onchip peripherals remain active. the mode is invoked by software. the content of the on-chip ram and all the special functions regi
22、sters remain unchanged during this mode. the idle mode can be terminated by any enabled interrupt or by a hardware reset.it should be noted that when idle is terminated by a hard ware reset, the device normally resumes program execution,from where it left off, up to two machine cycles before the int
23、ernal reset algorithm takes control. on-chip hardware inhibits access to internal ram in this event, but access to the port pins is not inhibited. to eliminate the possibility of an unexpected write to a port pin when idle is terminated by reset, the instruction following the one that invokes idle s
24、hould not be one that writes to a port pin or to external memory.power-down mode in the power-down mode, the oscillator is stopped, and the instruction that invokes power-down is the last instruction executed. the on-chip ram and special function registers retain their values until the power-down mo
25、de is terminated. the only exit from power-down is a hardware reset. reset redefines the sfrs but does not change the on-chip ram. the reset should not be activated before vcc is restored to its normal operating level and must be held active long enough to allow the oscillator to restart and stabili
26、ze. program memory lock bits on the chip are three lock bits which can be left unprogrammed (u) or can be programmed (p) to obtain the additional features listed in the table below. when lock bit 1 is programmed, the logic level at the ea pin is sampled and latched during reset. if the device is pow
27、ered up without a reset, the latch initializes to a random value, and holds that value until reset is activated. it is necessary that the latched value of ea be in agreement with the current logic level at that pin in order for the device to function properly 该at89c51是一个低功耗,高性能cmos 8位4k的闪存和可擦除可编程只读存
28、储器。该设备是采用atmel的高密度非易失性存储器技术,并与兼容行业标准的mcs - 51指令集和引脚。片上闪存程序存储器可重新编程的系统或由传统的非易失性存储器编程。通过将通用的8位cpu与flash在单片芯片,爱特梅尔at89c51的是一个强大的微型计算机提供了一个高度灵活的和成本有效的解决方案许多嵌入式控制应用。 功能特点 该at89c51提供以下标准特性:4k字节的闪存,128 mb内存,32余个字节/ o线,两个16位定时器/计数器,1个向量两级中断结构,全双工串行端口,片内振荡器和时钟电路。此外,at89c51目的是为降低到零频率静态逻辑,支持两种软件可选省电模式。空闲模式停止的c
29、pu,同时允许的ram,定时器/计数器,串行端口和中断系统继续运作。掉电模式保存ram的内容,但冻结振荡器禁用直到下一次硬件复位所有其他片上功能。 引脚说明 虚拟通道连接:电源电压。 接地:接地。 端口0: 端口0是一个8位漏极开路双向i / o端口。作为一个输出端口,每个引脚可以吸收8 ttl输入。当1秒被写入端口0引脚,该引脚可作为高电平输入端。引脚 0也可以配置为低电平地址/在外部程序和数据存储器访问数据总线。在这种模式下p0有内部上拉电阻。引脚 0还收到了flash编程的代码字节,在programverification和产出的代码字节。需要外部上拉过程中programverifica
30、tion。 端口1 端口1是一个8位双向i / o口与内部pullups.the端口1输出缓冲器可汇/源4 1秒的ttl inputs.when写入端口1它们拉高,由内部上拉电阻,可以引脚作为投入。作为输入,端口1引脚被外部退出是因为内部pullups.port一低的电源电流(iil的)也获得了闪存编程和核查的低位地址字节。 端口2 端口2是一个8位双向i / o口与内部pullups.the端口2输出缓冲器可汇/源4 1秒的ttl inputs.when写入端口2它们拉高,由内部上拉电阻,可以引脚作为投入。为输入,端口2个引脚被外部拉低的来源目前由于内部pullups.port,2发出的高位
31、地址字节中提取从外部程序存储器以及在外部数据存储器访问,使用16位地址。在此应用程序,它使用的内部pullupswhen发射1秒。在访问外部数据存储器,使用8位地址,端口2排放的p2的特殊功能register.port 2的内容访问也收到了高地址位并在闪存编程和验证了一些控制信号。 端口3 端口3是一个8位双向i / o的内部pullups.the端口3输出缓冲器可吸收/源端口4 1秒的ttl inputs.when写入端口3它们拉高,由内部上拉电阻,可以引脚作为投入。作为投入,港3个管脚被外部拉因为pullups.port三低的电源电流(iil的),还担任了下面列出at89c51的各种特殊功能的功能: 端口3还收到闪存编程和验证了一些控制信号。 rst 复位输入。关于这两个机器周期针高,而振荡器运行重置设备。 待添加的隐藏文字内容2啤酒/ prog 联系地址锁存期间的外部存储器访问的地址低字节锁存使能输出脉冲。该引脚也脉冲输入的程序在正常运行闪存programming.in啤酒(prog)被发射在恒定速率的1 / 6振荡器的频率,并且可以是外部定时或时钟的用途。但是,请注意,一个ale脉冲被跳过每次到外部数据存储器访问。 如果需要,啤酒操作可以通过设置位sfr的位置8eh 0。随着位设置,ale为活跃只在一执行movx或movc指令。否则,脚弱拉高。设置啤酒,禁用位没有任何效果
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 植树问题(教学设计)-2024-2025学年数学五年级上册人教版
- 浙摄版小学信息技术四年级初识HTML5(教学设计)
- 电气设备绝缘老化机理研究跨企业性重点基础知识点
- 采购合同风险保险重点基础知识点
- 直播平台转让合同范本
- 报纸发布广告合同范本
- 桥面铣刨合同
- 矿山转让合同范本
- 代理业务合同范本
- 2025年大学辅导员招聘考试题库:教育心理学能力测试试题
- 肿瘤外科的治疗原则课件
- 股权投资信托合同协议书
- 西门子1le0002变频调速三相电动机样本
- 2023年最新的雷雨剧本 雷雨剧本第三幕
- 二年级下册科学课件 磁极间的相互作用 教科版 16张
- “基础教育精品课”PPT课件模板
- 工业厂房中英文对照施工组织设计土建、水电安装(423页)
- HACCP计划书蜡基类化妆品
- 曼昆微观经济学经济学十大原理英文版.ppt
- -三自由度机械手设计
- 第二章空气动力学
评论
0/150
提交评论