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.

RTOS/CC3220S-LAUNCHXL: CC3220S-LAUNCHXL: Using ADC pins as GPIO pin.

Part Number: CC3220S-LAUNCHXL
Other Parts Discussed in Thread: CC3220S, OPA4342

Tool/software: TI-RTOS

Hello everyone,

I am having some trouble configuring the adc input pins to function as gpio pins using the CC3220S launchpad. I can't get pin 57 to pin 60 corresponding to GPIO02 - GPIO05 to work as outputs. I wouldn't ask but I don't seem to have any pins left to use. I am using the SimpleLink MCU SDK Driver API Reference, link: http://dev.ti.com/tirex/content/simplelink_cc32xx_sdk_2_30_00_05/docs/tidrivers/doxygen/html/index.html. I configured for instance gpio04 (pin59) in: CC3220S_LAUNCHXL.c as:

GPIOCC32XX_GPIO_04 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW,

Configured as well in: CC3220S_LAUNCHXL.h, 'CC3220S_LAUNCHXL_GPIOName' enum as 'CC3220s_GPIO_CHIP_SELECT3'. Trying to use it with:
GPIO_write(Board_GPIO_CHIP_SELECT3, 1);            
GPIO_write(Board_GPIO_CHIP_SELECT3, 0);

This aprouch worked fine for the other pins I used, what am I doing wrong in this instance? Any help would be greatly apriciated. Also don't be afraid to tell me if I was unclear in my question anywhere.

Thank you very much for your help,
Nick

  • Hi Nick,

    To be able use pins dedicated to ADC as GPIO (02, 03, 04, 05) hardware modification of LaunchPad is mandatory. Example for GPIO_02:
    - you need to connect R101
    - remove resistors R104, R103
    - remove capacitor C54

    For more information please see schematic of LaunchPad ( www.ti.com/.../sprcag0 ). You need to disconnect voltage follower OPA4342 from signal path.

    Jan