38.3.3.7 Bit Time Configuration Example

The following tables illustrate the configuration of the CAN Bit Time registers, assuming there is a CAN network in an automobile with the following parameters:
  • 500 kbps NBR – sample point at 80%
  • 40 meters – minimum bus length

Table 38-2 illustrates how the bit time parameters are calculated. Since the parameters depend on multiple constraints and equations and are calculated using an iterative process, it is recommended to enter the equations in a spreadsheet.

Table 38-3 translates the calculated values into register values.

Table 38-2. Step-by-Step Nominal Bit Rate Configuration
ParameterConstraintValueUnitEquations and Comments
NBTNBT ≥ µs2µsEquation 38-1
FSYSCLKFSYSCLK ≤ 40 MHz40MHzCAN clock frequency = 40 MHz
NBRP1 to 2561-Select smallest possible BRP value to maximize resolution.
NTQNBT, FSYSCLK25nsEquation 38-2
NBT/NTQ4 to 38580-Equation 38-3
NSYNCFixed1NTQDefined in ISO11898-1
NPRSEGNPRSEG > TPROP47NTQEquation 38-5;TPROP = 910 ns, minimum NPRSEG = TPROP/NTQ = 72.8 NTQ. Selecting 95 will allow up to a 60m bus length
NTSEG12 to 256 NTQ64NTQEquation 38-4. Select NTSEG1 to achieve 80% NSP.
NTSEG21 to 128 NTQ16NTQThere are 32 NTQ left to reach NBT/NTQ = 160
NSJW1 to 128 NTQ; SJW ≤ min(NPHSEG1, NPHSEG2)16NTQMaximizing NSJW lessens the requirement for the oscillator tolerance.
Table 38-3. Bit Time Register Initialization (500k)
CxNBTCFGValue
BRP[7:0]0
TSEG[7:0]63
TSEG2[6:0]15
SJW[6:0]15