基于FIFO的串口通信模式研究
DOI:
CSTR:
作者:
作者单位:

(西北工业大学 自动化学院,西安 710072)

作者简介:

刘亚兵(1988-)男,河北廊坊人,硕士研究生,主要从事电机驱动及其控制技术方向的研究。[FQ)]

通讯作者:

中图分类号:

TP3

基金项目:


Study on Serial Interface Communication Mode Based on FIFO
Author:
Affiliation:

(School of Automation, Northwestern polytechnical University, Xi'an 710072, China)

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    详细介绍了串口通信的基本原理和实现方法,在上位机和DSP之间实现3种通信方式,即查询方式、标准SCI模式的中断方式、FIFO模式下的中断方式;同等条件下,接收和发送同等数据量数据,使用FIFO中断方式用时最少,通信效率最高,节省了CPU的机时资源;当数据量越大时,采用该方式,其优越性越明显。在FIFO中断方式中,针对上位机与DSP之间存在的上电时序问题,提出了一种找帧头重排序方法,经过实验,验证了该方法的可靠性。

    Abstract:

    This paper illustrates the key principle and method of serial interface communication. Achieving the three kinds of communication methods, namely query methods, standard SCI interrupt mode, FIFO interrupt mode between PC and DSP. Under the same conditions, with receiving and transmitting the same data, using the FIFO interrupt mode is the least, is the most efficient communication efficiency and saves the CPU resources. when the data size is large, using this method is superior. In the interrupt FIFO method, in view of the power on sequence problem between PC and DSP, this paper proposes a method for reordering. After the experiment, the reliability of the method is verified.

    参考文献
    相似文献
    引证文献
引用本文

刘亚兵,马瑞卿,张庆超,张震,白浩.基于FIFO的串口通信模式研究计算机测量与控制[J].,2014,22(7):2301-2303.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2014-02-26
  • 最后修改日期:2014-03-30
  • 录用日期:
  • 在线发布日期: 2014-12-16
  • 出版日期:
文章二维码