I am using STM32F103VCT6 controller in one of our product and we need to configure CAN bit timings to work at 125KBPS, 250KBPS and 500KBPS at clock frequency of 36MHz (max system clock on bus). I need to know two things:
1. I am setting CAN BTR register to value 0x034B000F to work at 125KBPS. As per settings I should get Bit Sampling point at 77% but I am getting Bit Sampling point at 72%. I don't understand why.
2. What CAN BTR register value I have to set to get Bit Sampling point at more than 85% for all three baud rates (125KBPS, 250KBPS and 500KBPS)
Please help me out.