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.

Creating an external GPIO interrupt



Hello,

I would like to ask for your support in the following,

I want to add an interrupt to my system when a pulse is received from specific input pin of the chip.

I was trying to make the configuration with the xgconf but I did not manage to find the needed plaec where I am setting the pin parameters (input output, interrupt level or trigger etc) and my isr name.

Note: I do know how to configure the pin as input and interrupt, what I do not know is how to get to my isr, what is the needed configuration so after I configured the pin, and after there is an interrupt - we will get to my isr.

Note 2 (Edited): based on this http://processors.wiki.ti.com/index.php/File:BIOS_Interrupt2.jpg (it seems they are using some different tool or other version of xgconf than the one I have) I a HWI instance... I beliee the only missing is to set the EVENT ID so it will fit to the interrupt I am getting from my GPIO - but I do not know what is the event ID I need to put there. According to the tool it needs to be some number below 128...

Im using the following:

Board: EVMC6748 (I am using the TMS320C6748 DSP).

I am connected using the ethernet port to my router.

ccs: 5.4.0.00091

bios: 6_35_01_29

pspdrivers: 01_30_01

nsp: nsp_1_10_02_09

ndk: ndk_2_22_03_20

xdctools: 3_25_00_48

xgconf

Thanks in advance!

  • Gaby,

    To answer your questions:

    1. XGCONF cannot be used to configure your GPIO pin (input/output, interrupt trigger, etc). You would have to add the source code to your application.

    2. To add your interrupt, you'll need to create a Hwi Instance (using XGCONF), specify your ISR function, pick your interrupt number (INT4 - INT15 for this device) and for Event ID (See your datasheet for the Event # of the GPIO interrupt you desire - Page 93 for this device). The Event ID is what muxes that interrupt to your specific GPIO peripheral.

    Let me know if you get it working!

    Moses

  • Thanks. It works now!

    I did not know where was the event id, too many docs I have , that able you referred me solved the problem.