English
Language : 

LM3S2939 Datasheet, PDF (566/749 Pages) Texas Instruments – Stellaris® LM3S2939 Microcontroller
Controller Area Network (CAN) Module
■ fnom = Nominal oscillator frequency
(M1ax−(i1mdu−fm)dfr×feq)fu×nenofcmyntoo≤lmerfa≤oncsefcomsu≤cst (t1a≤ke+(1indt+ofa)dc×fco)fun×ntotfhmne ofomllowing formulas:
df d≤f (P≤2ha(×Ps2h(e1a×3s_(e1×s3e_tgb×s1iet,tgbP1i−h,taPPs−hheaaPss_heeasse__egsS2e_e)ggmS22ie))ngm2i)n
df dmfaxma=x 2=×2d×f d×ff×nofmnom
where:
■ Phase1 and Phase2 are from Table 15-3 on page 564
■ tbit = Bit Time
■ dfmax = Maximum difference between two oscillators
If more than one configuration is possible, that configuration allowing the highest oscillator tolerance
range should be chosen.
CAN nodes with different system clocks require different configurations to come to the same bit
rate. The calculation of the propagation time in the CAN network, based on the nodes with the
longest delay times, is done once for the whole network.
The CAN system's oscillator tolerance range is limited by the node with the lowest tolerance range.
The calculation may show that bus length or bit rate have to be decreased or that the oscillator
frequencies' stability has to be increased in order to find a protocol-compliant configuration of the
CAN bit timing.
15.3.16.1 Example for Bit Timing at High Baud Rate
In this example, the frequency of CAN clock is 8 MHz, and the bit rate is 1 Mbps.
bit time = 1 µs = n * tq = 8 * tq
tq = 125 ns
tq = (Baud rate Prescaler)/CAN Clock
Baud rate Prescaler = tq * CAN Clock
Baud rate Prescaler = 125E-9 * 8E6 = 1
tSync = 1 * tq = 125 ns
\\fixed at 1 time quanta
delay of bus driver 50 ns
delay of receiver circuit 30 ns
delay of bus line (40m) 220 ns
tProp 375 ns = 3 * tq
\\375 is next integer multiple of tq
bit time = tSync + tTSeg1 + tTSeg2 = 8 * tq
bit time = tSync + tProp + tPhase 1 + tPhase2
tPhase 1 + tPhase2 = bit time - tSync - tProp
tPhase 1 + tPhase2 = (8 * tq) - (1 * tq) - (3 * tq)
tPhase 1 + tPhase2 = 4 * tq
566
June 18, 2012
Texas Instruments-Production Data