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.

TMS320F28069M: i2c all in interrupt

Part Number: TMS320F28069M
Other Parts Discussed in Thread: C2000WARE

Hello,

I want to read a slave device with i2c.The following picture shows single-byte read sequences for slave:

Is there a way for reading this device  totally with interrupt and without any while loop (also without FIFO mode)? can you give me a code (at least  ISR) for this (or flowchart for that)?

Regards,

Mohammad.

  • Hi Mohammad,

    This sounds possible if you implement a state machine. We don't have a software example or ISR that meets this completely.

    You'll likely need to utilize the NACK, ARDY, RRDY, XRDY, and SCD interrupts.

    You can reference the i2c_eeprom example within C2000ware to start with, as it's interrupt and state machine driven. Located at the directory below:

    C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2806x\examples\c28\i2c_eeprom

    Best,
    Kevin