摘要
介绍以89C52单片机为下位机,PC机为上位机,通过由89C52单片机构成的通信控制器相连的集散系统(DCS)串行通信方案;研究在.NET中如何进行串行通信的编程技术,即如何利用.NET的平台调用技术实现在CLR中的托管代码调用非托管的Win32API串行通信DLL,并结合多线程、事件处理、同步访问技术来实现串行通信编程,还结合实例探讨单片机的串行通信编程技术。
This paper introduces a solution of serial communications in Distributed Control System(DCS) which uses 89C52 single-chip microprocessor as down processor and PC computer as up processor and they are connected by 89C52 single-chip microprocessor communication controller. The programming techniques of serial communications that how to realize the serial communications by using Platform Invocation Services to invoke the unmanaged win32 API serial communications DLL codes in Common Language Runtime(CLR) environment, by combining with multi-thread/event handler/synchronization access technology are studied in .NET platform. This paper also discusses the programming techniques of serial communications of single-chip microprocessor by taking a programming sample.
出处
《莆田学院学报》
2005年第2期59-63,共5页
Journal of putian University