how can I change 'the CAN sample point' with auto-calculation in MCAL

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

how can I change 'the CAN sample point' with auto-calculation in MCAL

587 次查看
Smin
Contributor II

When I select the auto-calculation option in MCAL, the generated code makes the sample point 70%.

How can I config it to make the sample point as 80%?

What is the correct way to config the CAN sample point as 80%?

 

 

With the generated MCAL code, my calculation for CAN sample point is as follows.

 

NBT = BTL =  (SYNC=1) +  (PROPSEG=3 +1) +  (PSEG1=1 +1) + (PSEG2=2 +1) = 10
SJW = RJW=1 +1 = 2
Sample point = (NBT - PSEG2) / NBT =  7/10 = 70%

 

Smin_0-1724051439324.png

Smin_1-1724051551917.png

 

 

0 项奖励
回复
1 回复

555 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Sampling point is given by point between Phase_seg1 and Phase_seg2.

davidtosenovjan_0-1724312539403.png

I can offer CAN timing calculator helping you to configure it properly:

https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC5xxx-S32Kxx-LPCxxxx-CAN-CAN-FD-bit-timing-cal...

 

0 项奖励
回复