Hi ALL,
We have a test case of I2C0 on 8148 EVM,it works well.Now we need to use I2C3(pin num:AH6,I2C[3]_SDA;AG6,I2C[3]_SCL,which is corresponding to PINCNTL68,PINCNTL69 )on our customized board with 8148,i modified the original test case for I2C0 on EVM to fit for I2C3,but i failed with I2C write&read,even got nothing from I2C3 with scope.
what i changed:
1>enable the clock for I2C3 in CCS gel scripts
write CM_ALWON_I2C_1_CLKSTCTRL with 0x2
2>set pinmux with I2C3
//I2C3_SDA
#define PINCNTL68 (*(volatile unsigned int*)(0x4814090C))
//I2C3_SCL
#define PINCNTL69 (*(volatile unsigned int*)(0x48140910))
PINCNTL68 = 0x00060020;
PINCNTL69 = 0x00060020;
3>change I2C BUS Num from 0 to 3,that's changing the I2C0 base address 0x48028000 to I2C3 base address 0x4819E000
Did i miss anything?
xiang,
Regards,