摘要
PC机与外设的I/O通讯通常用并行I/O卡实现,成本较高。而通过RS232串行口与2051单片机通讯实现I/O控制,能使成本显著降低,且容易扩展。PC机端程序在VC++6.0下用MSComm控件实现,单片机端程序在Keil51下用C语言编写,数据传输以16进制进行。
The parallel I/O card, which costs more,is normally used to communicate between PC and peripheral equipments.To reduce cost,I/O control is realized by RS232 serial communication between PC and MCU 2051 in this paper.The program on PC is completed by MSComm in VC++6.0,and the MCU's is written by C language in Keil51.The data is transferred in the hexadecimal format.
出处
《机械与电子》
2004年第3期63-65,共3页
Machinery & Electronics