Car dashbord communication with MCP 2515

CAN has a specified way to create the bit timing. You could read the MCP2515 datasheet to get all the details. Here is one example. 8MHz to 50kbits/s

  • MCP2515 divides the clock by 2 internally ( cannot be changed ) -> 4MHz
  • MCP2515 divides the clock by 4 ( user choice in CNF1 register ) -> 1MHz
  • 1MHz creates a 1µs Time Quanta ( that is what the CAN specification calls them )
  • take 20 of these time quanta ( user choice CNF2 and CNF3 register ) to get 20µs
  • 20µs creates 50kbits/s CAN bitrate

Yes, with CAN the bitrate is fixed.

Please do not post code as images. Use code tags and copy the code from the IDE.

When you click on this icon </> you get.

```
type or paste code here
```