English
Language : 

XC164-16 Datasheet, PDF (310/417 Pages) Infineon Technologies AG – 16-Bit Single-Chip Microcontroller with C166SV2 Core Volume 2 (of 2): Peripheral Units
XC164-16 Derivatives
Peripheral Units (Vol. 2 of 2)
TwinCAN Module
Calculation of the Bit Time
tq = (BRP + 1) / fCAN, if DIV8X = ‘0’
= (BRP + 1) / 8 × fCAN, if DIV8X = ‘1’
TSync = 1 tq
TSeg1 = (TSEG1 + 1) × tq (min. 3 tq)
TSeg2 = (TSEG2 + 1) × tq (min. 2 tq)
bit time = TSync + TSeg1 + TSeg2 (min. 8 tq)
To compensate phase shifts between clocks of different CAN controllers, the CAN
controller has to synchronize on any edge from the recessive to the dominant bus level.
If the hard synchronization is enabled (at the start of frame), the bit time is restarted at
the synchronization segment. Otherwise, the resynchronization jump width TSJW defines
the maximum number of time quanta a bit time may be shortened or lengthened by one
resynchronization. The value of SJW is programmed in the ABTR/BBTR registers.
TSJW = (SJW + 1) × tq
TSeg1 ≥ TSJW + Tprop
TSeg2 ≥ TSJW
The maximum relative tolerance for fCAN depends on the phase buffer segments and the
resynchronization jump width.
dfCAN ≤ min (Tb1, Tb2) / 2 × (13 × bit time - Tb2) AND
dfCAN ≤ TSJW / 20 × bit time
Calculation of the Baudrate
Baudrate = fCAN / ((BRP + 1) × (1 + TSeg1 + TSeg2))
User’s Manual
TwinCAN_X41, V2.1
21-10
V2.1, 2004-03