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.

MSP430F5338 UART AND I2C

Other Parts Discussed in Thread: MSP430F5338

Hello

I am using MSP430F5338  in my design.

I am using I2C and UART communication.

I2C is running by SMCLK and UART is ACLK . Source of clock is REFOCLOCK for both.

When UART is off then I2C is working fine.

When both are on and I have finished UART communication and started I2C then I2C behaviour is erratic.

Can you pls let me know why I2C is not working fine after UART communication.

Is it related to clock source ?

Thanks

  • It doesn’t make much sense using SMCLK and ACLK when both are derived from REFO. Unless, of course, you use different prescalers. But on REFO, you won’t need any prescalers even for 1Bd.

    UART is on USCIA while I2C is on USCIB. Both should run completely independent. (the only crossover is the I/O pin used for STE in 4-wire SPI mode).
    So it is most likely a problem with your code. Which cannot be solved without knowing the code.

    Please strip down your application to the minimum where the problem still applies, then post it.

**Attention** This is a public forum