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.

CC3220S-LAUNCHXL: GPIO pin map

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

Dear TI support,

On page 63 of cc3220s datasheet there are 4 GPIO ports:

0x4000 4000 0x4000 4FFF GPIO port A0

0x4000 5000 0x4000 5FFF GPIO port A1

0x4000 6000 0x4000 6FFF GPIO port A2

0x4000 7000 0x4000 7FFF GPIO port A3

How exactly are individual GPIO pins mapped? For example, how can I find the address of GPIO_3? 

Also, it says there are 27 GPIOs. How are the mentioned 4 ports built? How to decode the addressing scheme?

Thanks,

David

  • Hi David,

    Please see TRM ( www.ti.com/.../swru465 ) at chapter 5 (and 5.2.1.2). Easiest way how to get addresses for GPIO pins is to use Pinmux tool.

    Jan

  • Hi Jan,

    Thanks for the link. I will read into it now.

    I have used PinMux and copied the GPIO configuration command generated by PinMux . However it hasn't helped. Therefore I am trying to debug by looking at the pin.
    My main problem is in the following thread if you could take a look:
    e2e.ti.com/.../630517

    Thanks,
    David
  • Hi Jan,

    I read the chapter, it looks like to turn on GPIO_3 I need to write 1 to the offset address 0x020 (or complete address 0x40004020, which is bit 3 of A0 Port).

    I used pinmux that gave me the following string for configuring GPIO_3:
    GPIOCC32XX_GPIO_03 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW, // added by david

    I added the above line to CC3220S_LAUNCHXL.c.

    Now the question is how to write to that memory address for GPIO_3. There is GPIO_write command, but using
    GPIO_write(0x40004020, 0xFF); //added by david
    doesn't work. Do you know what command should be used to drive the GPIO?

    Thanks,
    David
  • Hi David,

    If you are new to TI Drivers APIs (like GPIO_write), please take a look at the SimpleLink Academy labs on TI Drivers. They would be a great starting point: dev.ti.com/.../

    Best regards,
    Sarah