CANhack.de CAN-Interface RKS+CAN
Diesel technology, engine technology, vehicle diagnostics, repair & maintenance.

Calculate bitrate from BTR0 and BTR1 for SJA1000

 
New Topic Reply 🔗 🖨 CANhack.de - Index » CAN Software Tools and Software
Author Message
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post16-11-2013, 13:32    Subject: Calculate bitrate from BTR0 and BTR1 for SJA1000 Quote

Hello,

"Perhaps someone has experience with the SJA1000 (which I am not using) and can tell me how to calculate the bitrate on the CAN bus from the values of BTR0 and BTR1."

Based on my understanding of the SJA1000 documentation, BTR0/BTR1 is calculated as follows:
- ((BTR0 & 0x3f) + 1) * 0.5 yields the divisor factor for the clock.
- The lower and upper nibbles of BTR1 & 0x7f determine the total number of clock cycles that a sample period lasts, which is calculated as: 1 + lower nibble + upper nibble + 1 clock cycle of the clock divided by BTR0.
- The sampling point in relation to the period of the CAN bitrate is determined by the ratio of (1 + lower nibble) / (1 + lower nibble + upper nibble + 1).

?

Best regards, Rainer.
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface
Back to top Profile PM WWW
gapco



Joined: 12/12/2011
Posts: 20
Karma: +1 / -0   Thank you, like it!
Location: Johannesburg,South Africa

CAN Support

Post22-11-2013, 23:13    Subject: Calculate bitrate from BTR0 and BTR1 for SJA1000 Quote

Hello, My German isn't very good, and Google Translate doesn't help much. Do you want to figure out the bitrate based on the timing? Is this correct? Please post your request in English. I may be able to help, that is, if you haven't found a solution yet.
Back to top Profile PM
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post26-11-2013, 23:03    Subject: Calculate bitrate from BTR0 and BTR1 for SJA1000 Quote

Hi,

thanks, I already found a solution. icon_wink.gif

Best, Rainer.
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface
Back to top Profile PM WWW
New Topic Reply 🔗 🖨 CANhack.de - Index » CAN Software Tools and Software
Similar articles and topics
Topic Forum
No new posts Mercedes Sprinter W906 - CAN Bus Interior Bitrate Vehicle-specific Hardware and Pin Assignments
No new posts Calculate Golf4 clutch characteristic curve using CAN data Engine CAN
Jump to:  
You cannot post new topics in this forum.