检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]第二炮兵工程学院101室,陕西西安710025
出 处:《电子设计工程》2011年第19期172-175,共4页Electronic Design Engineering
摘 要:为解决现场工业数据采集系统中远距离多机通信的难题,设计了基于RS-485总线半双工、主从式多机通信网络。采用了以PC机为主机,Visual C++6.0为平台,使用CserialPort类编写了串口通信程序,文中并给出了关键程序;以Atmega16 AVR单片机为从机,使用SN75176芯片实现了RS-485信号电平到TTL电平的转换。最后为了验证设计的可行性,在线阵CCD缝隙测量系统中进行测试,结果表明能够可靠实现采集系统的远距离多机通信,并通过调试提出了信号接地的重要性。In order to resolve the difficult problem of data acquisition system under the long distance and multi-computer communication, this paper designs a type of half-duplex and master-slave multi-computer communication based on RS-485 bus network. PC with Visual C++6.0 as master and using CserialPort class writes serial communication program, and this paper gives the key program. AVR microcontroller of Atmegal6 as slave and using SN75176 chip realizes the conversion from RS- 485 signal level to TFL level. At last, in order to test the feasibility of designed, application in linear CCD clearance measuring system, the result shows that can realize acquisition system by long-distance and multi-computer communication, and according to debugging, approve the importance of the signal to ground.
关 键 词:RS-485 多机通信 AVR单片机 CSERIALPORT类
分 类 号:TP273.5[自动化与计算机技术—检测技术与自动化装置]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.33