首页 | 本学科首页   官方微博 | 高级检索  
     

基于单片机的RS-485总线网络扩展方法
引用本文:王风云,田新诚,丁良. 基于单片机的RS-485总线网络扩展方法[J]. 兵工自动化, 2003, 22(4): 38-40
作者姓名:王风云  田新诚  丁良
作者单位:1. 山东大学,控制科学与工程学院,山东,济南,250061
2. 济南大学,机电工程学院,山东,济南,250061
基金项目:山东省优秀中青年科学家科研奖励基金;01BS34;
摘    要:基于单片机RS-485总线网络扩展的总线转发器由AT89C51、通信芯片MAX491、上电复位芯片X25045及光电隔离芯片TLP521-4等组成.可为总线添加4个分支,外接128个节点.支路1控制字为56H,支路2为59H,支路3为65H,支路4为95H.打开分支前应关闭全部支路。P1口输出为55H.总线选择时约定命令控制字为0FEH.AT89C5通讯采用串口方式1,波特率8位可变.定时器为可自动装入参数的方式2,采用串口中断,波特率设置与上位机匹配.

关 键 词:单片机 RS-485总线 网络扩展 转发器 远程计量系统 系统结构 工作原理 软件 智能化小区
文章编号:1006-1576(2003)04-0038-03
修稿时间:2003-05-17

RS-485 Bus-Net Extension Based on Single Chip Microcomputer
WANG Feng-yun,TIAN Xin-cheng,DING Liang. RS-485 Bus-Net Extension Based on Single Chip Microcomputer[J]. Ordnance Industry Automation, 2003, 22(4): 38-40
Authors:WANG Feng-yun  TIAN Xin-cheng  DING Liang
Affiliation:WANG Feng-yun1,TIAN Xin-cheng1,DING Liang2
Abstract:The bus transmitter of RS-485 bus extension based on microcomputer is mainly composed of AT89C51, MAX491, X25045 and TLP521-4. It can add 4 branches and 128 nodes. The control words of the four branches are respectively 56H, 59H, 65H, 95H. The port P1 should output 55H to turnoff all branches before opening any branch. When selecting bus, the control word is 0FEH. Mode one and changeable 8 bits baud rate are adopted during communication. The timer works at mode two at which parameter is loaded automatically. The AT89C51 is interrupted by serial port whose baud rate matches that of the host PC.
Keywords:RS-485 Bus  Transmitter  Bus network extension  Single chip microcomputer  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号