以工业用冷水机为控制对象,探讨了一种基于FPGA的控制器的硬件组成及软件实现方法。因FPGA很强的逻辑控制能力和数字信号处理能力,所以把它作为整个系统的控制器。它控制和处理AD7328(片内集成2个同时工作的12位AD转换器)所采集的数据。并给出了相关的主要的电路。在NiosII处理器的SOPC开发环境中实现该系统。给出本系统的NiosII定制最佳方案和顶层原理图。软件方面,给出了主程序的流程图,同时对数字增量式PID控制算法以及实现程序作了介绍。通过硬件和软件的完好配置,生成了一个低成本、控制可靠的温度控制系统。
Take the cool-water machine for industry as control object,discuss the hardware components and software realization method based on FPGA. Because of the strong logic control ability and digital signal processing ability, FPGA is as the controller of the entire system. Control and process the data collected by AD7328 which is integrated two AD converters with 12 bits working at the same time. And the main circuit was given. This system was realized in development environment of SOPC with NiosII processor. The best solution of customizing NiosII and the top-level schematic were shown. On the software side, it was given the flow chart of the main program. At the same time the incremental digital PID control algorithm and realization of the program were introduced. By the perfect configuration of hardware and software, a low-cost, reliable temperature control system was generated.