eapbg #56 CAN Baudrate Advanced Look

Поделиться
HTML-код
  • Опубликовано: 13 июл 2024
  • Electronics and Programming Beginners Guide
    www.eapbg.com
    An advanced look at how the CAN baudrate works. How to calculate the baudrate pre scalar and how many time quanta are needed. How to choose the lengths of propagation, phase 1, phase 2 and sync jump width (SJW).
    eapbg #48 Introduction to CAN (Controller Area Network)
    • eapbg #48 Introduction...

Комментарии • 13

  • @TheCalvinSkinner
    @TheCalvinSkinner 3 года назад +2

    I love the depth of the explanation!

  • @RupietekPL
    @RupietekPL 5 лет назад

    Perfect explanation, thank you!

  • @marekj8064
    @marekj8064 3 года назад +1

    excellent lecture ! thank you

  • @dabay200
    @dabay200 5 лет назад

    great explanation

  • @erbkgupta8679
    @erbkgupta8679 4 года назад

    Thank you sir!!

  • @maksberlec4832
    @maksberlec4832 5 лет назад +1

    Thank you for great explanation! By the way, nanoseconds are in small letters : )

  • @bbug705076
    @bbug705076 2 года назад +1

    I have been using UART almost a year. I did not know it is taking the sample as you described. appreciate the explanation. which is a good inspiration for CAN baud rate.
    For ST, their SJW seems to be defined in another way? As opposed to every edge from recessive to dominant, stm32h743zi FDCAN perfroms hard synchronization from dominant to recessive, and the phase segment 1 can only be lengthened, while the phase segment 2 can only be shortened. I am not sure if I am correct. Still trying to understand the definition of SJW.

  • @UltimateCageFighter
    @UltimateCageFighter 2 года назад

    Great lesson on CAN baud rate. I am currently trying to interface with a vehicle CAN bus, the vehicle CANbus is running at 500kbps and I have calculated the BRGCON values for my program but whenever I inject a latching signal into the vehicle CANbus it just freezes the CAN on the vehicle. Any ideas as to what could be causing this?

    • @eapbg
      @eapbg  2 года назад

      Offhand I have no idea what is going on. Perhaps your calculations are wrong or there is something wrong with your setup. Does the transceiver match your setup? First configure your setup to receive silently. Then see if you can receive legible data.

  • @billwilliams6338
    @billwilliams6338 5 лет назад

    When measuring a CAN Hight and Low signals using an oscilloscope i can't tell if the CAN signals are 2.0A, 2.0B or CAN FD, how can you tell so I can set the correct CAN Baud rate?

    • @eapbg
      @eapbg  5 лет назад +2

      To determine the baudrate capture a message on the scope. Look for a transition zero one zero or vice versa. Using cursors measure the transition time. CAN has several predefined baud rates. (1M, 500k, 250k, 125k) Look to see what matches. For instance, at a 1Mbit baudrate the shortest bit is 1u second. The catch is that CAN FD will get much faster after the message ID. Actually, that is one way to tell apart CAN FD. Telling the difference between 2.0A and B involve measuring the length of the message. CAN 2.0B has a longer ID section.

  • @sanjeevkant8470
    @sanjeevkant8470 3 года назад

    I didn't get the part how bit stuffing can be explained using SJW. Can anyone clarify?

    • @eapbg
      @eapbg  3 года назад +1

      SJW needs a transition from a recessive state to a dominant state to work. Bit stuffing guarantees that such a transition occurs at least once every 10 bits. If the data in the message has a whole bunch of 1s. Bit stuffing will throw in a 0 as every fifth bit to give the needed transition.