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.

Basic GPIO Question

Hello,

I have a simple question how to set a muliplex I/O line as a basic GPIO.  Okay, GPIO_120 to 129 can either be selected as a MMC CARD, MCSPI2 interface or as GPIO.  If I choosing the GPIO_122 through 125 as a SPI interface then can  I choose GPIO_120,121,126~129 as a basic I/O line.  I also can select the GPIO_120~129 as a basic I/O line by not selecting the MMC and MC SPI2 interface. 

MMC1_CLK/GPIO_120,

MMC1_CMD/GPIO_121,

MMC1_DAT0/MCSPI2_CLK/GPIO_122,

MMC1_DAT1/MCSPI2_SIMO/GPIO_123,

MMC1_DAT2/MCSPI2_SOMI/GPIO_124,

MMC1_DAT3/MCSPI2_CS0/GPIO_125,

MMC1_DAT4/GPIO_126,

MMC1_DAT5/GPIO_127,

MMC1_DAT6/GPIO_128,

MMC1_DAT7/GPIO_129,

Am I correct please? 

If I want to select them as a GPIO which control register I need to specify this selection please?

 

High Regards,

Ali.

 

  • Ali:

    I assume you are working with the AM35x device?

    What you explained about pin muxing is correct.   The CONTROL_PADCONF registers

    set the pin muxing.

    Some of the GPIOs (shared with MMC1) have additional control registers to select the voltage

    (PBIAS registers).   See this section in the AM35x TRM:

    19.5.3 MMC/SD/SDIO1 Bus Voltage Selection

    Registers in the GPIO module set the direction and output enables.

    Pin Mux Utility is available here:

    http://focus.ti.com/docs/toolsw/folders/print/pinmuxtool.html

    Regards,

    Michael T

    PS: Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!