Skip to main content
Manoj Hiwarkar
Associate III
September 17, 2018
Question

CAN bit rate calculation

  • September 17, 2018
  • 5 replies
  • 1955 views

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

    This topic has been closed for replies.

    5 replies

    André Conradt
    Associate
    September 19, 2018

    Hi Manoj,

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

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

    Oktay TURK
    Associate
    September 19, 2018

    0690X000006C2y9QAC.png

    0690X000006C2yEQAS.png0690X000006C2yJQAS.png

    Oktay TURK
    Associate
    September 19, 2018
    Oktay TURK
    Associate
    September 19, 2018
    Tesla DeLorean
    Guru
    September 19, 2018

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..