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.

How to use GPIO interrupt pin as a input/output in C6713 DSK Eval board.

I am presently work on Tms320c6713 Dsk Eval Board. I have already used GPIO  pin (1,2,3 & 8,9,10,11,12,13,14,15) as a input/output.

Now i also need to use  GPIO pin(4,5,6,7) , these are assigned for GPIO interupt pins. For my present project work, i need total 14 GPIO pins for general input/output. But i can use only 11 pins. There have four more GPIO interrupt pins [GPIO pin(4,5,6,7)]. But i don't know, how to use this pins as a general input/output.

If any body know the solution , kindly inform me please.

  • Hi Gopal,

    Which SDK are you running on your board?

    Best Regards,
    Yordan
  • Can you please try some thing like this ?

    /* GPIO Registers configuration */
    GPIO_Handle gpio_handle; /* Handle for the GPIO */
    GPIO_Config gpio_config = {
    0x00000000, // gpgc = Interruption passtrhrough mode and direct GPIO control mode
    0x0000FFFF, // gpen = All GPIO 0-15 pins enabled
    0x00000000, // gdir = All GPIO pins as inputs
    0x0000FFFF, // gpval = Stores logical level of pins
    0x00000010, // IRQ enable for pin 4
    0x00000010, // Enable Event for pin 4
    0x00000000 // gppol -- default state
    }

    gpio_handle = GPIO_open(GPIO_DEV0, GPIO_OPEN_RESET);
    GPIO_config(gpio_handle,&gpio_config);

    GPIO_pinDirection(gpio_handle,GPIO_PIN4,GPIO_INPUT);
    GPIO_pinRead(gpio_handle,GPIO_PIN4);
  • Hi Gopal Sarkar,

    Gopal said:
    Now i also need to use  GPIO pin(4,5,6,7) , these are assigned for GPIO interupt pins. For my present project work, i need total 14 GPIO pins for general input/output. But i can use only 11 pins. There have four more GPIO interrupt pins [GPIO pin(4,5,6,7)]. But i don't know, how to use this pins as a general input/output.  

    Actually the GPIO pins 4,5,6,7  are GPIO Input / Output pins  (I/O/Z) which also function as external interrupts.

    You should definitely be able to configure those pins as input/output pins using GPIO registers and just ignoring the configuration for external interrupts in the register, External Interrupt Polarity Register

  • Thanks for your kind response.

    I will try with your configuration and feedback to you soon.

  • Dear Titus S.

    I have followed your instruction for GPIO interrupt Pins(4-7)  as a input/output. But it is not working. I have followed the GPIO datasheet also

    and tried with my best with many way, but failed.  Basically, I need this pins as a output pins, but as per my searching in datasheet, i assume, it work for

    input pins only.

    I have also faced one more problem, some time some GPIO pins not working, it's not show default high voltage value(3.3V) after reset.

    Presently my GPIO pins 11 & 12 pins not wrking. But i have checked for my GPIO configuration, have no issue.

    Way this type of behavior has come some time. This issue has not come for one Eval board, it has come many of eval board from initial.

    wait for your kind reply ...

  • Dear Titus S.

    I am waiting for your kind reply for my last mail.

  • Sorry for the delay in responding.
    Let me check, what could be the problem and confirm the behavior of GPIO4-7