一种微控制器在CAN-USB转换中的设计
DOI:
CSTR:
作者:
作者单位:

(1.上海工程技术大学 汽车工程学院,上海 201620;2.华东理工大学 信息科学与工程学院,上海 200237)

作者简介:

王任重(1989-),男,江苏南通人,硕士研究生,主要从事汽车嵌入式系统及汽车CAN总线方向的研究。[FQ)]

通讯作者:

中图分类号:

TP336

基金项目:


A Micro Controller Design for the Conversion of CAN-USB
Author:
Affiliation:

(1.College of Automotive Engineering, Shanghai University of Engineering Science, Shanghai 201620;2.Institute of Information Science and Engineering, East China University of Science and Technology, Shanghai 200237,China)

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    为了解决当前市场中昂贵的CAN-USB转换模块,提出了一种简单灵活且成本较低的基于Freescale16位微控制器MC9S12XS128在CAN-USB转换模块中的设计方法,以解决CAN总线与PC主机的通讯问题;文章详细介绍了软硬件设计思路及流程,试验中设置CAN控制器为环路自检模式,串口波特率设置为9600,数据位设为8位,按照主程序设计流程,串口先接收8字节的0x88以确认串口的正确性,再接收8字节的CAN数据帧0x00~0x07;在测试期间CAN-USB模块累计运行10小时,试验证明该模块能完全满足CAN转USB的通讯需求,工作稳定可靠,简单易操作,实用性好。

    Abstract:

    In order to solve the problem of expensive CAN - USB transfer module in current market, put forward a simple and flexible and low cost design method of CAN-USB transfer module, which is based on Freescale16 bits micro controller MC9S12XS128, so that can solve the communication problems between CAN bus and host PC. Provide detailed information on the hardware and software design and procedure, when testing, set the CAN controller in loop self-test mode, the serial baud rate set to 9600, the data bits set to 8, according to the main program design process, serial port receive 8 bytes of 0x88 to verify the correctness of the serial port, and then receive 8 bytes CAN frame 0x00~0x07. During the test of CAN-USB module, a total of 10 hours was continued, which shows that the module can fully satisfy CAN -USB communication requirements, Stable and reliable, easy to operate and practical.

    参考文献
    相似文献
    引证文献
引用本文

王任重,陈凌珊,宋春月,龙飞.一种微控制器在CAN-USB转换中的设计计算机测量与控制[J].,2014,22(9):2907-2909.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2014-04-13
  • 最后修改日期:2014-05-12
  • 录用日期:
  • 在线发布日期: 2014-12-18
  • 出版日期:
文章二维码