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

RS-422通信卡的设置和程序设计
引用本文:叶文英,胡孟春,叶文伟,李忠宝.RS-422通信卡的设置和程序设计[J].兵工自动化,2003,22(4):58-60.
作者姓名:叶文英  胡孟春  叶文伟  李忠宝
作者单位:1. 中国工程物理研究院,电子工程研究所,四川,绵阳,621900
2. 中国工程物理研究院,核物理与化学研究所,四川,绵阳,621900
3. 电子科技大学,四川,成都,610054
摘    要:分布式测控系统中,上下位机相距较远,采用RS-422标准通信卡,改变卡内部跳接器的设置可获得数据发送/保持/接收寄存器、线路状态/控制寄存器、中断允许/识别寄存器的输入/输出地址,设计相应通信程序即能实现通信.作法是:选取1A0H至1A6H为端口地址并设置其相应功能:程序设计包括波特率因子、异步通信格式、工作方式和中断准许/屏蔽位等设置的初始化程序,及发送/接收通讯程序.

关 键 词:RS-422通信卡  程序设计  分布式测控系统  串行通信  端口地址  功能设置  初始化设置
文章编号:1006-1576(2003)04-0058-03
修稿时间:2003年3月20日

Set up and Programming of RS-422 Communication Card
YE Weng-ying,HU Meng-chun,YE Weng-wei,LI Zhong-bao.Set up and Programming of RS-422 Communication Card[J].Ordnance Industry Automation,2003,22(4):58-60.
Authors:YE Weng-ying  HU Meng-chun  YE Weng-wei  LI Zhong-bao
Affiliation:YE Weng-ying1,HU Meng-chun2,YE Weng-wei3,LI Zhong-bao2
Abstract:Control computer is far away from controlled apparatus in distributing measurement control system. Input and output addresses of series registers were obtained by using RS-422 standard communication card and by setting up inside jump-line units, these registers are data send and retain and incepting registers, circuitry state and control registers, interrupt permission and identification registers, and so on. Communication was realized by designing correspondence communication program. Practice methods are choosing port address from 1A0H to 1A6H and setting up correspondence function. Program design includes sending and incepting communication program and initialization programs that set up baud rate coefficient, asynchronism communication format, working mode and permitting break off and shield location, etc.
Keywords:Serial communication  RS-422 standard communication card  Programming
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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