
第 17卷 第 1期
2011年 2月
上 海 大 学 学 报 (自 然 科 学 版)
JOURNAL 0F SHANGHAI UNIVERSITY(NATURAL SCIENCE)
V01.17 No.1
Feb.2011
doi:10.3969/j.issn.1007-2861.201 1.01.014
控 制 器 局 域 网位 时序 处 理 器 的 设 计 与 实 现
胡越 黎 , 徐 晓勇
(上海大学 机电工程与 自动化学 院 ,上海 200072)
摘要:在控制器局域网(controller area network,CAN)总线通信中,位时序 的处理关 系到 CAN能否 正确地 收发数据.
基于总线标称位时 间的周期结 构及位同步的工作原理 ,提出 CAN 2.0协议 标称位 时 间的一种 优化方 法 ,即将传统
的标称位时间 由4个互不交叠 的段简化成 3个 互不交叠 的段 ,并在此基础上提 出一种基 于同步状 态机 的 CAN总线
位时序处理器 的设计方法 ,提供可编程 的时 间段 来补 偿传 播延迟 时间 和相位漂 移 ,并 对设 计 的电路进 行仿 真与验
证 .结果表 明 ,相对于 CAN协议规范标称位 时间的 4个 互不交叠 的段 ,减少 了整个 位时 序处理 过程使用 的寄存 器 ,
简化了执行位 同步 的步骤 ,能更简便地处理 CAN总线通信 的位时序 ,实现了 CAN总 线协议 中对位定 时和位同步 的
控 制 ,更好地优化 了 CAN网络 的性 能.
关键词 :标称位 时间 ;同步 ;位时序处理器 ;控制器局域 网总线
中图分类号 :TN 402 文献标 志码 :A 文章 编号 :1007—2861(2011)01-0085-05
Design and Realization of Controller Area Network Bit Tim ing Processor
HU Yue—li, XU Xiao—yong
(School of Mechatronics Engineering and Automation,Shanghai University,Shanghai 200072,China)
Abstract:The way in which the bit timing of controller area network (CAN)bus communication is dealt
with determines whether the CAN controller can receive or transmit data correctly. This paper presents a
structure of nominal bit time and the principle of bit synchronization. W e give an optimized method of
nominal bit time of CAN 2.0 protocol that the four non—overlapping segments of traditional nominal bit
time is simplified to 3 non—overlapping segments.Based on this,we propose a design method for bit timing
processor(BTP)of CAN bus on the synchronized state machine.We also provide programmable time
segments to compensate for the propagation delay times and phase shifts, and show simulation and
verification of the design. The results show that the design in line with the CAN 2.0 protocol can more
easily deal with the CAN bus communication bit timing.Control of CAN bus protocol on the bit timing and
bit synchronization is realized,which better optimizes the CAN network.
Key words:nominal bit time;synchronization;bit timing processor(BTP);controller area network
(CAN)bus
控制器局域网(controller area network,CAN)是 由 ISO定义 的串行 通信 总线 ,最早 由德 国 Bosch
收稿 日期 :2009-07-20
基金项 目:上海市科委集成 电路设计专项资助项 目(09706201300);上海市信息化专项资助项 目(090344);上海市新能 源汽车高新技术产
业化基金资助项 目(09625029)
通信作者 :胡越黎(1959~),男 ,教授 ,博士生导师 ,博士 ,研究方 向为汽车电子 、机 器视觉 、【c设计等.E—mail:huyueli@shu.edu.ell
评论0
最新资源