SPRAC35 March   2016 F28M35E20B , F28M35E20B , F28M35H22C , F28M35H22C , F28M35H52C , F28M35H52C , F28M35H52C-Q1 , F28M35H52C-Q1 , F28M35M22C , F28M35M22C , F28M35M52C , F28M35M52C , F28M36H33B2 , F28M36H33B2 , F28M36H53B2 , F28M36H53B2 , F28M36P53C2 , F28M36P53C2 , F28M36P63C2 , F28M36P63C2 , TMS320F2800132 , TMS320F2800132 , TMS320F2800133 , TMS320F2800133 , TMS320F2800135 , TMS320F2800135 , TMS320F2800137 , TMS320F2800137 , TMS320F2800152-Q1 , TMS320F2800152-Q1 , TMS320F2800153-Q1 , TMS320F2800153-Q1 , TMS320F2800154-Q1 , TMS320F2800154-Q1 , TMS320F2800155 , TMS320F2800155 , TMS320F2800155-Q1 , TMS320F2800155-Q1 , TMS320F2800156-Q1 , TMS320F2800156-Q1 , TMS320F2800157 , TMS320F2800157 , TMS320F2800157-Q1 , TMS320F2800157-Q1 , TMS320F280021 , TMS320F280021 , TMS320F280021-Q1 , TMS320F280021-Q1 , TMS320F280023 , TMS320F280023 , TMS320F280023-Q1 , TMS320F280023-Q1 , TMS320F280023C , TMS320F280023C , TMS320F280025 , TMS320F280025 , TMS320F280025-Q1 , TMS320F280025-Q1 , TMS320F280025C , TMS320F280025C , TMS320F280025C-Q1 , TMS320F280025C-Q1 , TMS320F280040-Q1 , TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C , TMS320F280049C-Q1 , TMS320F280049C-Q1 , TMS320F2801 , TMS320F2801 , TMS320F2801-Q1 , TMS320F2801-Q1 , TMS320F28015 , TMS320F28015 , TMS320F28016 , TMS320F28016 , TMS320F28016-Q1 , TMS320F28016-Q1 , TMS320F2802 , TMS320F2802 , TMS320F2802-Q1 , TMS320F2802-Q1 , TMS320F28030 , TMS320F28030 , TMS320F28030-Q1 , TMS320F28030-Q1 , TMS320F28031 , TMS320F28031 , TMS320F28031-Q1 , TMS320F28031-Q1 , TMS320F28032 , TMS320F28032 , TMS320F28032-Q1 , TMS320F28032-Q1 , TMS320F28033 , TMS320F28033 , TMS320F28033-Q1 , TMS320F28033-Q1 , TMS320F28034 , TMS320F28034 , TMS320F28034-Q1 , TMS320F28034-Q1 , TMS320F28035 , TMS320F28035 , TMS320F28035-EP , TMS320F28035-EP , TMS320F28035-Q1 , TMS320F28035-Q1 , TMS320F28044 , TMS320F28044 , TMS320F28050 , TMS320F28050 , TMS320F28051 , TMS320F28051 , TMS320F28052 , TMS320F28052 , TMS320F28052-Q1 , TMS320F28052-Q1 , TMS320F28052F , TMS320F28052F , TMS320F28052F-Q1 , TMS320F28052F-Q1 , TMS320F28052M , TMS320F28052M , TMS320F28052M-Q1 , TMS320F28052M-Q1 , TMS320F28053 , TMS320F28053 , TMS320F28054 , TMS320F28054 , TMS320F28054-Q1 , TMS320F28054-Q1 , TMS320F28054F , TMS320F28054F , TMS320F28054F-Q1 , TMS320F28054F-Q1 , TMS320F28054M , TMS320F28054M , TMS320F28054M-Q1 , TMS320F28054M-Q1 , TMS320F28055 , TMS320F28055 , TMS320F2806 , TMS320F2806 , TMS320F2806-Q1 , TMS320F2806-Q1 , TMS320F28062 , TMS320F28062 , TMS320F28062-Q1 , TMS320F28062-Q1 , TMS320F28062F , TMS320F28062F , TMS320F28062F-Q1 , TMS320F28062F-Q1 , TMS320F28063 , TMS320F28063 , TMS320F28064 , TMS320F28064 , TMS320F28065 , TMS320F28065 , TMS320F28066 , TMS320F28066 , TMS320F28066-Q1 , TMS320F28066-Q1 , TMS320F28067 , TMS320F28067 , TMS320F28067-Q1 , TMS320F28067-Q1 , TMS320F28068F , TMS320F28068F , TMS320F28068M , TMS320F28068M , TMS320F28069 , TMS320F28069 , TMS320F28069-Q1 , TMS320F28069-Q1 , TMS320F28069F , TMS320F28069F , TMS320F28069F-Q1 , TMS320F28069F-Q1 , TMS320F28069M , TMS320F28069M , TMS320F28069M-Q1 , TMS320F28069M-Q1 , TMS320F28075 , TMS320F28075 , TMS320F28075-Q1 , TMS320F28075-Q1 , TMS320F2808 , TMS320F2808 , TMS320F2808-Q1 , TMS320F2808-Q1 , TMS320F2809 , TMS320F2809 , TMS320F2810 , TMS320F2810 , TMS320F2810-Q1 , TMS320F2810-Q1 , TMS320F2811 , TMS320F2811 , TMS320F2811-Q1 , TMS320F2811-Q1 , TMS320F2812 , TMS320F2812 , TMS320F2812-Q1 , TMS320F2812-Q1 , TMS320F28232 , TMS320F28232 , TMS320F28232-Q1 , TMS320F28232-Q1 , TMS320F28234 , TMS320F28234 , TMS320F28234-Q1 , TMS320F28234-Q1 , TMS320F28235 , TMS320F28235 , TMS320F28235-Q1 , TMS320F28235-Q1 , TMS320F28332 , TMS320F28332 , TMS320F28333 , TMS320F28333 , TMS320F28334 , TMS320F28334 , TMS320F28335 , TMS320F28335 , TMS320F28335-Q1 , TMS320F28335-Q1 , TMS320F28374D , TMS320F28374D , TMS320F28374S , TMS320F28374S , TMS320F28375D , TMS320F28375D , TMS320F28375S , TMS320F28375S , TMS320F28375S-Q1 , TMS320F28375S-Q1 , TMS320F28376D , TMS320F28376D , TMS320F28376S , TMS320F28376S , TMS320F28377D , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28377D-Q1 , TMS320F28377S , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28377S-Q1 , TMS320F28379D , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379D-Q1 , TMS320F28379S , TMS320F28379S

 

  1.   Calculator for CAN Bit Timing Parameters
    1.     Trademarks
    2. 1 Introduction
    3. 2 Implementation
    4. 3 References

Implementation

The calculator first computes the propagation time as a fraction of the bit period. Either the bus length, a physical propagation delay, or both may be specified. The bus propagation speed is assumed to be two thirds of the speed of light, the standard value for twisted pair cable. The resulting delay time is doubled to give a round trip delay.

The number of time quanta per bit (known as the bit time) can range from 8 to 25. There is no analytic formula for determining the optimum bit time in advance, so the calculator tries all of them. The closest integral baud rate prescaler is calculated for each value. The BRP and Tq/bit values are then used to calculate the actual sampling bit rate. Any difference from the desired value is added to the total tolerance later.

The propagation segment is determined from the fraction computed above, rounded up. The remaining time is split between phase segments 1 and 2, with PhSeg2 rounded up and PhSeg1 rounded down.

The synchronization jump width is limited to 4 Tq at most, and cannot be longer than PhSeg1 or PhSeg2. Thus, the SJW is the minimum of these three values.

Oscillator tolerance is derived from two formulas. The first gives the condition for correct evaluation of 13 dominant bits in a row during an error condition, where there is no re-synchronization:

Equation 1. eq1_sprac35.gif

The second formula gives the condition for full re-synchronization after 10 consecutive bits:

Equation 2. eq2_sprac35.gif

The factor of 2 in each formula comes from considering two oscillators on different nodes, each having the worst-case frequency error in opposite directions. The final oscillator tolerance is the minimum of these two values minus any error in the nominal frequency.

Once the tolerances for all possible values of Tq/bit have been calculated, the settings with the best tolerance are chosen. These are reported in the output section of the calculator. The settings are then converted into eCAN and D_CAN register values, which are also reported.

The calculator can report errors based on several conditions:

  • The CAN clock frequency must be at least 8 times the bit rate to give the minimum 8 Tq/bit.
  • The propagation delay must be short enough to allow reasonable values for the phase segments.
  • The ratio between the CAN clock and the bit rate must be close enough to an integer to produce a usable BRP.

The calculator reports a warning when the exact bit rate cannot be derived from the CAN clock frequency. It also reports a warning when the propagation time is more than half the bit time, since this implies that the bus length is too long for the desired bit rate.