论文部分内容阅读
一、引言单片机已广泛地应用于工业自动化过程的实时控制和数据处理。但是,由于单片机的计算功能有限,难以进行复杂的数据处理。所以,对复杂的数据处理常借助于IBM PC机来完成,而单片机主要完成一些较直接的数据处理和控制功能。为了保证控制和数据处理的实时性,单片机与IBM PC机的快速数据通信就成为一个首先必须解决的问题。本文就是针对这一情况,介绍了一种单片机与IBM PC机的DMA数据传输方法。该方法利用IBM PC主机板上已有的DMA资源,具有接口电路简单、编程容易、数据传输快和可靠性高等优点。
First, the introduction SCM has been widely used in industrial automation process of real-time control and data processing. However, due to the limited computing power of the microcontroller, complex data processing is difficult. Therefore, the complex data processing is often done by means of IBM PC machine, while the microcontroller to complete some of the more direct data processing and control functions. In order to ensure the real-time control and data processing, the fast data communication between SCM and IBM PC becomes an issue that must be solved first. This article is aimed at this situation, introduced a microcontroller and IBM PC DMA data transfer method. The method utilizes the existing DMA resources on the IBM PC motherboard, has the advantages of simple interface circuit, easy programming, fast data transmission and high reliability.