SPRUJB6B November 2024 – May 2025 AM2612
(FREQ = 80MHz, Baud Rate = 8 Mbps)
Program MCAN GCD register with the value of 0x444 in-order to switch to a new desired frequency, MSS_RCM.MCANx_CLK_DIV_VAL.CLKDIV = 0x444 (In MODE1 devices)
Program MCAN GCD register with the value of 0x222 in-order to switch to a new desired frequency, MSS_RCM.MCANx_CLK_DIV_VAL.CLKDIV = 0x222 (In MODE2 devices)
Poll for the CURRDIVR field of corresponding status register to reflect its new frequency change, MSS_RCM.MCANx_CLK_STATUS.CURRDIVIDER = 0x04 (In MODE1 devices)
Poll for the CURRDIVR field of corresponding status register to reflect its new frequency change, MSS_RCM.MCANx_CLK_STATUS.CURRDIVIDER = 0x02 (In MODE2 devices)
Update the MCANx GCM register with the value of 0x444 to select PLL_CORE_CLKOUT0 as its source, MSS_RCM.MCANx_CLK_SRC_SEL.CLKSRCSEL = 0x444 (In MODE1 devices)
Update the MCANx GCM register with the value of 0x333 to select PLL_PER_CLKOUT0 as its source, MSS_RCM.MCANx_CLK_SRC_SEL.CLKSRCSEL = 0x333 (In MODE2 devices)
Poll for the CLKINUSE field of corresponding status register to reflect its new frequency change, MSS_RCM.MCANx_CLK_STATUS.CLKINUSE = 0x10 (In MODE1 devices)
Poll for the CLKINUSE field of corresponding status register to reflect its new frequency change, MSS_RCM.MCANx_CLK_STATUS.CLKINUSE = 0x08 (In MODE2 devices)
Program NBRP field of the NBTP register of the corresponding CAN instance with the calculated value of 0x0 to achieve the required baud rate of 8Mbps, MSS_MCANx.NBTP. NBRP = 0x0
Program NTSEG1 field of the NBTP register of the corresponding CAN instance with the value calculated from the formula to achieve the required baud rate, MSS_MCANx.NTSEG1.NBRP = 0x1
Program NTSEG2 field of the NBTP register of the corresponding CAN instance with the value calculated from the formula to achieve the required baud rate, MSS_MCANx.NTSEG2.NBRP = 0x1
Baud rate relationship with CAN functional clock frequency,
Baud rate = fCAN / [2 * (BRP +1) * (3 + TSEG1 + TSEG2)]