Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

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

$
0
0

Part Number:TMS320C6748

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,


Viewing all articles
Browse latest Browse all 17527

Trending Articles