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

583件の閲覧回数
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 返信

551件の閲覧回数
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 件の賞賛
返信