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.

Interrupt configuration in sysbios

Other Parts Discussed in Thread: TMS320C6678, SYSBIOS

Hi everybody,

I'm really new to the TMS320c6678 DSP and I have one question about interrupts:

I want to use sys/bios and I tried to do the interrupt configuration on the .cfg file with XGCONF. I put the interrupt handler, the ISR function and the interrupt number. Then I set the interrupt priority and than there is my problem: on the event ID what is the number that I have to put in? For example, if my ISR funct has to serve USART interrupt (input number 148 in CIC0 table) which is the number that I have to put into Event ID?

I read the documentation but this step is not so clear to me,especially how to link the number in CIC0 table to the event number...

thank you for answering

Carmine

  • Carmine,

    The event Id is also known as the GEM event ID or the Primary Interrupt Id.

    The 148 number is a secondary interrupt number (anything from CIC is considered a secondary event).  For the C6678, there is a module in SYSBIOS called CpIntc which handles secondary interrupts.  This secondary event must be mapped into one of the Primary events.

    Here's a picture of the interrupts:

    Secondary interrupts AKA System interrupts.
    Primary interrupts AKA Host interrupts.
    Primary interrupts map 1 to 1 with GEM events.

     

    Judah