MSCAN Controller
Programmer’s Model of Control Registers
68HC(9)12DG128 Rev 1.0
MOTOROLA
MSCAN Controller
317
31-mscan12
msCAN12 Bus Timing Register 1 (CBTR1)
SAMP — Sampling
This bit determines the number of samples of the serial bus to be
taken per bit time. If set three samples per bit are taken, the regular
one (sample point) and two preceding samples, using a majority rule.
For higher bit rates SAMP should be cleared, which means that only
one sample will be taken per bit.
0 = One sample per bit.
1 = Three samples per bit
1
.
TSEG22 – TSEG10 — Time Segment
Time segments within the bit time fix the number of clock cycles per
bit time, and the location of the sample point.
Time segment 1 (TSEG1) and time segment 2 (TSEG2) are
programmable as shown in
Table 48
.
Bit 7
6
5
4
3
2
1
Bit 0
CBTR1
$0103
RESET
R
W
SAMP
TSEG22
TSEG21
TSEG20
TSEG13
TSEG12
TSEG11
TSEG10
0
0
0
0
0
0
0
0
1. In this case, PHASE_SEG1 must be at least two time quanta.
Table 47 Time segment syntax
SYNC_SEG
Transmit point
System expects transitions to occur on the bus during this period.
A node in transmit mode will transfer a new value to the CAN bus at this point.
A node in receive mode will sample the bus at this point. If the three samples per bit option is
selected then this point marks the position of the third sample.
Sample point
Table 48 Time segment values
TSEG13 TSEG12 TSEG11 TSEG10
0
0
0
0
0
0
0
0
.
.
.
.
1
1
Time segment 1
1 Tq clock cycle
2 Tq clock cycles
3 Tq clock cycles
4 Tq clock cycles
.
.
16 Tq clock cycles
TSEG22 TSEG21 TSEG20
0
0
0
0
.
.
.
.
1
1
Time segment 2
1 Tq clock cycle
2 Tq clock cycles
.
.
8 Tq clock cycles
0
0
1
1
.
.
1
0
1
0
1
.
.
1
0
1
.
.
1