Other Parts Discussed in Thread: C2000WARE
Hello,
have you guys been able to provide sample code for 28035 or 28XXX I2c slave example?
Thanks
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.
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
I couldn't find this particular FIle in the folder you have mentioned. Can you recheck? thanks
The full path is C:\ti\c2000\C2000Ware_2_00_00_02\driverlib\f2838x\examples\c28x\i2c
Whitney
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.
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