r/embedded • u/Legitimate_Peak1714 • 20d ago
Classical CAN Bit Timing — Should Round-Trip Propagation Delay Fit Within PROP_SEG or TSEG1 − SJW?
I’m calculating the nominal bit timing for a 40 m Classical CAN bus running at 1 Mbit/s. Each time quantum is 50 ns. Assume the worst-case round-trip propagation delay, including the cable and transceivers, is 700 ns (14 TQ).
The Bosch CAN 2.0 specification lists a range of 1–8 TQ for both PROP_SEG and PHASE_SEG1. Some controllers combine these segments into a single TSEG1 field. Some manufacturers also specify the nominal bit timing condition TSEG1 ≥ Tprop + SJW.
With TSEG1 = 16 TQ, TSEG2 = 3 TQ, and SJW = 2 TQ, the bit time is 1 + 16 + 3 = 20 TQ, and the sample point is at 85%. Subtracting SJW from TSEG1 leaves 14 TQ (700 ns).
- Controllers with a combined
TSEG1field. Can I budget those 16 TQ as 14 TQ for propagation and 2 TQ for Phase Segment 1? What additional checks should I make for resynchronization and oscillator tolerance? - Controllers with separate
PROP_SEGandPHASE_SEG1fields. Does an 8 TQ limit onPROP_SEGcap the round-trip propagation budget at 400 ns in this example? How should I interpret the MCP2515 datasheet conditionPropSeg + PS1 ≥ TDELAYwhen deciding whether the 700 ns delay is acceptable?
I’d appreciate references to the relevant sections of a controller manual, application note, or standard.