This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Starterware/TMS320C6748: Set 400kHz for I2C with I2CMasterInitExpClk()

Part Number: TMS320C6748
Other Parts Discussed in Thread: OMAPL138

Tool/software: Starterware

Hello,

I am trying to set 400kHz for I2C on OMAPL138. I am running the sample project C:\ti\OMAPL138_StarterWare_1_10_04_01\build\armv5\cgt_ccs\omapl138\evmOMAPL138\i2c. The default I2C speed is 100kHz and working fine. The library function I2CMasterInitExpClk(SOC_I2C_0_REGS, 24000000, 8000000, 100000); is used to configured the I2C bus speed to 100kHz in the sample code. I checked the document OMAPL138_StarterWare_01_10_04_01.chm under C:\ti\OMAPL138_StarterWare_1_10_04_01\docs and it stated that "This API will divide the system clock fed to I2C module between 12 and 100Mhz.It will also configure the I2C bus clock frequency." So how can I set the I2C bus speed to 400kHz?

Thanks,