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.

i2c clock speed not properly set

Other Parts Discussed in Thread: MSP430F5338

Hi,

I am using msp430f5338. In this i have developed the i2c driver. My system is running at 20MHz external crystal and the same is assigned to SMCLK (is used as a source to i2c clock). I have set the baud rate as per the formula

(systemclk / baudrate) = i2c clkspeed => (20MHZ / 200)  = 100 kHz.

But if i observed the SCL frequency value in logic analyzer i am getting only as 74kHz. I am not able to found the reason . To confirm whether my system is running at 20MHz i have triggered a timer interrupt for 100ms, i am getting timer interrupt for every 100ms proper from this i can confirm the clock is running at 20Mhz.

Could anyone faced such akind of issue.

Thnaks in advance.

**Attention** This is a public forum