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.

TMS320F280039C: I2C cannot read or write data

Part Number: TMS320F280039C
Other Parts Discussed in Thread: C2000WARE

Dears,

    I have a question about TMS320F280039C I2CA,I ported a piece of I2C code that worked fine in the 280049 to the 280039C and the programme ran abnormally.

I2C is initialised as follows:

I2C Read/Write Functions:

Query I2C bus status function:

The program execution keeps on querying I2caRegs.I2CISRC.all, but this register keeps on being 0. This in turn causes the code not to run backwards, what could be the problem?

  • There's another phenomenon.I'm using the i2c_ex1_master routine in C2000WARE 5.0 that doesn't run correctly (can't read or write E2PROM data).but the i2c_ex4_eeprom_polling routine works correctly (reads/writes E2PROM data normally).

    i2c_ex1_master running status:

  • Hello Yong,

     I have a question about TMS320F280039C I2CA,I ported a piece of I2C code that worked fine in the 280049 to the 280039C and the programme ran abnormally.

    Did you already use the migration guide for F28004x to F28003x to double check any changes that may affect what you're seeing?

    The program execution keeps on querying I2caRegs.I2CISRC.all, but this register keeps on being 0.

    Can you also check the I2CSTR register to see what status bits are set/cleared?

    This in turn causes the code not to run backwards

    I'm not sure what you mean by running backwards, can you clarify?

    There's another phenomenon.I'm using the i2c_ex1_master routine in C2000WARE 5.0 that doesn't run correctly (can't read or write E2PROM data).but the i2c_ex4_eeprom_polling routine works correctly (reads/writes E2PROM data normally).

    Per the directions at the top of the i2c_ex1_master example, do you have two ControlCARDs connected as stated, with the corresponding examples loaded on each?

    Best regards,

    Omer Amir