摘要
数据传输是微控制器运行中必不可缺少的操作,CPU绝大部分时间也都花费在数据的搬运上。直接存储器访问(Direct Memory Access,DMA)是大多数处理器中提高数据传输速度的方式之一。在分析了多种微控制器芯片中DMA控制器工作原理的基础上,总结出其共性技术,从而提出一种基于STM32L431RC芯片的基础构件封装方式,并将其与UART串口相结合应用到实践中。实践证明,DMA具有传输速度快、准确率高等优点,同时也提高了CPU的工作效率。
Data transfer is an indispensable operation in the operation of a microcontroller,and the majority of CPU time is spent on data handling.Direct memory access(DMA)is one of the ways to improve data transfer speed in most processors.On the basis of analyzing the working principle of DMA controller in various microcontroller chips,the generic technology was summarized,and a basic component package based on STM32L431RC chip was proposed,which was combined with UART serial port and applied in practice.It is proved that DMA has the advantages of fast transmission speed and high accuracy,and also increases the efficiency of CPU.
作者
奚圣鑫
王宜怀
李跃华
Xi Shengxin;Wang Yihuai;Li Yuehua(School of Computer Science and Technology,Soochow University,Suzhou 215000,Jiangsu,China;School of Information Science and Technology,Nantong University,Nantong 226019,Jiangsu,China)
出处
《计算机应用与软件》
北大核心
2023年第7期250-253,共4页
Computer Applications and Software
基金
国家自然科学基金项目(61672369)
江苏高校优势学科建设工程资助项目(PAPD)。