摘要
单片机串口在嵌入式系统中是很重要的模块,它实现了单片机和外设之间的数据交换。在需要大量频繁进行数据交换的系统中,如何提高数据的高效处理和减少CPU的占用时间显得格外重要。本文介绍了一种实现串口接收和发送都使用DMA的方法,减少对CPU中断的依赖,进而最大程度地减少了CPU占用时间。
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.
作者
刘贯营
Liu Guanying(Nanjing SUMEC Intelligence Technology Co.,Ltd.,Nanjing 210000,China)
出处
《单片机与嵌入式系统应用》
2022年第10期45-46,共2页
Microcontrollers & Embedded Systems