Skip to main content
RPate.5
Visitor II
September 21, 2020
Question

I am trying to establish CANbus communication using STM32F042F6P6 MCU at 27.8k speed. Please suggest me how to configure the clock in order to achieve the desired speed.

  • September 21, 2020
  • 1 reply
  • 631 views

..

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
September 21, 2020

Take the clock from the bus to which the CAN peripheral is attached, divide by prescaler, then divide by sum of bit quanta times.

To get a different rate refactor these numbers.​

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