上海大学学报(自然科学版) ›› 2012, Vol. 18 ›› Issue (5): 513-518.doi: 10.3969/j.issn.1007-2861.2012.05.014

• 机电工程与自动化 • 上一篇    下一篇

SPI总线用于双处理器通信的数据链路层设计及其实现

孙斌,胡越黎,王昆   

  1. 上海大学 机电工程与自动化学院,上海 200072
  • 收稿日期:2011-09-21 出版日期:2012-10-30 发布日期:2012-10-30
  • 通讯作者: 胡越黎(1959~),男,教授,博士生导师,博士,研究方向为微电子与集成电路设计、汽车电子与系统集成、机器视觉与片上多处理系统架构.E-mail:huyueli@shu.edu.cn E-mail:huyueli@shu.edu.cn
  • 基金资助:

    上海市科委集成电路专项资金资助项目(09706201300);上海市经济与信息化委员会资助项目(090344);上海市高新技术产业化新能源汽车资助项目(09625029);上海大学研究生创新基金资助项目

Data Link Layer Design and Implementation Based on SPI Bus for Dual-Processor Communication

SUN Bin,HU Yue-li,WANG Kun   

  1. School of Mechatronics Engineering and Automation, Shanghai University, Shanghai 200072, China
  • Received:2011-09-21 Online:2012-10-30 Published:2012-10-30

摘要: 提出一种基于串行外设接口(serial peripheral interface,SPI)总线的双处理器间通信的数据链路层设计方法.该方法中的双向SPI总线具有占用引脚少(仅比SPI总线多一根线)、有完善的数据链路层协议控制的优点,能够保证数据透明地在双处理器之间进行传输.以一款带有显示单元的车身总线控制器为应用对象,采用ARM9和S12作为双处理器实现双向通信,并对这一通信方法的实现和应用情况进行描述.实验表明,采用该方法设计的协议比较完善,能够满足实际工程中的需求,对于其他SPI的应用也有很好的借鉴价值.

关键词: 串行外设接口, 数据链路层, 双处理器通信, 双向通信

Abstract: This paper proposes a data link layer design method for dual-processor communication based on serial peripheral interface (SPI) bus. Advantages of the two-way SPI bus in this design include using less pins (only one line more than the SPI bus) and perfect data link layer protocol control. These can ensure transparent data transfer between the two processors. An automotive body bus controller with a display unit was used as an application. It uses ARM9 and S12 as dual-processors to achieve two-way communication. Implementation and application of the method are described. Experiments show that the protocol is effective in engineering practices, and provides a reference to other SPI applications.

Key words: data link layer, dual-processor communication, serial peripheral interface (SPI), two-way communication

中图分类号: