首页> 外文会议>International Conference on Electrical, Automation and Mechanical Engineering >Design and Implementation of High Speed UART Based on DMA
【24h】

Design and Implementation of High Speed UART Based on DMA

机译:基于DMA的高速UART的设计与实现

获取原文

摘要

When using DMA to receive messages, it is necessary to specify the number of bytes needed to be sent to the DMA controller. When the DMA controller receives the specified bytes, DMA transmission interruption is generated. But in practical applications, the number of bytes received by UART is often unfixed. In this paper, data transmission through DMA has a fixed-length problem. We design and implement a way to solve the problem through external interruption and timer matching. This scheme takes into account the advantages of DMA transmission without the need of CPU intervention, and makes up for the defect that it cannot transmit the indefinite length message. The external interruption is generated by an external pin connected to the UART RXD pin, which is associated with the input event of the timer. Set timer as Retrigger mode. After receiving EVENT, the accumulative time of the timer is cleared. When the timer fails to receive EVENT within a certain time, it will go out of time and make message processing in the timeout interrupt service program. Due to the use of timeout interruption for message processing, rather than the fixed length interrupt processing of DMA, it can achieve the reception and processing of indefinite length message, and meet the demand of UART to transmit indefinite long packets.
机译:使用DMA接收消息时,必须指定要发送到DMA控制器所需的字节数。当DMA控制器接收到指定的字节时,生成DMA传输中断。但在实际应用中,UART接收的字节数通常是未固定的。在本文中,通过DMA的数据传输具有固定长度的问题。我们通过外部中断和定时器匹配设计和实施解决问题的方法。该方案考虑了DMA传输的优点而不需要CPU干预,并且弥补它无法传输无限长度消息的缺陷。外部中断由连接到UART RXD引脚的外部引脚生成,与定时器的输入事件相关联。将计时器设置为检测模式。收到事件后,清除计时器的累加时间。当计时器在某个时间内未能接收事件时,它将过时并在超时中断服务程序中进行消息处理。由于使用超时中断消息处理,而不是DMA的固定长度中断处理,它可以实现无限长度消息的接收和处理,并满足UART的需求来传输无限的长分组。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号