塔里木大学信息工程学院《单片机原理与外围电路》课程论文题目:基于单片机的四路抢答器姓名:***学号:**********班级:计算机科学与技术15-2班摘要系统是以单片机的基本语言汇编语言来进行软件设计,指令的执行速度快,节省存储空间。
为了便于扩展和更改,软件的设计采用模块化结构,使程序设计的逻辑关系更加简洁明了。
使硬件在软件的控制下协调运作。
正文中首先简单描述系统硬件工作原理,且附以系统硬件设计框图,并介绍了单片机微处理器的发展史,论述了本次毕业设计所应用的各硬件接口技术和各个接口模块的功能及工作过程, 并描述了AT89C51外接电路接口的软、硬件调试。
其次阐述了程序的流程和实现过程。
本文撰写的主导思想是软、硬件相结合,以硬件为基础,来进行各功能模块的编写。
关键词单片机;微处理器;AT89C51AbstractThis system edits collected materials the language to proceed wi th single the basic language of a machine the software designs, th e instruction carries out the speed quick, save memory. For the sa ke of easy to expand with the design adoption mold a logic for t urning construction, making procedure designing relation that change, software more shorter and more easier to understand. Make hardware control in software descended to moderate the operation. The text inside describes the system hardware work principle in brief first , andattach with the system hardware design frame diagram, combine development history that introduced the single a machine microprocess or, discuss this graduate design a function for applied each hardwa re connecting a people the technique connects with each one a mold piece and work processes, combine to describe in a specific way AT89C51 circumscribes the electric circuit connects oscular and soft, the hardware adjusts to try. Expatiated the process of the proced ure the next in order with realizes process. The predominance thoug ht that this text compose is soft, the hardware combines together, regarding hardware as the foundation, proceed the plait of each f unction mold piece write.Keywords Micro Controller Unit; Microprocessor; AT89C51- 2 -目录1绪论................................................................................................................................. - 4 -1.1课题背景及研究意义 ....................................................................................... - 4 -1.2国内外现状 ....................................................................................................... - 5 -1.3课题的设计目的 ............................................................................................... - 5 -1.4课题的主要工作 ............................................................................................... - 5 -2系统概述......................................................................................................................... - 6 -2.1设计要求 ........................................................................................................... - 6 -2.2、总体法案设计 ................................................................................................ - 6 -3系统硬件设计................................................................................................................. - 7 -3.1元器件简介 ....................................................................................................... - 7 -3.2系统总电路图 ................................................................................................... - 7 -3.4时钟电路设计 ................................................................................................... - 8 -3.5复位电路设计 ................................................................................................... - 9 -3.6指示灯电路设计 ............................................................................................... - 9 -4系统软件设计............................................................................................................... - 10 -4.1系统程序设计 ................................................................................................. - 10 -4.2仿真结果 ......................................................................................................... - 11 -结论.................................................................................................................................. - 12 -参考文献.......................................................................................................................... - 13 -附录A 系统整体电路..................................................................................................... - 14 -附录B 全部程序清单................................................................................................... - 15 -附录C PCB模拟图.......................................................................................................... - 18 -附录D 3D仿真图............................................................................................................ - 19 -- 3 -1绪论1.1课题背景及研究意义近年来单片机发展十分迅速,单片机的应用已经渗透到电力、冶金、化工、建材、机械、食品、石油等各个行业。