1摘要我所做的是单片机串行通信发射机,它能显示数字信号,还能将信号发射出去。采用串行工作方式,能显示00-99的数字,用单片机89C51来控制,采用共阳极数码显示,软件部分由汇编语言编写。单片机串行通信发射机是用来发射信息,能完成信息准确无误的显示发射,使信息能够在两地之间传递,给人们在通信上带来方便。发射机设计的思路是:由一片单片机来控制信息的发射、存储和显示,用汇编语言编写发射程序和显示程序,使硬件和软件加以结合,完成发射机的设计。硬件的设计要考虑多方面,以自己设计的目的为出发点,设计合理的方案。发射机需要硬件和软件的配合、补充,软件编写要和接收机达成相同的通信协议,这样才能完成预期的效果。AbstractIdidthatSingleChipMicrocomputercommunicationtransmitter,itcandisplaydigitalsignals,butalsothesignallaunch.Serialwork,itcandisplaythenumberfrom00to99,the89C51single-chipmicrocomputertocontroltheuseofatotalofanodedigitaldisplay,thesoftwarepreparedbytheassemblylanguage.Single-chipserialcommunicationtransmitterisusedtolaunchinformation,accurateinformationtocompletethelaunchoftheshow,sothatinformationcanpassbetweenthetwoplaces,tobringpeopletofacilitatecommunication.Transmitterdesignistheidea:fromasingle-chipmicrocomputertocontrolthelaunchofinformation,storageanddisplay,usingassemblylanguageproceduresforthepreparationofthelaunchanddisplayprocedures,sothatcombinationofhardwareandsoftwaretocompletethedesignoftransmitters.Thedesignofhardwaretoconsidervariousaspects,thepurposeoftheirowndesignasastartingpoint,well-designedprogram.Transmittersneedtotieinwiththehardwareandsoftware,addedthatthesoftwaredevelopment,andreceiverstoachievethesamecommunicationprotocolinordertocompletethedesiredeffect.2目录摘要··························································································································1ABSTRACT····················································································································1目录·························································································································21绪论(前言)··········································································································32硬件电路设计··········································································································52.1硬件的基本组成·································································································52.2电路图·············································································································52.3硬件介绍··········································································································52.3.1单片机概述·································································································································52.3.2AT89C51单片机简介··················································································································72.4单片机的串行接口····························································································102.4.1基本概念····································································································································112.4.2MCS-51的串行和控制寄存器···································································································112.5数码显示管·····································································································142.6硬件的焊接及调试过程······················································································152.6.1硬件的焊接·······························································································································162.6.2硬件的调试机器故障排除··········································································错误!未定义书签。3软件的设计和调整过程·····························································································173.1程序流程图·····································································································173.2通信协议········································································································183.2.1串行口控制寄存器SCON的设置·····························································································183.2.2定时器的初始化设置···············································································································183.2.3波特率计算·······························································································································183.2.4发射程序···································································································································193.3编译软件的使用和PLDA的使用·······················································错误!未定义书签。3.3.1编译软件的使用和编译过程······································································错误!未定义书签。3.3.2PLDA的使用……………………………………………………………………………………213.4烧片··············································································································194单片机串行通信领域的扩展·······················································································204.1无线发射电路组成及工作原理:···········································································204.2单片机串口接口··········································································错误!未定义书签。4.2.1扩展串行口与单片机的连接······································································错误!未定义书签。4.2.2操作指令·········································································