SPRUJ17H March 2022 – October 2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
(FREQ = 48 MHz, Baud rate = 400KHz)
Program I2C GCD register with the value of 0x333 in-order to switch to a new desired frequency, MSS_RCM.I2C_CLK_DIV_VAL.CLKDIV = 0x333
Poll for the CURRDIVR field of corresponding status register to reflect its new frequency change, MSS_RCM.I2C_CLK_STATUS.CURRDIVIDER = 0x03
Update the I2C GCM register with the value of 0x333 to select PLL_PER_CLKOUT1 as its source, MSS_RCM.I2C_CLK_SRC_SEL.CLKSRCSEL = 0x333
Poll for the CLKINUSE field of corresponding status register to reflect its new frequency change, MSS_RCM.I2C_CLK_STATUS.CLKINUSE = 0x08
Program ICCL15_ICCL0 field of ICCLKL register of the corresponding I2C instance with calculated value of 0x35 to attain the 400KHz baud rate, MSS_I2Cx.ICCLKL. ICCL15_ICCL0 = 0x35
Program ICCL15_ICCH0 field of ICCLKH register of the corresponding I2C instance with calculated value of 0x35 to attain the 400KHz baud rate, MSS_I2Cx.ICCLKH. ICCL15_ICCH0 = 0x35
Baud rate relationship with I2C functional clock frequency,
SCL_LOW_PERIOD = [fI2C] * [IPSC+1] * [ICCLKL + d]
SCL_HIGH_PERIOD = [fI2C] * [IPSC+1] * [ICCLKH + d]