Flexcan bit timing configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flexcan bit timing configuration

1,419 Views
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 Kudos
2 Replies

1,105 Views
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 Kudos

1,105 Views
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 Kudos