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
WhatistheBRP?WhatisTosc?
1.2. How do you select the oscillator frequency for using it in the program?
In the configuration register for MCP2515, how do you determine and set the values of BRP bits?
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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
1.2. How do you select the oscillator frequency for using it in the program?
In the configuration register for MCP2515, how do you determine and set the values of BRP bits?
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)