欢迎访问中国科学院大学学报,今天是

中国科学院大学学报 ›› 2010, Vol. 27 ›› Issue (2): 199-203.DOI: 10.7523/j.issn.2095-6134.2010.2.008

• 论文 • 上一篇    下一篇

FPGA的UART设计和实现

李海平1,2, 孔祥成1   

  1. 1. 中国科学院高能物理研究所,北京 100049;
    2. 中国科学院研究生院,北京 100190
  • 收稿日期:2009-11-10 修回日期:2009-12-07 发布日期:2010-03-15
  • 通讯作者: 李海平

Design and implementation of FPGA UART

LI Hai-Ping1,2, KONG Xiang-Cheng1   

  1. 1. Institute of High Energy Physics, Chinese Academy of Sciences, Beijing 100049, China;
    2. Graduate University, Chinese Academy of Sciences, Beijing 100190, China
  • Received:2009-11-10 Revised:2009-12-07 Published:2010-03-15

摘要:

在工程中需要进行FPGA与上位机的通信,根据现场情况选择了UART的RS-232C接口标准规范和总线标准规范进行驱动设计.驱动主要是针对近距离串口通信设计,采用了异步通信协议,同时利用FCS校验来保证通信数据的完整性和准确性.程序采用VHDL硬件语言进行编写.通过长时间测试,运行稳定可靠,并且能够提供一定的抗干扰能力.驱动的实现为FPGA与上位机的通信提供了一种可靠的方式,具有较强的实用意义.

关键词: FPGA, RS-232C驱动, VHDL, FCS校验

Abstract:

In the project, the FPGA is required to communicate with the host computer. According to the conditions of the project, RS232C is chosen as a standard bus protocol and interface specification to design the UART driver. The goal of the design is to fulfill the communication in a short range. The design uses asynchronous communication and the FCS to keep the signal integrity and the veracity of the communication data. The software is programmed in VHDL language. Through long time testing, the driver is stable in working in the whole system and owns the capability to correct some errors in the data. The design of the driver provides a reliable means for the communication between the host computer and the FPGA and it is of deep significance.

Key words: FPGA, RS-232C driver, VHDL, FCS checkout

中图分类号: