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.

DSP280x interrupts

Hello,

I am working with DSP280x but i cannot manage in handling interrupts.

I am new to this work so please be clear and simple in your suggestions!

The problem is that i can compile my code with no errors but i do not know how to link my ISR function to the corresponding interrupt flag bit.

Could someone help me? Thanks

  • Elenab,

    A great place to start is the example code for the 280x.  These examples already have the interrupt structure defined.  So you can load the code without any changes, put breakpoints within the ISRs and observe that they are working.

    From that working position you can review how the interrupt keyword defines a function as an interrupt, how the peripheral interrupts are enabled, how the peripheral interrupt expansion (PIE) module is configured, and how the CPU group interrupts are configured (IFR, IER, INTM).

    The user's guide that is key for this is the System Control and Interrupts Reference Guide (SPRU712).

    Try out the example code, review the software and reference guide.  This should give you a solid understanding.

  • Elenab,

    The F280x C/C++ Header Files and Peripheral Examples are a great place to start as they provide peripheral examples with the interrupts already configured as Jeff has described. No matter if you are using SPI, SCI, ADC, etc. this software package has interrupt examples. This is available at the following link:

    http://focus.ti.com/mcu/docs/mcuprodmsptoolsw.tsp?sectionId=95&tabId=1222&familyId=916&toolTypeId=1#swtools

    Regards,

    Tim Love

  • Thank you very much!

    Elena