PC机与单片机串行通信的研究  被引量:14

Research of serial communication between PC and MCS-51 serial single chip

在线阅读下载全文

作  者:梁中华[1] 王子威[2] 祁春清[1] 索迹[1] 

机构地区:[1]沈阳工业大学电气工程学院,沈阳110023 [2]辽宁石油化工大学信息工程学院,辽宁抚顺113001

出  处:《沈阳工业大学学报》2005年第3期302-307,共6页Journal of Shenyang University of Technology

摘  要:针对研究生常需要数据采集而设计了一个串行通信系统.该系统上位机为PC机,下位机为MCS 51单片机.文中给出了通信协议设计,硬件设计和软件设计.协议中有6种通信命令,适用于各种数据交换;硬件方面设计了时钟电路和波特率配置;软件方面完成了中断子程序、数据交换子程序和上位机串行通讯程序的设计、编写和调试.下位机用汇编语言,上位机用C语言;该串行通信系统的硬件与软件已调试成功并运行良好.Presents a serial communication system in order to satisfy the postgraduate need of collecting (data.) The host computer is PC, while the slave computer is single chip computer MCS-51.The paper designs the serial communication protocol ,the hardware and software.There are six commands that can apply all kinds of data exchange in the serial communication protocol. In the hardware, the clock circuit is designed, and the baud rate is configured. In the software, the programs, such as the interruption subroutine, data (exchange) subroutine and the host serial communication subroutine, are designed, compiled and debugged. C language is adopted in the host computer, while the assemble language is used in slave computer. The hardware and software of the system have been successfully debugged and run.

关 键 词:PC机 MCS-51单片机 串行通信系统 串行通讯程序 数据交换 数据采集 协议设计 软件设计 硬件设计 时钟电路 汇编语言 上位机 子程序 下位机 研究生 波特率 C语言 机用 调试 命令 中断 

分 类 号:TP36[自动化与计算机技术—计算机系统结构] TP368.1[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象