CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Sun Dec 08, 2019 12:46 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue May 21, 2019 11:28 am 
Offline

Joined: Mon Feb 18, 2019 1:18 pm
Posts: 16
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?

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

3. 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)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited