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.

I2C sub-interrupt priorities

Other Parts Discussed in Thread: TMS320C6748

The I2C documentation states that all I2C interrupts (stop condition, rx/tx, arbitration lost, etc...) are arbitrated through one interrupt.  You can read sub-interrupt that triggered the interrupt from the Interrupt Status register.  However, if multiple interrupts arrive the arbiter will keep the time order of events, it will re-order by priority.

"

After the CPU reads I2CISR, the following events occur:
1. The source interrupt’s corresponding flag bit in I2CSTR is cleared. Exception: The AAS, ARDY,
ICRRDY, and ICXRDY bits in I2CSTR do not clear when I2CISR is read. Please refer to Table 7 for
details on how to clear these flag bits in I2CSTR.
2. The arbiter determines which of the remaining interrupt requests has the highest priority, writes the
code for that interrupt to I2CISR, and forwards the interrupt request to the CPU.

"

I cannot find the priority of these interrupts in the documentation, and googling / these forums have not yielded exact results.

What are the priorities of the interrupts below (How will the arbiter order them)?

XRDYINT

RRDYINT

ARDYINT

NACKINT

ALINT

SCDINT

AASINT

Here is the I2C reference documentation:

http://www.ti.com/lit/ug/spru877e/spru877e.pdf

  • Peter,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.

    An important bit of information is the DSP that you will be using. For some questions, it will be useful to know the versions of tools like CCS and SYS/BIOS.

    Regards,
    RandyP

  • 6748 and CCS 5.1

    I linked the proper I2C reference document above.  I did search for this information prior to posting

  • BIOS 5 (.43? .46?)

  • Peter,

    It is not clear to me what the similarities or differences are between the C672x and C674x peripherals. The User's Guide link you supplied is for the C672x I2C and you are using the C6748 device which is a C674x family member.

    For the C6748, there is now a combined document with almost all of the technical documentation on the device. There are additional documents that discuss details of the DSP core, such as the CPU & Instruction Set Reference Guide and the Megamodule Reference Guide, plus several application notes.

    Please download the Technical Reference Manual (TRM) for the C6748 from the auto-link for the Product Folder: TMS320C6748. Click on Technical Documents to get to that section.

    Also in the Product Folder, click on Software & Tools to reach the list of development tools and software available for your use. In particular, look at the StarterWare and the Development Software. You will find drivers for most peripherals, including I2C. This may help you with getting your project underway.

    Regards,
    RandyP

  • The 6748 has the same I2C hardware as the 672x line, and that guide is a more detailed guide to I2C.  Nevertheless, the information was present in the register reference of the technical reference manual... Don't I feel silly :\