单片机系统的电子钟设计方案与仿真.pdf

上传人:H****o 文档编号:56627301 上传时间:2022-11-02 格式:PDF 页数:23 大小:2.25MB
返回 下载 相关 举报
单片机系统的电子钟设计方案与仿真.pdf_第1页
第1页 / 共23页
单片机系统的电子钟设计方案与仿真.pdf_第2页
第2页 / 共23页
点击查看更多>>
资源描述

《单片机系统的电子钟设计方案与仿真.pdf》由会员分享,可在线阅读,更多相关《单片机系统的电子钟设计方案与仿真.pdf(23页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、基于单片机系统的电子钟设计与仿真王金胜摘 要近年来随着计算机在社会领域的渗透和大规模集成电路的发展,单片机的应用正在不断地走向深入,由于它具有功能强,体积小,功耗低,价格便宜,工作可靠,使用方便等特点,因此越来越广泛地应用各个领域.本文的电子钟系统是以单片机 as the core,the clock chip DS1302,LED display driver chip components,such as MAX7219 component.Describes the application of Proteuss ISIS software of the electronic singl

2、e-chip system clock to achieve the design and simulation methods in details.The method can not only test the property of the system precisely,but also improve development efficiency and reduce development cost,which values in popularity.Key words:AT89C51。DS1302。MAX7219。Proteus。electronics clock 目 录第

3、一章绪论.21.1 引言 21.2 Proteus 软件简介 2第二章系统设计32.1 电子钟系统器件选择32.1.1 AT89C51单片机简介.3 2.1.2 实时时钟电路DS1302工作原理.6 2.1.3 MAX7219 工作原理简介.8 2.2 电子钟系统设计流程.11第三章硬件电路设计.123.1 Protel DXP 电路图设计.123.2 Proteus 电路图设计 12第四章软件设计.144.1 程序流程图设计.144.2 源程序设计.144.3 KeilC51 进行程序调试18第五章系统调试与仿真.195.1 Proteus 中 Hex 文件选择.195.2 Proteus

4、进行电子钟系统仿真.20结束语21 参考文献.21致谢.21 文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6

5、Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P

6、2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2

7、D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10

8、D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R

9、2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:C

10、U2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X61/23 第一章绪 论1.1 引 言随着半导体技术的飞速发展,以及移动通信、网络技术、多媒体技术在嵌入式系统设计中的应用,单片机从4 位、8 位、16 位到 32 位,其发展历程一直受到广大电子爱好者的

11、极大关注。单片机功能越来越强大,价格却不断下降的优势无疑成为嵌入式系统方案设计的首选,同时单片机应用领域的扩大也使得更多人加入到基于单片机系统的开发行列中,推动着单片机技术的创新进步。然而传统的单片机系统开发除了需要购置诸如仿真器、编程器、示波器等价格不菲的电子设备外,开发过程也较繁琐。来自英国Labcenter Electronics公司的Proteus 软件很好地诠释了利用现代EDA工具方便快捷开发单片机系统的优势。它包括 PROTEUS VSMVirtual System Modelling)、PROTEUS PCB DESIGN两大组成部分,在PC 机上就能实现原理图电路设计、电路分析

12、与仿真、单片机代码级调试与仿真、系统测试与功能验证以及形成PCB文件的完整嵌入式系统设计与研发过程。单片机系统作为一种典型的嵌入式系统,其系统设计包括硬件电路设计和软件编程设计两个方面,其调试过程一般分为软件调试、硬件测试、系统调试3 个过程。如果采用单片机系统的虚拟仿真软件Proteus,则不用制作具体的电路板也能够完成以上工作。1.2 Proteus 软件简介PROTEUS软件由 Labcenter 公司开发,是目前世界上最先进、最完整的嵌入式系统设计与仿真平台,可以实现数字电路、模拟电路及微控制器系统与外设的混合电路系统的电路仿真、软件仿真、系统协同仿真和PCB设计等功能,是目前唯一能够

13、对各种处理器进行实时仿真、调试与测试的EDA工具。微控制器系统相关的仿真需建立编译和调试环境,可选择Keil C51uVision2 软件。该软件支持众多不同公司的芯片,集编辑、编译和程序仿真等于一体,同时还支持PLM、汇编和 C语言的程序设计。它的界面友好易学,在调试程序、软件仿真方面有很强大的功能。其革命性的功能是:将电路仿真和微处理器仿真进行协同,直接在基于原理图的虚拟原型上进行处理器编程调试,并进行功能验证,通过动态器件如电机、LED、LCD、文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 Z

14、N4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编

15、码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6

16、 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8

17、 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文

18、档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2

19、H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3

20、B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X62/23 开关等,实时看到运行后的输入、输出的效果,配合系统配置的虚拟仪器如示波器、逻辑分析仪等,Proteus 为我们建立了完备的电子设计开发环境。文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:C

21、U2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU

22、10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN

23、4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码

24、:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6

25、HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8

26、ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档

27、编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X63/23 第二章系统设计2.1 电子钟系统硬件组成电子钟系统硬件主要由AT89C51单片机、时钟芯片DS1302、数码管显示驱动芯片MAX7219 等元器件组成。AT89C51是一种带 4K 字节闪烁可编程可擦除只读存储器的低电压,高性能CMOS8位微处理器,俗称单片机DS1302 是美国DALLAS公司推出的一种高性能、低功耗、带RAM的实时时钟电路,它可以对年、月、日、周日、时、分、秒进行计时。MAX7219 是 MAXIM 公司生产的串行输入/输出共阴极数码管显示驱动芯片。单片机晶振电路单片机复位电路AT89C

28、51单片机时钟芯片DS13028位LED 显示数码管显示驱动芯片MAX7219按键电路蜂鸣器图 2.1 电子钟系统硬件电路组成框图2.1.1 AT89C51单片机简介AT89C51 是 一 种带4K 字节 闪烁 可 编 程 可 擦 除 只读 存 储 器 FPEROMFalsh Programmable and Erasable Read Only Memory)的低电压,高性能CMOS8 位微处理器,俗称单片机。AT89C2051 是一种带 2K 字节闪烁可编程可擦除只读存储器的单片机。单片机的可擦除只读存储器可以反复擦除100 次。该器件采用ATMEL 高密度非易失存储器制造技术制造,与工业

29、标准的MCS-51指令集和输出管脚相兼容。由于将多功能 8 位 CPU和闪烁存储器组合在单个芯片中,ATMEL 的 AT89C51是一种高效微控制器,AT89C2051是它的一种精简版本。AT89C单片机为很多嵌入式控制系统提供了一种灵活性高且价廉的方案。文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2

30、D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10

31、D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R

32、2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:C

33、U2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU

34、10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN

35、4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X64/23

36、 图 2.11 AT89C51单片机1.主要特性与 MCS-51 兼容 4K 字节可编程闪烁存储器寿命:1000写/擦循环 数据保留时间:10年 全静态工作:0Hz-24Hz 三级程序存储器锁定 128*8 位内部 RAM 32可编程 I/O 线 两个 16 位定时器/计数器 5 个中断源可编程串行通道低功耗的闲置和掉电模式片内振荡器和时钟电路2.管脚说明VCC:供电电压。GND:接地。P0 口:P0口为一个 8 位漏级开路双向I/O 口,每脚可吸收8TTL 门电流。当P1口的管脚第一次写1 时,被定义为高阻输入。P0 能够用于外部程序数据存储器,它可以被定义为数据/地址的第八位。在FIASH

37、 编程时,P0 口作为原码输入口,当 FIASH进行校验时,P0 输出原码,此时P0 外部必须被拉高。P1 口:P1口是一个内部提供上拉电阻的8 位双向 I/O 口,P1 口缓冲器能接收输出 4TTL 门电流。P1 口管脚写入1 后,被内部上拉为高,可用作输入,P1 口被外部下拉为低电平时,将输出电流,这是由于内部上拉的缘故。在FLASH编程和校验时,P1 口作为第八位地址接收。文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3

38、B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X

39、6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4

40、R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1

41、U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P

42、5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7

43、P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6

44、Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X65/23 P2 口:P2口为一个内部上拉电阻的8 位双向 I/O 口,P2口缓冲器可接收,输出4 个 TTL 门电流,当 P2 口被写“1”时,其管脚被内部上拉电阻拉高,且作为输入。并因此作为输入时,P2 口的管脚被外部拉低,将输出电流。这是由于内部上拉的缘故。P2 口当用于外部程序存储器或16 位地址外部数据存储器进行存取时,P2 口输出地址的高八位。在给出地址“1”时,它利用内部上拉优势,当对外部八位地址数据存储器进行读写时,P2 口输出其特殊功能寄存器的内容。P2口在 F

45、LASH编程和校验时接收高八位地址信号和控制信号。P3 口:P3口管脚是 8 个带内部上拉电阻的双向I/O 口,可接收输出4 个 TTL 门电流。当 P3口写入“1”后,它们被内部上拉为高电平,并用作输入。作为输入,由于外部下拉为低电平,P3口将输出电流 ILL)这是由于上拉的缘故。P3 口也可作为 AT89C51的一些特殊功能口,如下表所示:P3.0 RXD 串行输入口P3.1 TXD 串行输出口P3.2/INT0 外部中断 0 P3.3/INT1 外部中断 1 P3.4 T0 记时器 0 外部输入P3.6/WR 外部数据存储器写选通P3.7/RD 外部数据存储器读选通RST:复位输入。当振

46、荡器复位器件时,要保持RST脚两个机器周期的高电平时间。ALE/PROG:当访问外部存储器时,地址锁存允许的输出电平用于锁存地址的地位字节。在 FLASH编程期间,此引脚用于输入编程脉冲。在平时,ALE端以不变的频率周期输出正脉冲信号,此频率为振荡器频率的1/6。因此它可用作对外部输出的脉冲或用于定时目的。然而要注意的是:每当用作外部数据存储器时,将跳过一个 ALE脉冲。如想禁止ALE的输出可在SFR8EH 地址上置 0。此时,ALE 只有在执行 MOVX,MOVC 指令是 ALE才起作用。另外,该引脚被略微拉高。如果微处理器在外部执行状态ALE禁止,置位无效。/PSEN:外部程序存储器的选通

47、信号。在由外部程序存储器取指期间,每个机器周期两次/PSEN有效。但在访问外部数据存储器时,这两次有效的/PSEN信号将不出现。/EA/VPP:当/EA 保持低电平时,则在此期间外部程序存储器0000H-FFFFH),不管是否有内部程序存储器。注意加密方式1 时,/EA 将内部锁定为RESET;当/文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3

48、B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X

49、6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4

50、R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1U3B8 ZN4R2P2P5X6文档编码:CU2D7P4R2H6 HU10D6Z1

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 高考资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁