CAN Bus Bit Timing Calculator
Work out can bus bit timing instantly with clear inputs, formula shown and shareable results.
About CAN Bus Bit Timing Calculator
CAN bit time is divided into time quanta, and the prescaler is the clock divided by bit rate times quanta per bit. Bus length is limited by propagation delay because arbitration requires every node to see the bit within one bit time: roughly 40 m at 1 Mbit/s and 500 m at 125 kbit/s.
Formula
CAN timing
prescaler = f / (bitrate x tq per bit); usable length scales inversely with bit rate
Worked example
With the default values below, CAN Bus Bit Timing Calculator returns Baud rate prescaler of 5. Change any input above and every figure here is recalculated in your browser.
Inputs used
- CAN clock
- 40 MHz
- Target bit rate
- 500 kbit/s
- Time quanta per bit
- 16 tq
- Bus length
- 40 m
Results
- Baud rate prescaler
- 5
- Actual bit rate
- 500.00 kbit/s
- Bit rate error
- 0.0000% %
- Maximum bus length at this rate
- 40 m
Step by step
- 1Values used
- 2CAN timing
- 3Baud rate prescaler= 5
- 4Actual bit rate= 500.00 kbit/s
- 5Bit rate error= 0.0000 %
- 6Maximum bus length at this rate= 40 m
Assumptions and limits
- The result is derived only from the 4 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to 4 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
Why is CAN length limited by bit rate?
Non-destructive arbitration needs the signal to reach the far end and back within the sample point of the same bit, so the bit time must exceed twice the propagation delay.
What must match between nodes?
Bit rate exactly, and the sample point closely. Mismatched sample points cause intermittent errors that only appear under load.
Related Calculators
- I2C Bus Capacitance Limit Calculator
- Microcontroller Clock Timing Calculator
- Timing Belt Pitch Length Calculator
- Acceleration Profile (Trapezoidal) Calculator
- ADC Sample Time Calculator
- AGV Fleet Size Calculator
- Analogue Sensor Scaling Calculator
- BLE Range Estimate Calculator
- Cabinet Heat Load Calculator
- Camera Field Of View For Inspection Calculator
You might also need
- Microcontroller Clock Timing CalculatorAlso in Robotics, Automation & Embedded
- I2C Bus Capacitance Limit CalculatorAlso in Robotics, Automation & Embedded
- Timing Belt Pitch Length CalculatorAlso in Robotics, Automation & Embedded
- Contactor Sizing CalculatorAlso in Robotics, Automation & Embedded
- Deadband Setting CalculatorAlso in Robotics, Automation & Embedded
- Encoder Resolution CalculatorAlso in Robotics, Automation & Embedded
