摘要
提出基于AVR单片机的下位机数据采集系统与Delphi环境下PC机的串行通讯的软硬件实现方法。简要介绍系统的工作流程和通讯控制原理,详细介绍单片机与PC机通讯的硬件控制电路、通讯协议以及上下位机软件实现过程,重点介绍Delphi语言中SPComm控件的使用方法。采用软硬件相结合的方法进行仿真和调试,成功实现了功能要求。实际应用表明,这种通讯方案稳定可靠且控制简单,具有很强的工程实用性和广泛的应用前景。
This paper introduces the hardware and software actualization method of serial communication between computer under environment of Delphi and the data collecting system based on AVR single chip processor. Simply introduces the workflow of the system and the control principle of communication. Detailedly introduces the hardware circuit chart,communication agreement and actualization method of software of serial communication between computer and single chip. It specially places emphasis on the Operation of SPComm component in the programme language of Delphi, adoptes combining software and hardware to carry out emulation and debugging and succeeded to realize the required function. Physically application indicates that this proposal of communication got powerful stability and credibility and simple control, possess of strong engineering practicability and extensive market foreground.
出处
《现代电子技术》
2008年第2期123-125,共3页
Modern Electronics Technique