基于CPLD的RS-232串口通信实现  被引量:6

Realization of RS-232 serial communication based on CPLD

在线阅读下载全文

作  者:刘浩淼[1] 卞树檀[1] 朱守保[1] 

机构地区:[1]第二炮兵工程学院,陕西西安710025

出  处:《电子设计工程》2011年第12期153-155,159,共4页Electronic Design Engineering

摘  要:为了实现PC机与CPLD的通信,进行了相应的研究。分析了RS-232C通信协议,自定义了数据包传输格式。根据UART模块工作状态多的特点,应用了有限状态机理论进行编程实现。为降低误码率,应用16倍频技术,实现了波特率为9 600 bit/s的串口通信。在Quartus II平台上用VerilogHDL进行编程,并通过了VC编写程序的数据传输的验证。研究成果为工程上PC机与嵌入式系统数据传输的问题提供了一种解决方法。In order to make an communication between CPLD and PC,a user-defined format of data package was given,which based on RS-232C communication protocol.According to the property that UART has many work sates,it used the theory of finite state mechine(FSM) to solve this problem.In order to reduce the bit error rate,the technology of 16-times diveded frequency was used,which helped to realize an UART with a 9600bit/s baud rate.This study gave a method to make a communication between embedded system and PC.

关 键 词:RS-232C UART CPLD VERILOGHDL 数据包格式 有限状态机 嵌入式系统 

分 类 号:TP274.2[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象