摘要
PC机具有处理速度快,存储量大,良好的用户界面.而单片机具控制方便,接口简单等特点.因此PC机与单片机相结合在工业监控、数据采集和实时控制系统广泛应用.本文介绍了AT89C52单片机与PC机之间串行通讯实现,包括硬件结构及软件设计.单片机部分由汇编语言实现,PC机部分分别介绍了用VB语言的MSComm控件及调用W indows API函数来实现通讯.
Personal computer has high speed, large memory and favorable user interface. However, SCM has convenient control and simple interface. So the two are widely used in industrial inspect, data collection and real time control system. This paper presents the realization on serial communication of AT89C52 SCM and PC, including hardware structure and software design. The assembly language is used in SCM program and the communication realization of PC program is used by MSComm control of Visual Basic language and invoking Windows API function.
出处
《成都大学学报(自然科学版)》
2005年第3期190-192,197,共4页
Journal of Chengdu University(Natural Science Edition)