摘要
针对以MSP432为核心的多传感器异步数据采集系统中出现的中断冲突导致程序跑飞问题,通过对电路、传感器接口、时序、数据长度等方面进行分析,将电机通信接口和电子罗盘接口互换,计算出合适的通信速率,提高系统时钟工作频率。实验结果表明,通过上述设计调整能解决中断冲突导致的程序跑飞问题,同时避免修改电路,降低了研发成本。
Aiming at the problem of program runaway caused by the interruption conflict in the multi⁃sensor asynchronous data acquisition system with MSP432 as the core,by analyzing the circuit,sensor interface,timing,data length,etc.,the motor communication interface and the electronic compass interface are interchanged;Calculate the appropriate communication rate;increase the operating frequency of the system clock.The experimental results show that the above⁃mentioned design adjustment can solve the problem of program runaway caused by interrupt conflict,and at the same time avoid modifying the circuit and reduce the research and development cost.
作者
边宇舰
姜科
王忠康
李新天
BIAN Yujian;JIANG Ke;WANG Zhongkang;LI Xintian(Hangzhou Application Acoustics Research Institute,Hangzhou 310023,China)
出处
《电子设计工程》
2023年第7期169-174,共6页
Electronic Design Engineering