摘要
为了实现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.
出处
《电子设计工程》
2011年第12期153-155,159,共4页
Electronic Design Engineering