文档详情

基于单片机的串行通信发射机设计毕业论文.doc

发布:2017-09-11约1.55万字共43页下载文档
文本预览下载声明
( 2011  届) 毕业设计 题 目: 基于单片机的串行通信发射机设计 姓  名:                专  业:   电子信息工程 班  级:     基于单片机的串行通信发射机设计 摘 要 本设计是以作为,采用串口通信,把显示在计算机界面上,实现计算机。本系统的设计包括硬件和软件两大部分。MAX232 芯片实现RS232 的EIA 电平与单片机TTL 电平的转换,通过电平转换电路把有效数据发送给PC机。 系统的硬件部分大致可分为四部分:单片机处理部分、显示电路部分、与计算机串口通信部分。系统的软件部分分为大部分:数码显示部分、串口通信部分。 Based on SCM serial communication transmitter design Abstract This design uses the STC89 C51 unipole slab machine as the lord controls chip, adoption string orifice correspondence, show at the calculator interface to the data up, thus realize to the calculator transmit data.The design including hardware and software of this system is two greatest fractions.Adopting EIA that the MAX232 chipses carry out RS232 to give or get an electric shock is even and unipole slab machine TTL give or get an electric shock a flat convert, pass give or get an electric shock even convert telephone to send out the effective data to the PC machine. The hardware fraction of system mostly can is divided into a four-part deci: Unipole slab the machine handle fraction, display telephone fraction, keyboard control circuit, and calculator string the orifice correspond by letter fraction. The software fraction of system is divided into three big fractions: Several keys constitute of the control mold mass, figures display fraction, string orifice correspondence fraction. Keywords: SCM, C language, serial communication, MAX232, launch 目录 摘 要 III Abstract IV 1 绪论 7 1.1课题的背景 7 1.2串行通信技术国内外发展现状 7 1.3课题研究的主要内容 8 2 系统设计方案 9 2.1设计要求 9 2.2系统总体设计框图 9 2.3 STC89C51引脚说明 10 2.4单片机的串行接口 10 2.5 MCS-51的串行和控制寄存器 11 2.5.1串行口和控制寄存器 11 2.5.2 串行口工作方式 12 3系统硬件设计 14 3.1晶振电路设计 14 3.2复位电路设计 14 3.3 RS232串行接口电路 15 3.4 数码管显示电路 17 3.5键盘控制电路 20 4系统软件设计 22 4.1程序流程图 22 4.2通信协议的实现 23 4.2.1串行口控制寄存器SCON的设置 23 4.2.2定时器的初始化设置 23 4.2.3波特率计算 24 4.2.4 发射部分 24 4.2.5 单片机接收 28 4.3显示部分 28 结论 30 参考文献 31 致谢 32 附录 33 附录图1 系统原理图和PCB板图 33 附录图2 作品实物正面 35 附录图3 作品实物反面 35 附录图4 发射时的图片 36 附录5软件程序 39 1 绪论 1.1课题的背景 随着微机和单片机技术的不
显示全部
相似文档