网上有人说道:
(1)一般配置在75-80%的位置
(2)选择采样点位置在85%左右为佳
(3)
80% when 波特率 > 500K
87.5% when 波特率 <= 500K
The CAN bit comprises – depending on the configured “atomic” time unit called time quantum (tq) – multiple of these time quanta. The time quanta length derives from the bit-rate prescaler and the used oscillator frequency.
The CAN bit is logically divided into four segments. The synchronization segment has always a length of 1 tq. The following propagation segment and phase-segment 1 are not distinguishable for the user. It is configured as one value. The forth part is the phase-segment 2. Between the two phase-segments, the sample-point is located. If the bit-timing settings move the sample-point to the end of the bit, the propagation segment is enlarged, so that you can realize longer networks. If the sample-point is configured in the other direction, the re-synchronization capability is increased.
75%
when
波特率
> 800K
80%
when
波特率
> 500K
87.5%
when
波特率
<= 500K
75%
when
波特率
> 800K
80%
when
波特率
> 500K
87.5%
when
波特率
<= 500K
本文详细探讨了STM32设备中CAN总线采样点的合理设置,包括不同波特率下的推荐值,以及采样点对CAN网络容量的影响。通过实际接触与测试经验,提供了一套在80%-87.5%区间内的有效配置方案,旨在提高CAN网络的效率与稳定性。
1万+

被折叠的 条评论
为什么被折叠?



