We are currently using your MCU model S9KEAZ128AMLH.
At present, the sampling point is expected to be 87.5% when the CAN rate is 250Kbps.
I tried the configuration with the CAN clock 12.5M, 10M, and 8M (and their 2x or half clock) and ended up only finding a set of configurations that met the requirements as follows:
CAN clock: 8M (if 4M or 16M is used, only the frequency division is changed, TSEG1 and TSEG2 do not need to be modified)
Frequency division: 2
TSEG1:12
TEEG2:1
Pls help Assist with 250kbps, 87.5% sampling point and CAN configuration according to bosch standard
们目前正在使用贵司型号为S9KEAZ128AMLH的MCU。
目前希望在CAN 速率250Kbps的情况下,配置采样点为87.5%。
我尝试在CAN时钟12.5M,10M和8M(及其2倍或二分之一时钟)的情况下进行配置,最终只找到一组满足需求的配置如下:
CAN 时钟:8M(如果采用4M或者16M,只改变分频,TSEG1和TSEG2不需要修改)
分频:2
TSEG1:12
TEEG2:1
这个配置是符合用户手册CAN寄存器部分的要求的,但是该手册(已在附件中添加)的第598页中有如下规定:
按照此规定,上述CAN的配置是不合适的。
我又尝试了一些不同的计算,未能找到合适的CAN 配置。
请贵司协助完成250kbps,采样点87.5%,且符合bosch标准的CAN 配置。
How to config?thanks,
Hi,
这个是sampling point percentage 计算公式:
对于KEA系列,这个是CAN Timing寄存器:
TSEG1最大是8, TSEG2最大是16.
举例:
10MHz CAN clock,设置分频2,则时钟是5MHz,产生0.25mhz的CAN 波特率,分频数是20.
同步段 sync=1,TSEG1=7, TSEG2=2,sampling point=1+7/(1+7+2)=80%
由于时间的粒度,不可能产生正好87.5%的sampling point.
谢谢
xiangJun rong