Part Number: AWR6843
Tool/software: Code Composer Studio
Dear Sir or Maddam,
could you please help me to configure the CAN-FD Interface?
I changed the CLK for the CAN module up to 80MHz:
/* Configure the divide value for MCAN source clock */
SOC_setPeripheralClock(gMmwMCB.socHandle, SOC_MODULE_MCAN, SOC_CLKSOURCE_240MPLL, 3U, &errCode); // 80Mhz
SOC_initPeripheralRam(gMmwMCB.socHandle, SOC_MODULE_MCAN, &errCode);
I found a tool to calculate the Timing Parameters for CAN-FD.
But now I need to know how I can calculate the dataPropSeg.
Can you help me to calculate the dataPropSeg for nominal bitrate and for data bitrate?
/* 1MBit */
mcanBitTimingParams.nomBrp = 0x2U;
mcanBitTimingParams.nomPropSeg = 0x???;
mcanBitTimingParams.nomPseg1 = 0x5U;
mcanBitTimingParams.nomPseg2 = 0x2U;
mcanBitTimingParams.nomSjw = 0x2U;
/* 5MBit */
mcanBitTimingParams.dataBrp = 0x2U;
mcanBitTimingParams.dataPropSeg = 0x???;
mcanBitTimingParams.dataPseg1 = 0x29U;
mcanBitTimingParams.dataPseg2 = 0x10U;
mcanBitTimingParams.dataSjw = 0x10U;
Thank you very much in advance?
Regards,
Frank