Kalyani-K - 2019-05-21

Hello everyone!

The following is the description of the operation I am working on using CodeSYS:

What : Interfacing NiRen CAN interface with Raspberry PI B+

Why : To have RasPI behave like a transmitting node on the CAN bus.

How : MCP2515 connected to the Raspberry PI via SPI interface

Questions :
1.1. Per the MCP2515 datasheet, every bit has a bit construction, which is mainly associated with the TIME QUANTA (TQ).
The formula for TQ being
TQ = 2.BRP.Tosc

   What is the BRP? 
   What is Tosc?

1.2. How do you select the oscillator frequency for using it in the program?

  1. In the configuration register for MCP2515, how do you determine and set the values of BRP bits?

  2. How do you decide upon the values for SJW, PROP_SEG, PH_SEG1, PH_SEG2 and Sampling point?

Any bit of information on the above mentioned queries will be highly appreciated.

(PS: I am NOT using the CAN bus example available on CodeSYS)