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.

CCS - how to setup an interrupt service routine

Hello all,

can anyone clarify me how to attach a particular function to an interrupt and enable the interrupt?

 

Regards Meereck

  • Meereck,

    Interrupt management on TMS570LS Series is explain in the VIM section of the TRM.

    The following sections describe in detail how to configure the VIM module and the CPU to accept interrupt from the peripheral modules.

    24.1 Overview

    24.2 Device Level Interrupt Management

    24.3 Interrupt Handling Inside VIM

    24.4 Interrupt Vector Table (VIM RAM)

    24.7 Examples

    The TRM is available for download from the following page:

    http://focus.ti.com/mcu/docs/mcuprodtechdoc.tsp?sectionId=95&tabId=2659&familyId=1870&techDoc=6&docCategoryId=6&viewType=mostrecent

    For each interrupt request on the VIM, a vector (RAM location within the VIM) has to point to your ISR service routine.
    For each peripheral interrupt request, a dedicated vector will have to be programmed in the VIM RAM.

    For example, on TMS570LS Series, VIM_REQ[2] correspond to RTI compare interrupt 0. The VIM_REQ[2] is link to Vector Channel 2 located at address 0xFFF8200C.
    At this address, you have to write your ISR entry point for RTI compare interrupt 0.

    Best Regards,

    Jean-Marc

  • Meereck,

    Please verify that the reply posted does answer your query, so that we can close this thread.

    Regards, Sunil