Intel 8XC196K Series User Manual page 539

Table of Contents

Advertisement

8XC196K x, J x , CA USER'S MANUAL
CAN_BTIME1
CAN_BTIME1
(87C196CA)
Program the CAN bit timing 1 (CAN_BTIME1) register to define the sample time and the sample
mode. The CAN controller samples the bus during the last one (in single-sample mode) or three (in
three-sample mode) time quanta of t
Therefore, specifying the lengths of t
mission point.
7
87C196CA
SPL
Bit
Bit
Number
Mnemonic
7
SPL
6:4
TSEG2
3:0
TSEG1
NOTES:
1.
The CCE bit (CAN_CON.6) must be set to enable write access to this register.
2.
For correct operation according to the CAN protocol, the total bit time length must be at least 8
time quanta, so the sum of the programmed values of TSEG1 and TSEG2 must be at least 5.
(The total bit time is the sum of t
quanta, and the hardware adds 1 to both TSEG1 and TSEG2. Therefore, if TSEG1 + TSEG2 =
5, the total bit length will be equal to 8 (1+5+1+1)).
C-12
, and initiates a transmission at the end of t
1
TSEG
and t
1
TSEG
TSEG
TSEG2.2
TSEG2.1
TSEG2.0
Sampling Mode
This bit determines how many samples are taken to determine a valid bit
value.
1 = 3 samples, using majority logic
0 = 1 sample
Time Segment 2
This field determines the length of time that follows the sample point within
a bit time. Valid programmed values are 1–7; the hardware adds 1 to this
value. (Note 2)
Time Segment 1
This field defines the length of time that precedes the sample point within a
bit time. Valid programmed values are 2–15; the hardware adds 1 to this
value. In three-sample mode, the hardware adds 2 time quanta to allow
time for the two additional samples. (Note 2)
+ t
_
SYNC
SEG
Reset State:
defines both the sample point and the trans-
2
TSEG1.3
TSEG1.2
Function
+ t
. The length of t
1
2
TSEG
TSEG
Address:
1E4FH
Unchanged
.
2
TSEG
0
TSEG1.1
TSEG1.0
is 1 time
_
SYNC
SEG

Advertisement

Table of Contents
loading

Table of Contents