FDCAN setting the bitrate

This forum covers issues concerning multiple software products.
Post Reply
KennyDemers
Posts: 2
Joined: Thu 2. Jan 2025, 13:38

FDCAN setting the bitrate

Post by KennyDemers » Wed 12. Feb 2025, 17:27

I'm writing a .NET C# application using Peak.PCANBasic.NET What is the proper string to set the bit rate to Nominal: 1 MBit/s | Data: 2 MBit/s.

The BitrateFD class has the following 2 strings defined but I need Nominal: 1 MBit/s | Data: 2 MBit/s

// A string representing the bit rate FD SAE J2284-4: Nominal: 500 kBit/s | Data: 2 MBit/s.
public const string BitrateSaeJ2284_4 = "f_clock=80000000,nom_brp=2,nom_tseg1=63,nom_tseg2=16,nom_sjw=16,data_brp=2,data_tseg1=15,data_tseg2=4,data_sjw=4";

// A string representing the bit rate FD SAE J2284-5: Nominal: 500 kBit/s | Data: 5 MBit/s.
public const string BitrateSaeJ2284_5 = "f_clock=80000000,nom_brp=1,nom_tseg1=127,nom_tseg2=32,nom_sjw=32,data_brp=1,data_tseg1=11,data_tseg2=4,data_sjw=4";

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: FDCAN setting the bitrate

Post by M.Heidemann » Thu 13. Feb 2025, 08:32

Hello,

Please use our Bitrate-Calculation tool:

https://www.peak-system.com/Bit-Rate-Ca ... .html?&L=1

Select CAN-FD and enter your parameters, this will yield the necessary values to use a custom bitrate.

BR

Marvin
---
Marvin Heidemann
PEAK-Support Team

Post Reply