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/TMS570LS1224: GIO Interrupts

Part Number: TMS570LS1224
Other Parts Discussed in Thread: TMS5701224, HALCOGEN

Tool/software: Code Composer Studio

Hi everyone.

I am new to TI's microcontrollers. I am using tms5701224 launch pad.

I want to set rising edge interrupt on gioA0 pin.

i had generated code through halcogen in which I have enabled all interrupt related registers. but i dont know where should i write my interrupt routine.

Please help me with this.

Thank You

  • Hello Yash,

    To use interrupt of the peripheral input, you need to enable the interrupt in three levels:

    1. CPU level: enable the FIQ or IRQ. Clearing the I bit or F bit in CPSR (MCU general register)  enables the IRQ or FIQ. You can call the API: _enable_IRQ() to enable IRQ.

    2. VIM level: When an event occurs within a peripheral, the peripheral makes an interrupt request to the VIM. Then, VIM prioritizes the requests from peripherals and provides the address of the highest interrupt service routine (ISR) to the CPU. Finally, CPU starts executing the ISR instructions from that address in the ISR.

        In HALCoGen, please check the GIO High or GIO Low under VIM Channel 0-31 window.

    3. Peripheral level: please select the priority level which should match the selection in VIM window.

    The code generated by HALCoGen contains the ISR in gio.c. The the ISR calls customer function gioNotification(), you can add your code in this function.