摘要
为了解决系统设计中单片机串口数量较少不能同时满足多路串行通信的问题,通过对现有串口扩展技术进行对比分析,并针对水文监测系统的应用需求,提出了基于芯片XR16L784完成串口扩展的设计方案;介绍了串口扩展芯片XR16L784的硬件设计和软件编程的具体实现方法,并在水文监测系统上进行了实验验证;结果表明:串口扩展芯片XR16L784可有效实现多个串口扩充,扩充后的串口通道能够在不同波特率下稳定、可靠实现数据双向传输;串口扩展方案解决了在多路串行通信系统中系统主控单元串口数量有限的问题,在水文监测系统中体现出很好的实用价值。
In order to solve the problem that the small number of serial-ports of single-chip can not meet multiple serial communication simultaneously in system design,by comparative analysis of the existing serial-port expansion technology and to meet the needs of hydrology monitoring system,the design scheme of serial-port expansion based on chip XR16L784 is put forward.The specific implementation method of hardware design and software programming of serial-port expansion chip XR16L784 is introduced,and it is verified in hydrology monitoring system experimentally.The result shows that multiple serial-ports expansion can be implemented by chip XR16L784 effectively,data can be transmitted and received stably and reliably at different baud rates in expanded serial-port channel.The issue of confined serial-port number within micro control unit is solved by the scheme of serial-port expansion in the multi-channel serial communication system,reflecting great practical value in the hydrology monitoring system.
出处
《计算机测量与控制》
2016年第3期14-17,共4页
Computer Measurement &Control
基金
天津市青年基金项目(12JCQNJC02400)