1、 本科毕业论文(设计、创作) 题目: 基于 CAN 总线控制的温度仪表 Temperature control instrument based on CAN bus I 摘摘 要要 随着科学技术的快速发展,工业控制和生产自动化技术的不断进步以及微处 理器的广泛应用,现场总线技术日益成为国内外各个行业的关注焦点。传统的独 立仪表已经不能满足目前控制系统大规模化、智能化、网络化方向发展的要求, 一种新型的基于现场总线的智能仪表应运而生。CAN (Controller Area Network) 现场总线作为一种自效支持分布式控制和实时控制的技术,以其稳定性好、可靠 性高、抗干扰能力强、通讯速率快
2、、维护成本低及其独特的设计,现己经成为国 际上应用最为广泛的现场总线之一。 本课题采用主流单片机STC89C52为微处理器,结合独立CAN控制器SJA1000设 计了CAN总线的数据通信系统硬件电路,使CAN总线的通讯更加直观。本文提出了 相应的通信软件模型,通信软件模型包括应用层协议模块、基本通信模块和运动 控制应用模块。 其中, 应用层协议模块包括消息标识符的分配、 数据域信息格式、 数据交换方式和报文滤波机制等内容;基本通信模块包括CAN控制器的初始化、 报 文接收、报文发送、错误处理和中断服务程序等内容;运动控制应用模块包括输 出控制命令和输入状态信息等内容。 本课题设计的数据通信系统
3、结构简单、使用方便、设计灵活,能够满足工业 控制中网络化、智能化的发展要求,对目前基于CAN总线的研究具有积极作用。 关键词:CAN数据通信,SJA1000,单片机 II Abstract With the rapid development of science and technology, industrial control and automation technology continues to progress as well as the microprocessor application, field bus technology has increasingly bec
4、ome the focus of various domestic and international industry. The traditional independent instrument can not meet the current control system of large-scale, intelligent, networked direction requirements, a novel based on the field bus in intelligent instrument emerge as the times require. CAN ( Controller Area Network ) field bus as a self efficiency support distributed control and real-time control technology, with good stability, high reliability, strong anti interference abil