摘要
在控制和通信领域中,经常需要将不同的仪器/设备的串口和控制平台及计算机进行互联,以实现对设备的控制、管理以及数据的共享.但在实际应用中,串口的速率以及通信格式不同,需要人工设置,不能够实现速率的自动检测和适应的功能.提出了一种新型的串行接口波特率自适应算法来实时检测接收到的波特率.本算法比其他现有的算法更简单、更快,性能更好,有效地解决了现有自适应算法局限性大、实时性差、判决时间长、适应时延大及使用不方便等问题.在算法实现中采用Verilog硬件描述语言和有限状态机,设计简单,灵活,可移植性强.
In control and conrnunication fields, in order to control, manage and share data between different equipment/devices, serial interfaces of different devices usually need to be connected with controllers and computers. However, in real applications, the speed and the communication format of these serial interfaces are variable and need to be set manually, so the automatic detection and adaptation of rate cannot be achie- ved. The paper proposes a new rate auto-adaptive algorithm for serial interfaces, which can detect and receive Baud rate in real-time. This algorithm is more efficient, simpler and faster than the existing algorithms which have great limitations, such as poor real-time capability, long-time judgmen tion, and less convenience, etc. Verilog hardware is used for the description of the machine. The design is very simple, flexible and highly portable. thigh delay in adaptalanguage and finite state
出处
《成都大学学报(自然科学版)》
2016年第3期240-244,共5页
Journal of Chengdu University(Natural Science Edition)