Section 20 Controller Area Network
Page 1012 of 2108 R01UH0134EJ0400 Rev. 4.00
Sep 24, 2014
SH7262 Group, SH7264 Group
(3) Bit Configuration Register (BCR0, BCR1)
The bit configuration registers (BCR0 and BCR1) are 2 X 16-bit read/write register that are used
to set CAN bit timing parameters and the baud rate pre-scaler for the CAN Interface.
The Time quanta is defined as:
Timequanta =
2 * BRP
f
clk
Where: BRP (Baud Rate Pre-scaler) is the value stored in BCR0 incremented by 1 and fclk is the
used peripheral clock frequency.
BCR1 (Address = H'004)
1514131211109876543210
0000000000000000
R/W R/W R/W R/W RR/W R/W R/W RRR/W R/W RRRR/W
TSG1[3:0] TSG2[2:0] SJW[1:0] BSP
Bit:
Initial value:
R/W:
------
Bits 15 to 12 — Time Segment 1 (TSG1[3:0] = BCR1[15:12]): These bits are used to set the
segment TSEG1 (= PRSEG + PHSEG1) to compensate for edges on the CAN Bus with a positive
phase error. A value from 4 to 16 time quanta can be set.
Bit 15:
TSG1[3]
Bit 14:
TSG1[2]
Bit 13:
TSG1[1]
Bit 12:
TSG1[0]
Description
0 0 0 0 Setting prohib ited (Initial value)
0 0 0 1 Setting prohib ited
0 0 1 0 Setting prohib ited
0 0 1 1 PRSEG + PHSEG1 = 4 time quanta
0 1 0 0 PRSEG + PHSEG1 = 5 time quanta
:
:
:
:
:
:
:
:
:
:
1 1 1 1 PRSEG + PHSEG1 = 16 time quanta
Bit 11: Reserved. The written value should always be '0' and the returned value is '0'.