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.

CC2650 ports?

Other Parts Discussed in Thread: CC2650

I'm trying to set multiple GPIO pins in 1 cycle, to synchronize the output. There is a function PIN_setPortOutputValue but the CC2650 isn't clear about what pins share a port, if any. How do I set multiple pins with one command?

  • Hello Harsha,
    See the PINCC26XX_setPortOutputValue function which can be found in : C:\ti\tirtos_cc13xx_cc26xx_2_16_00_08\products\tidrivers_cc13xx_cc26xx_2_16_00_08\packages\ti\drivers\pin.
    The output value for all DIOs configured as GPIO output can be set in the DOUT31_0 register.
  • That doesn't seem to be working for me. I'm using the pin table:
    PIN_Config lcdPinTable[] = {
    IOID_6 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,//RS
    IOID_7 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,//E
    IOID_8 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,//DB0
    IOID_9 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,//DB1
    IOID_10 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,//DB2
    IOID_11 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,//DB3
    IOID_12 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,//DB4
    IOID_13 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,//DB5
    IOID_14 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,//DB6
    IOID_15 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,//DB7
    PIN_TERMINATE
    };


    and a test
    PIN_Handle lcdPinHandle = NULL;
    lcdPinHandle = PIN_open(&lcdPinState, lcdPinTable);
    if(!lcdPinHandle) {
    System_abort("Error in lcdDisplayFxn2: Failed to allocate GPIO pins to lcdPinHandle. Exiting program...\n");
    }

    int i = IOID_1;
    PIN_setOutputValue(lcdPinHandle, i, 1);
  • Hello,
    Your lcdPinTable does not contain IOID_1. Add IOID_1 to your pin table array or try to toggle one of the DIOs which is in the array.