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.

MSP430 I2c Module

Other Parts Discussed in Thread: MSP430F47167

Hi,

I am using MSP430F47167. I want to interface RTC using i2c module of it. After slave adress transmission the data does not trsmitt. I dont get any erorror flag set, it just wait for UCB0TXIFG to be set. it don't enter into trasmission ISR after slave adress sent.

Thanks

  • The most likely mistake if an I2C transmission does not start is that the pullups ont he lines ar emissing.

    You cannot use the MSPs internal pullups as these are deactivated if the port is acting as output (which it is for I2C most of th etime) and therefore the line is considered held low by an external component (since there is no pullup driving it high) and as a result the I2C hardware waits forever for the bus becoming free.

    Add 1 10k pullup to VCC to both lines (SCL and SDA) and try again.

    If this isn't the cause, nobody can halp you without a look at your code.

  • Hi vasanti,

    maybe you want to have a look at the code examples for MSP430F471x6 too (http://www.ti.com/litv/zip/slac282a)?

    msp430x471x7_uscib0_i2c_10.c is an example code for I2C master transmitting multiple bytes to an I2C slave (i.e. your RTC).

    Rgds
    aBUGSworstnightmare

**Attention** This is a public forum