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.

  • Resolved

TMS320F28035: I2c Slave example

Expert 2125 points

Replies: 5

Views: 200

Part Number: TMS320F28035

Hello,

have you guys been able to provide sample code for 28035 or 28XXX I2c slave example?

Thanks

  • The only slave example we have currently is for the F2838x (i2c_ex3_external_loopback from C2000Ware 2.00.00.02), but it's written with a driverlib API, so it may be a bit of a challenge to translate it back to the bit-field struct header files that F28035 uses. Might help to look at it though.

    You can also try searching the forum to see if someone else has shared some slave code.

    Whitney

  • In reply to Whitney Dewey:

    I couldn't find this particular FIle in the folder you have mentioned. Can you recheck? thanks

  • In reply to sagar shah54:

    The full path is C:\ti\c2000\C2000Ware_2_00_00_02\driverlib\f2838x\examples\c28x\i2c

    Whitney

  • In reply to Whitney Dewey:

    Okay, So I have a question. i2c-int1a_isr is not triggering on (AAS =1 (i2CSTR even though I have enabled i2CIER -> AAS bit =1).

    SO am I missing something here?  It Does trigger when I have i2c Write (as a slave ) but does not work during read time.

  • In reply to sagar shah54:

    AAS gets cleared automatically when a stop condition is generated. Is it possible that the stop condition is arriving before you get a chance to read the AAS bit? Although I suspect the interrupt would still get triggered even if you didn't see the flag set--are you getting the interrupt at all on a read?

    Whitney

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.