摘要
本文结合雷达模拟器的设计实现,讨论了在Win-dows2000环境下实现串口通信编程的方法,并通过以API函数编写的程序为实例,分析了利用线程控制读写的方法,并给出其具体实现过程,成功地实现了PC机与DSP接口之间的串行通信。该实现方法适用于一般的串口通信,具有一定的代表性。
Based on the Radar Signal Simulator, the technique of serial communication programming in the environment of Windows2000 operating system is discussed. By taking the program for instance, which is finished by calling API functions, the method to control reading and writing by thread is analyzed and the detailed procedure to realize serial communication is provided. The serial communication between PC and DSP interface has been successfully realized. This kind of programming method of serial communication can be applied to general serial communication, which is of representative.
出处
《微计算机信息》
北大核心
2005年第3期150-151,共2页
Control & Automation
关键词
串口通信
API函数
线程
serial communication
API function
thread