MCP2515
5.3
Programming Time Segments
5.5
Bit Timing Configuration
Some requirements for programming of the time
segments:
? PropSeg + PS1 >= PS2
? PropSeg + PS1 >= T DELAY
? PS2 > SJW
For example, assuming that a 125 kHz CAN baud rate
Registers
The configuration registers (CNF1, CNF2, CNF3)
control the bit timing for the CAN bus interface. These
registers can only be modified when the MCP2515 is in
Configuration mode (see Section 10.0 “Modes of
with F OSC = 20 MHz is desired:
5.5.1
CNF1
T OSC = 50 ns, choose BRP<5:0> = 04h, then
T Q = 500 ns. To obtain 125 kHz, the bit time must be 16
T Q .
Typically, the sampling of the bit should take place at
about 60-70% of the bit time, depending on the system
parameters. Also, typically, the T DELAY is 1-2 T Q .
The BRP<5:0> bits control the Baud Rate Prescaler.
These bits set the length of T Q relative to the OSC1
input frequency, with the minimum T Q length being
2 T OSC (when BRP<5:0> = ‘ b000000 ’). The
SJW<1:0> bits select the SJW in terms of number of
T Q s.
SyncSeg = 1 T Q and PropSeg = 2 T Q . So setting
5.5.2
CNF2
PS1 = 7 T Q would place the sample at 10 T Q after the
transition. This would leave 6 T Q for PS2.
Since PS2 is 6, according to the rules, SJW could be a
maximum of 4 T Q . However, a large SJW is typically
only necessary when the clock generation of the differ-
ent nodes is inaccurate or unstable, such as using
ceramic resonators. So a SJW of 1 is usually enough.
The PRSEG<2:0> bits set the length (in T Q ’s) of the
propagation segment. The PHSEG1<2:0> bits set the
length (in T Q ’s) of PS1.
The SAM bit controls how many times the RXCAN pin
is sampled. Setting this bit to a ‘ 1 ’ causes the bus to be
sampled three times: twice at T Q /2 before the sample
point and once at the normal sample point (which is at
5.4
Oscillator Tolerance
the end of PS1). The value of the bus is determined to
be the majority sampled. If the SAM bit is set to a ‘ 0 ’,
The bit timing requirements allow ceramic resonators
to be used in applications with transmission rates of up
to 125 kbit/sec as a rule of thumb. For the full bus
speed range of the CAN protocol, a quartz oscillator is
required. A maximum node-to-node oscillator variation
of 1.7% is allowed.
the RXCAN pin is sampled only once at the sample
point.
The BTLMODE bit controls how the length of PS2 is
determined. If this bit is set to a ‘ 1 ’, the length of PS2 is
determined by the PHSEG2<2:0> bits of CNF3 (see
Section 5.5.3 “CNF3” ). If the BTLMODE bit is set to a
‘ 0 ’, the length of PS2 is greater than that of PS1 and the
information processing time (which is fixed at 2 T Q for
the MCP2515).
5.5.3
CNF3
The PHSEG2<2:0> bits set the length (in T Q ’s) of PS2,
if the CNF2.BTLMODE bit is set to a ‘ 1 ’. If the
BTLMODE bit is set to a ‘ 0 ’, the PHSEG2<2:0> bits
have no effect.
? 2003-2012 Microchip Technology Inc.
DS21801G-page 43
相关PDF资料
MCP3905EV BOARD DEMO FOR MCP3905
MCP402XEV BOARD EVAL FOR MCP402X
MCP42XXEV BOARD EVALUATION MCP42XX
MCP43XXEV BOARD EVALUATION MCP43XX
MCP46XXDM-PTPLS BOARD PICTAIL DIGI POT MCP4XXX
MCP46XXEV EVAL BOARD FOR MCP46XX
MCP4XXXDM-DB BOARD DAUGHTER DIGIPOT MCP4XXX
MCP6S2XEV BOARD EVALUATION FOR MCP6S2X
相关代理商/技术参数
MCP2515-E 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:Stand-Alone CAN Controller with SPI Interface
MCP2515-E/ML 制造商:Microchip Technology Inc 功能描述:
MCP2515-E/P 功能描述:网络控制器与处理器 IC W/ SPI Inter 125dC RoHS:否 制造商:Micrel 产品:Controller Area Network (CAN) 收发器数量: 数据速率: 电源电流(最大值):595 mA 最大工作温度:+ 85 C 安装风格:SMD/SMT 封装 / 箱体:PBGA-400 封装:Tray
MCP2515-E/SO 功能描述:网络控制器与处理器 IC W/ SPI Inter 125dC RoHS:否 制造商:Micrel 产品:Controller Area Network (CAN) 收发器数量: 数据速率: 电源电流(最大值):595 mA 最大工作温度:+ 85 C 安装风格:SMD/SMT 封装 / 箱体:PBGA-400 封装:Tray
MCP2515-E/SORB4 制造商:Microchip Technology Inc 功能描述:
MCP2515-E/ST 功能描述:网络控制器与处理器 IC W/ SPI Inter 125dC RoHS:否 制造商:Micrel 产品:Controller Area Network (CAN) 收发器数量: 数据速率: 电源电流(最大值):595 mA 最大工作温度:+ 85 C 安装风格:SMD/SMT 封装 / 箱体:PBGA-400 封装:Tray
MCP2515-I 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:Stand-Alone CAN Controller with SPI Interface
MCP2515-I/ML 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:Stand-Alone CAN Controller with SPI Interface