论文编号:JD041 字数:16963,页数:31
摘 要:本设计所做的是单片机串行通信发射机,它能显示数字信号,还能将信号发射出去。采用串行工作方式,能显示00-99的数字,用单片机89C51来控制,采用共阳极数码显示,软件部分由汇编语言编写。
单片机串行通信发射机是用来发射信息,能完成信息准确无误的显示发射,使信息能够在两地之间传递,给人们在通信上带来方便。发射机设计的思路是:由一片单片机来控制信息的发射、存储和显示,用汇编语言编写发射程序和显示程序,使硬件和软件加以结合,完成发射机的设计。
硬件的设计要考虑多方面,以自己设计的目的为出发点,设计合理的方案。发射机需要硬件和软件的配合、补充,软件编写要和接收机达成相同的通信协议,这样才能完成预期的效果。
关键词:单片机,汇编语言,数字信号,发射
The Design of Micro Controller Unit Communication Transmission Depart
Abstract: What I do is a Micro Controller Unit correspondence blast-off device, it can show the digital signal, and also can send out the signal .It uses serial-port operating mode, can show the number from 00 to 99, control with a machine 89 C51s, adopt the total anode figures manifestation, the software part from edit collected materials the language plait to write.
A Micro Controller Unit correspondence blast-off device is used for sending out the information, it can complete the information accurate without any error of manifestation blast-off to make information delivered between the two sides and bring the convenience on the correspondence to the people.The way of thinking that blast-off device design is controlled the blast-off of information by a machine of one, saving and manifestation, use to edit collected materials the language plait to write to shoot the procedure and the manifestation procedures, make hardware and softwares take into combine, complete the design of blast-off device.
The design of the hardware need to consider in many ways,taking the purpose that oneself design as the point of departure to design the reasonable project.The blast-off device need moderate between hardware and software.The software edition want to reach with receiver correspondence protocol of the machine demand hardware, then can complete the anticipant result thus.
Key Words : Micro Controller Unit, edit collected materials the language, Datasignal, Transmission
目录
1 绪论 1
2 硬件 3
2.1 硬件的基本组成 3
2.2 电路图 ..3
2.3 硬件介绍.3
2.3.1 单片机概述 ..3
2.3.2 AT89C51单片机简介 .5
2.4 单片机的串行接口 10
2.4.1 基本概念 10
2.4.2 MCS-51的串行和控制寄存器11
2.5 数码显示管 13
2.6 硬件的焊接及调试过程.. 15
2.6.1 硬件的焊接 .15
3 软件的设计和调整过程 .18
3.1 程序流程图 18
3.2 通信协议 ..18
3.2.1 窜行口控制寄存器SCON的设置 19
3.2.2 定时器的初始化设置 ..19
3.2.3 波特率计算 .19
3.2.4 发射程序(见附表2) .19
3.3 编译软件的使用和PLDA的使用 ..19
3.3.1 编译软件的使用和编译过程.. 20
3.4 烧片 20
4 单片机串行通信领域的扩展 21
4.1 无线发射电路组成及工作原理.. 21
4.2 单片机串口接口22
4.2.1 扩展串行口与单片机的连接 ..22
4.2.2 操作指令 23
4.2.3 基于TTL电路的设计方案和工作原理. 23
结论 ..25
参考文献 .26
致谢.. 27
附录A. 28
附录B .29