Can bus timing register 1 (cnbt1) – Maxim Integrated High-Speed Microcontroller Users Guide: DS80C390 Supplement User Manual
Page 126

High-Speed Microcontroller User’s Guide: DS80C390 Supplement
126 of 158
can only be modified during a software initialization (SWINT=1).
BPR5 BPR4 BPR3
BPR2
BPR1 BPR0
Baud Rate Prescale
Value
*
(BRPV)
0 0 0 0 0 0
1
0 0 0 0 0 1
2
. . . . . .
.
. . . . . .
.
1 1 1 1 1 0
63
1 1 1 1 1 1
64
*Assumes BPR7-6 = 00b.
CAN Bus Timing Register 1 (CnBT1)
MOVX
Address
1
7 6 5 4 3 2 1 0
xxxx05h SMP TSEG26 TSEG25 TSEG24 TSEG13 TSEG12 TSEG11 TSEG10
SMP
Bit 7
CAN Sampling Rate. The Sampling Rate (SMP) bit determines the number of
samples to be taken during each receive bit time. Programming SMP = 0 will take
only one sample during each bit time. Programming SMP = 1 will direct the CAN
logic to take three samples during each bit time, and to use a majority voting
circuit to determine the final bit value. When SMP is set to a 1, two additional t
qu
clock cycles are added to Time Segment One. SMP should not be set to one when
the Baud Rate Prescale Value (BRPV) is less than 4. This bit can only be
modified during a software initialization (SWINT=1).
TSEG26-24
Bits 6-4
CAN Time Segment 2 Select. The eight states defined by the TSEG26 -
TSEG24 bits determine the number of clock cycles in the Phase Segment 2
portion of the nominal bit time, which occurs after the sample time. These bits
can only be modified during a software initialization (SWINT=1).
TSEG26
TSEG25
TSEG24 Time Segment Two Length
(Number in parenthesis is TS2_LEN value used in
bit timing calculations)
0 0 0
Invalid
0 0 1
2
t
qu
(2)
0 1 0
3
t
qu
(3)
. . .
.
1 1 0
7
t
qu
(7)
1 1 1
8
t
qu
(8)
TSEG13-10
Bits 3-0
CAN Time Segment 1 Select. The sixteen states defined by the TSEG13 -
TSEG10 bits determine the number of clock cycles in the Phase Segment 1
portion of the nominal bit time, which occurs before the sample time. These bits
can only be modified during a software initialization (SWINT=1).