APP下载

基于CAN总线的智能微喷灌监控系统中下位机的硬件电路组成与设计

2016-06-16康兵

电脑知识与技术 2016年10期

康兵

摘要:该文重点阐述了基于CAN总线的智能微喷灌监控系统中下位机(智能节点)的硬件电路组成与设计。从系统功能要求出发,对系统的按键电路、I/O接口电路、时钟电路、数据采集电路、存储电路以及输入输出控制电路等进行方案选择,进而确定系统的总体结构,并按成本核算、可靠程度、功耗等设计原则,分别设计基于STC89C52微处理器和SJA1000芯片的CAN总线适配控制器的数据采集的模块、控制执行模块和数据处理模块的硬件系统。

关键词:微喷灌监控系统;硬件设计;CAN总线

中图分类号:TP311 文献标识码:A 文章编号:1009-3044(2016)10-0244-02

Abstract:This article expounds the CAN bus based intelligent monitor and control system for micro spray irrigation (lower machine (intelligent node) composition and design of hardware circuit. Set out from the system function requirement, the system of key circuit, I/O interface circuit, clock circuit, data acquisition circuit, storage circuit and I/O control circuit of scheme selection, and then determine the overall structure of system, and according to the cost accounting, reliability, power consumption, such as design principles, design based on STC89C52 microprocessor and SJA1000 chips CAN bus adapter controller of the data acquisition module, control module and data processing module of the hardware system.

key words: micro irrigation monitoring system; hardware design; CAN bus

CAN总线是联接上位机与下位机(各智能节点)的网络信媒介。智能节点主要用于接收和发送网络信息,总线网络接发器的电信号驱动能力限制了所有智能节点均须联接成一个网络CAN总线体系,才能达到控制基本功能,本文将这种体系称为功能模块。

1 硬件方案的确定

目前,CAN总线的接口电路的主要有两种:一是带片内CAN控制器MCU;另一种则是选择合适的MCU及独立的CAN总线控制器。使用MCU进行接口电路设计,能大大降低外部电路的复杂性,增加电路的紧凑性,电路板的制作也较为简单。但与一般的微控制器比较,其设计的灵活性较低,成本则相对较高。

如选用合适的MCU及独立CAN控制器的设计方法,电路设计可能比较复杂,但电路设计的灵活性增强,常用的MCU基本都能够满足CAN控制器电路接口的设计需求。本系统采用独立MCU与CAN控制器设计方案,其中微处理器选用STC公司生产的STC89C52。……

登录APP查看全文