SPRUJ17H March 2022 – October 2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
(FREQ = 50 MHz, Baud rate = 50Mbps)
Program MCSPIx GCD register with the value of 0x333 in-order to switch to a new desired frequency, MSS_RCM.MCSPIx_CLK_DIV_VAL.CLKDIV = 0x333
Poll for the CURRDIVR field of corresponding status register to reflect its new frequency change, MSS_RCM.MCSPIx_CLK_STATUS.CURRDIVIDER = 0x03
Update the MCSPIx GCM register with the value of 0x444 to select PLL_CORE_CLKOUT0 clock as its source, MSS_RCM.MCSPIx_CLK_SRC_SEL.CLKSRCSEL = 0x444
Poll for the CLKINUSE field of corresponding status register to reflect its new frequency change, MSS_RCM.MCSPIx_CLK_STATUS.CLKINUSE = 0x8
Program the CLKD field from the required channel config register of the corresponding instance with the value of 0x1, MCSPIx.CHxCONF.CLKD = 0x1
(FREQ = 48 MHz, Baud rate = 48Mbps)
Program MCSPIx GCD register with the value of 0x333 in-order to switch to a new desired frequency, MSS_RCM.MCSPIx_CLK_DIV_VAL.CLKDIV = 0x333
Poll for the CURRDIVR field of corresponding status register to reflect its new frequency change, MSS_RCM.MCSPIx_CLK_STATUS.CURRDIVIDER = 0x03
Update the MCSPI0 GCM register with the value of 0x333 to select PLL_PER_CLKOUT1 clock as its source, MSS_RCM.MCSPIx_CLK_SRC_SEL.CLKSRCSEL = 0x333
Poll for the CLKINUSE field of corresponding status register to reflect its new frequency change, MSS_RCM.MCSPIx_CLK_STATUS.CLKINUSE = 0x08
Program the CLKD field from the required channel config register of the corresponding instance with the value of 0x1, MSS_RCM.MCSPIx.CHxCONF.CLKD = 0x1
Baud rate relationship with MCSPI functional clock frequency,
Baud rate = fSPI / CLKD