Hi ,
Customer would like to switch pinmux configuration dynamically between I2C and GPIO.
Could you please share the procedure for it?
For example, currently they are thinking to follow the sequences below to switch pinmux configuration for pin G18 and G16.
The order of each step is correct? There is no any mitting steps?
・Disable I2C
ICMDR[0:IRS] =0
↓
・Change from I2C to GPIO
ICPFUNC[0:PFUNC0]=1
↓
・Change IO configuration
ICPDIR[1-0:PDIRx]=11b
↓
・Use pin G18 and G16 as GPIO
↓
・Switch back from GPIO to I2C
ICPDIR[1-0:PDIRx] = 00b
ICPFUNC[0:PFUNC0]=0
ICMDR[5:IRS]=1
Thanks and Best regards,
Hata.