cancel
Showing results for 
Search instead for 
Did you mean: 

CAN bit rate calculation

Manoj Hiwarkar
Associate III

How to calculate the time for bit of CAN in Stm32Cubemx ?

5 REPLIES 5
André Conradt
Associate

Hi Manoj,

I discovered this site a short time ago, seems to be very intuitive.

http://www.bittiming.can-wiki.info/

Oktay TURK
Associate II

0690X000006C2y9QAC.png

0690X000006C2yEQAS.png0690X000006C2yJQAS.png

Oktay TURK
Associate II
 
Oktay TURK
Associate II

0690X000006C2y9QAC.png0690X000006C2yEQAS.png0690X000006C2yJQAS.png

At the end of the day much of this is simple math

You take the APB clock and divide it by the Prescaler, and then further divide by the sum of the bit-quanta settings.

ie bit rate = (APBCLK / Prescaler) / (a + b + c)

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..