首页 | 本学科首页   官方微博 | 高级检索  
     

PC机与单片机串行通信的研究
引用本文:梁中华,王子威,祁春清,索迹.PC机与单片机串行通信的研究[J].沈阳工业大学学报,2005,27(3):302-307.
作者姓名:梁中华  王子威  祁春清  索迹
作者单位:1. 沈阳工业大学,电气工程学院,沈阳,110023
2. 辽宁石油化工大学,信息工程学院,辽宁,抚顺,113001
摘    要:针对研究生常需要数据采集而设计了一个串行通信系统.该系统上位机为PC机,下位机为MCS-51单片机.文中给出了通信协议设计,硬件设计和软件设计.协议中有6种通信命令,适用于各种数据交换;硬件方面设计了时钟电路和波特率配置;软件方面完成了中断子程序、数据交换子程序和上位机串行通讯程序的设计、编写和调试.下位机用汇编语言,上位机用C语;该串行通信系统的硬件与软件已调试成功并运行良好.

关 键 词:PC机  MCS-51单片机  串行通信系统  串行通讯程序  数据交换  数据采集  协议设计  软件设计  硬件设计  时钟电路  汇编语言  上位机  子程序  下位机  研究生  波特率  C语言  机用  调试  命令  中断
文章编号:1000-1646(2005)03-0302-06
修稿时间:2003年8月26日

Research of serial communication between PC and MCS-51 serial single chip
LIANG Zhong-hua,WANG Zi-wei,QI Chun-qing,SUO Ji.Research of serial communication between PC and MCS-51 serial single chip[J].Journal of Shenyang University of Technology,2005,27(3):302-307.
Authors:LIANG Zhong-hua  WANG Zi-wei  QI Chun-qing  SUO Ji
Affiliation:LIANG Zhong-hua~1,WANG Zi-wei~2,QI Chun-qing~1,SUO Ji~1
Abstract: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.
Keywords:serial communication  single chip computer  baud rate  multi-computer serial (communication  ) communication protocol
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《沈阳工业大学学报》浏览原始摘要信息
点击此处可从《沈阳工业大学学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号