Datasheet
639
SAM9263 [DATASHEET]
Atmel-6249N-ATARM-SAM9263-Datasheet_14-Mar-16
SJW is programmable to be the minimum of PHASE SEG1 and 4 TQ.
If the SMP field in the CAN_BR is set, then the incoming bit stream is sampled three times with a period of half a
CAN clock period, centered on sample point.
In the CAN controller, the length of a bit on the CAN bus is determined by the parameters (BRP, PROPAG,
PHASE1 and PHASE2).
The time quantum is calculated as follows:
Note: The BRP field must be within the range [1, 0x7F], i.e., BRP = 0 is not authorized.
To compensate for phase shifts between clock oscillators of different controllers on the bus, the CAN controller
must resynchronize on any relevant signal edge of the current transmission. The resynchronization shortens or
lengthens the bit time so that the position of the sample point is shifted with regard to the detected edge. The
resynchronization jump width (SJW) defines the maximum of time by which a bit period may be shortened or
lengthened by resynchronization.
Figure 36-5. CAN Bit Timing
Example of bit timing determination for CAN baudrate of 500 Kbit/s:
MCK = 48MHz
CAN baudrate= 500kbit/s => bit time= 2us
Delay of the bus driver: 50 ns
Delay of the receiver: 30ns
Delay of the bus line (20m): 110ns
The total number of time quanta in a bit time must be comprised between 8 and
25. If we fix the bit time to 16 time quanta:
Tcsc = 1 time quanta = bit time / 16 = 125 ns
=> BRP = (Tcsc x MCK) - 1 = 5
t
BIT
t
CSC
t
PRS
t
PHS1
t
PHS2
++ +=
t
CSC
BRP 1+()MCK⁄=
t
PRS
t
CSC
PROPAG 1+()×=
t
PHS1
t
CSC
PHASE1 1+()×=
t
PHS2
t
CSC
PHASE2 1+()×=
t
SJW
t
CSC
SJW 1+()×=
SYNC_
SEG
PROP_SEG PHASE_SEG1 PHASE_SEG2
NOMINAL BIT TIME
Sample Point
Transmission Point
MCK
CAN Clock
t
CSC
t
PRS
t
PHS1
t
PHS2