集成电路与嵌入式系统2025,Vol.25Issue(9):24-27,4.DOI:10.20193/j.ices2097-4191.2025.0028
FreeModbus协议栈DMA驱动实时优化研究
Real-time optimization of DMA-driven FreeModbus protocol stack
摘要
Abstract
To address the real-time performance degradation caused by frequent UART interrupts during high-volume data communica-tion in embedded systems,a DMA driver optimization scheme for the FreeModbus protocol stack is proposed which is based on the GD32E230 microcontroller.By restructuring UART transmit/receive interrupt service routines and implementing DMA mechanisms,the solution significantly reduces UART interrupt frequency and CPU occupancy.The experiment results demonstrate that under 115200 baud rate,the interrupt triggers for 255-byte frame transmission decrease from 256 times to 2 times,with a 99%reduction in CPU occupancy time.This optimization substantially alleviates system load,providing a cost-effective communication enhancement solution for resource-constrained embedded devices.关键词
DMA/FreeModbus/GD32E230/中断优化/实时性/嵌入式通信协议Key words
DMA/FreeModbus/GD32E230/interrupt optimization/real-time performance/embedded communication protocol分类
信息技术与安全科学引用本文复制引用
张融,张铭杰,程翔宇..FreeModbus协议栈DMA驱动实时优化研究[J].集成电路与嵌入式系统,2025,25(9):24-27,4.基金项目
国家重点研发计划项目(2020YFA0711602) (2020YFA0711602)