实现串口接收和发送都使用DMA的方法

刘贯营

集成电路与嵌入式系统 ›› 2022, Vol. 22 ›› Issue (10) : 45-46.

PDF(908 KB)
PDF(908 KB)
集成电路与嵌入式系统 ›› 2022, Vol. 22 ›› Issue (10) : 45-46.
技术纵横

实现串口接收和发送都使用DMA的方法

  • 刘贯营
作者信息 +

Method of Using DMA for Serial Port Receiving and Sending

  • Liu Guanying
Author information +
文章历史 +

摘要

单片机串口在嵌入式系统中是很重要的模块,它实现了单片机和外设之间的数据交换。在需要大量频繁进行数据交换的系统中,如何提高数据的高效处理和减少CPU的占用时间显得格外重要。本文介绍了一种实现串口接收和发送都使用DMA的方法,减少对CPU中断的依赖,进而最大程度地减少了CPU占用时间。

Abstract

MCU usart is a very important module in embedded system,it realizes the data exchange between MCU and peripherals.In a system that requires a lot of frequent data exchange,How to improve the efficient processing of data and reduce the CPU occupation time is particularly important.A method is introduced,the method uses the DMA for serial port reception and transmission,which reduces dependence on CPU interrupts and minimizes CPU usage.

关键词

GD32F407 / 串口收发 / 双DMA

Key words

GD32F407 / usart send and reciver / dual DMA

引用本文

导出引用
刘贯营. 实现串口接收和发送都使用DMA的方法[J]. 集成电路与嵌入式系统. 2022, 22(10): 45-46
Liu Guanying. Method of Using DMA for Serial Port Receiving and Sending[J]. Integrated Circuits and Embedded Systems. 2022, 22(10): 45-46
中图分类号: TN965.8   

参考文献

[1] 唐修雄,刘伟.一种基于DMA技术的高效串口数据处理方法[J].信息通信,2020(10):8688.
[2] 李刘丹.单片机的数据串口通信研究[J].信息通信,2015(10):26.
[3] 牛洪海,臧峰,周绪贵.基于DMA的高速UART串口通信设计与实现[J].自动化仪表,2018,39(9):4548.

PDF(908 KB)

Accesses

Citation

Detail

段落导航
相关文章

/