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";
FDCAN setting the bitrate
-
- Sales & Support
- Posts: 1083
- Joined: Fri 20. Sep 2019, 13:31
Re: FDCAN setting the bitrate
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
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
Marvin Heidemann
PEAK-Support Team