cancel
Showing results for 
Search instead for 
Did you mean: 

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.

RPate.5
Associate
 
1 REPLY 1

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