在嵌入式系统应用中,在单个模块中存在多个MCU的条件下,提出MCU之间进行数据通信和交换的一般方法,并提出一种MCU之间为短距离的应用前提下通过在MCU两端划分发送缓存和接收缓存,并使用DMA和SPI相互配合进行高速、无需软件干预的数据传输方法,以满足频繁获取对方数据的应用需求。
Abstract
In the paper,the general method of data communication and exchange between MCUs is proposed in embedded system application under the condition that there are multiple MCUs in a single module,and puts forward a method of dividing the sending cache and the receiving cache at both ends of MCU under the premise of short distance between MCUs.DMA and SPI cooperate with each other to carry out high-speed data transmission methods without software intervention,in order to meet the need for frequent access to each other's data applications.
关键词
嵌入式系统 /
多MCU /
数据同步
Key words
embedded system /
multi-mcu /
data synchronization
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
参考文献
[1] 姚文祥.ARM Cortex-M3与Cortex-M4权威指南[M].3版.北京:清华大学出版社,2015.
[2] 张泉.嵌入式测控系统平台的设计与实现[D].西安:西北工业大学,2004.
[3] 赵中华.基于FPGA的地震勘探数据采集系统设计[D].西安:西安理工大学,2015.
[4] 曹家军.基于视觉伺服的机械臂智能控制系统设计[D].大连:大连理工大学,2021.
[5] 高红红.基于双单片机的数据通信模块的设计[J].现代电子技术,2005,28(23):3.
[6] 张福旺,焦洪磊,王旭升.基于单片机SPI通信同步数据流的设计[J].科技信息,2009(10):2.
[7] 李维林,陈玲,文富忠.单片机实现的同步采样数据采集系统[J].应用科技,2002,29(9):22-23.
[8] 谢晓钟,陈香广.双单片机主控同步I2C工作模式的研发[J].机电技术,2022(3):3.