SPRUJ17I March 2022 – August 2025 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
(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
Poll for the CURRDIVR field of corresponding status register to reflect its new frequency change, MSS_RCM.MCANx_CLK_STATUS.CURRDIVIDER = 0x04
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
Poll for the CLKINUSE field of corresponding status register to reflect its new frequency change, MSS_RCM.MCANx_CLK_STATUS.CLKINUSE = 0x10
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)]