Other Parts Discussed in Thread: MMWAVEICBOOST
Hello,
I have a quick question on setting the bit time for MCAN in the odc lab.
In that lab, in mss_main.c, the default settings were 1Mbps for the normal rate and 5Mbps for the data rate. The equations are listed as below.
// 1000Kbps
// Nominal Bit rate = (40)/(((8+6+5)+1)*BRP) = 1Mhz
mcanBitTimingParams.nomBrp = 0x2U;
mcanBitTimingParams.nomPropSeg = 0x8U;
mcanBitTimingParams.nomPseg1 = 0x6U;
mcanBitTimingParams.nomPseg2 = 0x5U;
mcanBitTimingParams.nomSjw = 0x1U;
// 5 Mbps
Nominal Bit rate = (40)/(((2+2+3)+1)*BRP) = 5Mhz
mcanBitTimingParams.dataBrp = 0x1U;
mcanBitTimingParams.dataPropSeg = 0x2U;
mcanBitTimingParams.dataPseg1 = 0x2U;
mcanBitTimingParams.dataPseg2 = 0x3U;
mcanBitTimingParams.dataSjw = 0x1U;
From the above equations, I understand how the 1Mbps and 5Mbps come from. From the chapter 23 (MCAN) of AWR18xx/16xx/14xx/68xx Technical Reference Manual, I learned the MCAN data rate can be set up to 10Mbps. However, I could not find the reference to calculate dataBrp, dataPropSeg, dataPseg1, dataPseg2, dataSjw in order to get 10Mbps. I am assuming those values can not be randomly set.
Is there any reference for setting those values so that I can choose a different data rate for the MCAN?
Thank you very much for the help!
Best,
Hang