S9KEAZ128AMLH--CAN config

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S9KEAZ128AMLH--CAN config

954 次查看
caesar_song
Contributor III

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

们目前正在使用贵司型号为S9KEAZ128AMLHMCU

       目前希望在CAN 速率250Kbps的情况下,配置采样点为87.5%

       我尝试在CAN时钟12.5M10M8M(及其2倍或二分之一时钟)的情况下进行配置,最终只找到一组满足需求的配置如下:

       CAN 时钟:8M(如果采用4M或者16M,只改变分频,TSEG1TSEG2不需要修改)

       分频:2

       TSEG112

       TEEG21

       这个配置是符合用户手册CAN寄存器部分的要求的,但是该手册(已在附件中添加)的第598页中有如下规定:

 

 

       按照此规定,上述CAN的配置是不合适的。

      

       我又尝试了一些不同的计算,未能找到合适的CAN 配置。

      

       请贵司协助完成250kbps,采样点87.5%,且符合bosch标准的CAN 配置。

How to config?thanks,

标签 (1)
0 项奖励
回复
1 回复

922 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

这个是sampling point percentage 计算公式:

xiangjun_rong_1-1713168908306.png

 

对于KEA系列,这个是CAN Timing寄存器:

xiangjun_rong_2-1713169001442.png

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

0 项奖励
回复