摘要
由PC机控制单片机组成的分级式测控系统有着广泛的应用。以往的PC机通信程序多数是通过汇编语言或BIOS功能调用的MS -DOS下的串行通信程序。这类程序编写较为困难且不易向Windows环境移植。在VisualBasic6 0编程环境下 ,利用Win32应用程序接口 (Win32API)中的通信API开发了PC机串行通信程序 ,以MCS - 5 1单片机控制板为实例给出了PC机与单片机通信的具体程序实例。
Controlled by PC,the hierarchical micro controller system is widely used.Conventional PC communication programs are usually based on MS-DOS,which apply micro assembler or BIOS communication functions.However,it is relatively difficult to write such a program and also not easy to repot it into windows environment.Applying Win32 communication API(Application Programming Interface)under Visual Basic 6.0 development environment,this paper presents a concrete program of serial communication between PC and MCS-51 controller board.
出处
《煤矿机械》
北大核心
2003年第2期37-38,共2页
Coal Mine Machinery