FDCAN setting the bitrate
Posted: 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";
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";