Flexcan bit timing configuration

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

Flexcan bit timing configuration

1,808 次查看
eason_chen
Contributor I

Hi,

I am writing flexcan driver on S32K144 development kit.

But i don't know how to calculate the bit timing(prop seg, phase seg1, phase seg2... ).

Which document could i refer to?

Thanks.

0 项奖励
回复
2 回复数

1,494 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you can try e.g this simple guide(https://community.nxp.com/docs/DOC-330446 ) for nominal bit timing calculation. Just consider min/max values of each segments as given in the reference manual. 

     pastedImage_2.png

 pastedImage_1.png

Regarding the FD bit time calculation; it is calculated in similar way as nominal timing considering segments length. It is recommended to have the same prescaler for both nominal and data bit time. No bus propagation is assumed, just propagation delay of single transceiver is taken into account for propagation phase calculation. Thus there is more freedom for sample point placing, but it is usually placed somewhere in the middle of the data bit time. 

In case of transceiver propagation delay is bigger then bit time a TDC (Transceiver Delay Compensation) should be enabled and TDC offset properly set.

BR, Petr

0 项奖励
回复

1,494 次查看
eason_chen
Contributor I

Hi Petr,

First at all, thank you for your answer.

Another question about propagation delay.

In page 6, how do i get the bus propagation delay and physical interface transmitter plus receiver propagation?

Are they constant? if yes, where can i find them? If no, how do i know these two parameters?

Thanks.

BR,
Eason

0 项奖励
回复