目录
摘要...................................................................................................2
英文摘要.............................................................................................3
一 总体
设计.......................................................................................4
1 设计要求.......................................................................................4
2 设计
方案.......................................................................................4
二 硬件设计.......................................................................................4
1 51单片机串行
通信功能 ..................................................................4
2 MAX232芯片.................................................................................6
3 整体电路设计.................................................................................7
三
软件设计.......................................................................................8
1 串行通信软件实现..............................................................................8
2
程序流程图.......................................................................................8
四 联合调试.......................................................................................11
五 设计小节.......................................................................................11
六 附录.............................................................................................12
1 主机发送程序....................................................................................12
2 重机接受程序....................................................................................13
3
系统电路图.................................................................................... 16
摘要
串行通信是单片机的一个重要应用。本次
课程设计就是要利用单片机来完成一个系统,实现双片单片机串行通信。通信的结果实用数码管进行显示,数码管采用查表方式显示。两个单片机之间采用RS232进行双机通信。在通信过程中,使用通信协议进行通信。
关键词:51单片机,串行通信,接口
Abstract
Serial communication is an important application of single chip. This course is designed to using single chip computer to complete a system, the realization biplate microcontroller serial communication. Communication results and practical to display, digital digital tube pipe, adopting look-up table display. Two microcontroller between adopt RS232 for dual-computer communications. In communication process, USES communication protocol to communicate.
Key
words: 51 SCM, serial communication, interface
一、总体设计
1.设计要求:
两片单片机之间进行串行通信,发送端将0~f循环发送到接收端,并在接收端显示。
2.设计方案:
本次设计,对于两片89C51,采用RS232进行双机通信。发送方的数据由串行口TXD段输出,经过电平转换芯片M