English
Language : 

LM3S5D56 Datasheet, PDF (770/1146 Pages) Texas Instruments – Stellaris® LM3S5D56 Microcontroller
Controller Area Network (CAN) Module
(1 −(1d−f )d×f )f×nofmno≤m f≤osfcos≤c (1≤ +(1d+f )d×f )f×nofmnom
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 16-3 on page 768
■ 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.
16.3.16.1 Example for Bit Timing at High Baud Rate
In this example, the frequency of CAN clock is 25 MHz, and the bit rate is 1 Mbps.
bit time = 1 µs = n * tq = 5 * tq
tq = 200 ns
tq = (Baud rate Prescaler)/CAN Clock
Baud rate Prescaler = tq * CAN Clock
Baud rate Prescaler = 200E-9 * 25E6 = 5
tSync = 1 * tq = 200 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 400 ns = 2 * tq
\\400 is next integer multiple of tq
bit time = tSync + tTSeg1 + tTSeg2 = 5 * tq
bit time = tSync + tProp + tPhase 1 + tPhase2
tPhase 1 + tPhase2 = bit time - tSync - tProp
tPhase 1 + tPhase2 = (5 * tq) - (1 * tq) - (2 * tq)
tPhase 1 + tPhase2 = 2 * tq
tPhase1 = 1 * tq
tPhase2 = 1 * tq
\\tPhase2 = tPhase1
770
January 23, 2012
Texas Instruments-Production Data