English
Language : 

LM3S2637 Datasheet, PDF (558/678 Pages) Texas Instruments – Stellaris® LM3S2637 Microcontroller
Controller Area Network (CAN) Module
tPhase1 = 2 * tq
tPhase2 = 2 * tq
\\tPhase2 = tPhase1
tTSeg1 = tProp + tPhase1
tTSeg1 = (3 * tq) + (2 * tq)
tTSeg1 = 5 * tq
tTSeg2 = tPhase2
tTSeg2 = (Information Processing Time + 2) × tq
tTSeg2 = 2 * tq
\\Assumes IPT=0
tSJW = 2 * tq
\\Least of 4, Phase1 and Phase2 = 1
In the above example, the bit field values for the CANBIT register are:
TSEG2
TSEG1
SJW
BRP
= TSeg2 -1
= 2-1
=1
= TSeg1 -1
= 5-1
=4
= SJW -1
= 2-1
=1
= Baud rate prescaler - 1
= 1-1
=0
The final value programmed into the CANBIT register = 0x1440.
15.3.16.2 Example for Bit Timing at Low Baud Rate
In this example, the frequency of the CAN clock is 8 MHz, and the bit rate is 100 Kbps.
bit time = 10 µs = n * tq = 10 * tq
tq = 1 µs
tq = (Baud rate Prescaler)/CAN Clock
Baud rate Prescaler = tq * CAN Clock
Baud rate Prescaler = 1E-6 * 8E6 = 8
tSync = 1 * tq = 1 µs
\\fixed at 1 time quanta
delay of bus driver 200 ns
delay of receiver circuit 80 ns
delay of bus line (40m) 220 ns
tProp 1 µs = 1 * tq
\\1 µs is next integer multiple of tq
bit time = tSync + tTSeg1 + tTSeg2 = 10 * tq
bit time = tSync + tProp + tPhase 1 + tPhase2
tPhase 1 + tPhase2 = bit time - tSync - tProp
tPhase 1 + tPhase2 = (10 * tq) - (1 * tq) - (1 * tq)
tPhase 1 + tPhase2 = 8 * tq
tPhase1 = 4 * tq
558
June 18, 2012
Texas Instruments-Production Data