AnsweredAssumed Answered

stm32f0 discovery CAN bit timing

Question asked by zrim.urban on Nov 19, 2014
Latest reply on Nov 21, 2014 by zrim.urban
Hello,

I'm having problems with bit timing configuration. I have 36MHz peripheral clock and need 500kBit/s on CAN. I'm having trouble, because I've calculated right value but I see on the oscilloscope that it isn't . Can someone please help me?

     CAN_InitStructure.CAN_Prescaler = 3;
     CAN_InitStructure.CAN_SJW = CAN_SJW_1tq;
     CAN_InitStructure.CAN_BS1 = CAN_BS1_12tq;
     CAN_InitStructure.CAN_BS2 = CAN_BS2_3tq;


thanks in advance

Outcomes