Hello all,
I need to connect two C2000 MCUs (F28027) and communicate via I2C.
I tried the example files from this link: http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=spraan8
I used two C2000 Launchpads (I connected both of them using GPIO28 and GPIO29, and switched off serial switch) and ControlSuite I2C example code as the template (and modified the code based on spraan8) to test it.
Slave code ran as standalone (ran without debugger). And Master code ran using debugger.
But this doesn't work. The Master code loops on while (I2caRegs.I2CMDR.bit.STP == 1); // Wait for Stop condition bit to be zero (master code).
Is there any updated code for spraan8? (the one in website is from 2007)
Is there any of you that can share example code for I2C communication between two C2000 MCUs? Or some other link that I can refer to?
Thank you!
Best regards,
Maria