Hi.
I'm trying to use the Can-bus module. "ecan_back2back" I compile and install the program. At a rate of 1Mbit worked perfectly. However, I failed to change the speed. According to the 67 numbered pages of technical documents written in the need to adjust the speed using the following formula.
Example programs in;
BRP ==> 2
TSEG1 ==> 6
TSEG2 ==> 1
written. If we were to calculate the bitrate according to these values;
SYSCLOCKOUT ==> 60.000mhz.
BRP ==> 2
Bit Time ==> (TSEG1 + 1) + (TSEG2 + 1) + 1 = (6 + 1) + (1 + 1) + 1 = 10
Bit Rate = (60/2) / (2 * 10)
= 30/20
= 1.5 Mbit must be.
However, with 1 Mbit Based on this formula is working and I reduce speed 125 kbit not.
Can you explain this situation?