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 do I relate between the pin number and GPIO number in CC3200?

Other Parts Discussed in Thread: CC3200

I need to use different pins on the cc3200 for different operations. I got the pin map from their documentation. But I am confused how to use any pin on cc3200.

Following is what I found in their example, how they use a pin?

MAP_PinTypeGPIO(PIN_58, PIN_MODE_0, false);
MAP_GPIODirModeSet(GPIOA0_BASE, 0x8, GPIO_DIR_MODE_IN);

So how do I relate the following?

PIN_58 <-> GPIOA0_BASE  <-> 0x8 <-> Its GPIO no.

  • Hi Jinu,

    If you check the schematic, the PIN_58 is mapped to GPIO_03.
    And GPIO_03 is the 4th gpio in the first bank (GPIOA0_BASE). Hence we set the 4th bit in the map and that results in 0x8 (00001000).

    Regards,
    Raghavendra
  • A good place to start is the Technical Reference Manual. Section 16.6 has a table entitled GPIO/Pins Available for Applications. This will outline which package pins are typically available based on how your MCU is setup.

    From there look at the CC3200 SimpleLink Wi-Fi and loT Solution with MCU Launchpad Hardware document. Section 2.4.8 documents how the 2X20 pin connector is setup. The "Dev Pin#" on this document will map back to the package pin in the technical reference document. Note: Not all pins are connected as supplied by TI. Any marked with an * are not connected and in order to use them you'll have to solder a 0 ohm resister (or equivalent) into the circuit.

    Finally look at using the TI PinMux utility to help you configure the pins. If nothing else it's a good way to keep everything organized. You can easily find documentation.

  • Hi Craig,
    Thanks for the answer.

    Hi Jinu,
    I am closing this thread. If there are any follow up questions, please open a new thread and add the link to this thread.

    Regards,
    Raghavendra
  • Hi Jinu You can use the PinMUx tool for configuring the pin