摘要
针对研究生常需要数据采集而设计了一个串行通信系统.该系统上位机为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.
出处
《沈阳工业大学学报》
EI
CAS
2005年第3期302-307,共6页
Journal of Shenyang University of Technology