Table 3.2 Restrictions When Setting The Baud Rate - Toshiba TXZ+ Series Reference Manual

Hide thumbs Also See for TXZ+ Series:
Table of Contents

Advertisement

Information processing time (IPT) is the time segment starting with the sample point reserved for processing of
the sampled bit level. The information processing time is equal to three CAN system clock cycles.
[CANxBCR2]<SJW[1:0]> indicates how much the time quantum (T
lengthened or shortened when resynchronizing. Values between "1" ([CANxBCR2]<SJW[1:0]> = 00) and "4"
(<SJW[1:0]> = 11) are adjustable.
The bus line is sampled and synchronization is performed at each falling edge of the bus signal within a bit grid.
Set [CANxBCR2]<SJW[1:0]> to a value equal to or smaller than [CANxBCR2]<TSEG2[2:0]>.
Setting the [CANxBCR2]<SAM> bit enables the multiple sampling of the bus line. The level is determined by the
result from the majority decision of three sampling values. Sampling is taken at the sample point and the previous
last two CAN system clock points. When [CANxBCR1]<BRP[9:0]> is smaller than 4, the sampling performed is
always once regardless of the value set in the [CANxBCR2]<SAM> bit.
Table 3.2 shows the restrictions when the baud rate is set.
[CANxBCR1]
<BRP[9:0]>
(number of CAN clock cycles)
0
1
> 1
Restrictions for [CANxBCR2]
TSEG1> ≥
[CANxBCR2]
<
than the length of <TSEG2>.
Restrictions for [CANxBCR2]<
SJW> ≤
[CANxBCR2]<
smaller than <TSEG2>.
Restrictions for
[CANxBCR2]
The three-time sampling is not allowed under the condition that
For the
condition that [CANxBCR1]<BRP[9:0]> < 4, a one-time sampling will always be performed
regardless of the value of <SAM>.
Example: For 500 kbps
A bit has a length of 2μs. If f
transmission rate has to be programmed with a length of 12T
programmed always are smaller by one than the calculated values:
<BRP[9:0]> = 0000000001
[CANxBCR1]
<TSEG1[3:0]> = 0110 (7T
[CANxBCR2]
<TSEG2[2:0]> = 011 (4T
[CANxBCR2]
In this case, the sample point is 8 / 12 = 66%
Other combinations for
[CANxBCR2]<
<SJW>.
<SJW> should always be set to the highest value possible. <SJW> is not allowed to be greater than > <TSEG2>.
The three-time sampling of the bus cannot be set because of the condition that
smaller than "4". Thus, <SAM>=0 should be set.

Table 3.2 Restrictions when Setting the Baud Rate

T
Q length
(number of CAN clock cycles)
1
2
<BRP[9:0]>+1
TSEG1>
<
TSEG2>:
[CANxBCR2]<
SJW>
TSEG2>:
[CANxBCR2]<
<SAM>
= 12 MHz, the baud rate prescaler is set to "1". That means a bit for this data
CANOSC
)
Q
)
Q
TSEG1>, <TSEG2> are possible; with <TSEG2> = 3 the full range for
) value in bit length is allowed to be
Q
Minimum [CANxBCR2]<TSEG2> length
IPT length
3
3
3
The length of <TSEG1> should be equal to or greater
Set the synchronization jump width to a value equal to or
[CANxBCR1]
According to the above formula, the values to be
Q
.
25 / 52
TXZ+ Family
CAN Controller
T
(
Q unit)
3
2
2
<BRP[9:0]> is smaller than 4.
<BRP[9:0]> is
[CANxBCR1]
2020-10-01
Rev. 1.0

Advertisement

Table of Contents
loading

Table of Contents