Hello Martin
Many thanks for your response.
The crystal clock is running at 64Mhz and the bit rate we want is 1Mbit
At the moment we are about to try the following:
locCAN->CR.B.TSYN = 0; /* Timer sync feature disabled */
locCAN->CR.B.PROPSEG = 7; /* PROSEG = 7 => Propagation Segment Time = 8tq */
locCAN->CR.B.PSEG1 = 4; /* PSEG1 = 4 => Phase Buffer Segment 5 = 5tq */
locCAN->CR.B.PSEG2 = 1; /* PSEG2 = 1 => Phase Buffer Segment 2 = 2tq */
/* Overall bittime = TSYNC + PROPSEG + PSEG1 + PSEG2 = 1 + 8 + 5 + 2 = 16tq */
/* Sample position = 14/16 = 87.5% of the total bit */
locCAN->CR.B.RJW = 1; /* RJW = 1 => Resync Jump Width = 2tq */
locCAN->CR.B.PRESDIV = 3; /* PRESDIV = 3 => S-clock=64Mhz/(3+1) = 16Mhz */
Many thanks for the pointer to the document also, looks very helpful.
Regards
Richard