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.

CCS/TMS320C6745: Configuring PINMUX

Part Number: TMS320C6745


Tool/software: Code Composer Studio

I am trying to add another GPIO output pin in an existing project.  The pin is bank 1 pin 12.  However, setting the direction to output and setting the pin high does not have any affect.  I noticed that there is a patch of code in a configuration routine that sets values for the PINMUX1 through PINMUX19 registers as defined in evmc6747.h.  I suspect that this configuration is related to why I cannot manipulate the pin.  Is there documentation on how these values are determined and used?  My DSP/BIOS version is 5.42.109 and I am using version 5.5.0.00077 of Code Composer.  Below is a the code that sets these values.

PINMUX0 = 0x11112100;
PINMUX1 = 0x11111111;
PINMUX2 = 0x01111111;
PINMUX3 = 0x00000000;
PINMUX4 = 0x00000000;
PINMUX5 = 0x11111110;
PINMUX6 = 0x11111111;
PINMUX7 = 0x11111111;
PINMUX8 = 0x21122022;
PINMUX9 = 0x08000002; // GPIO_WATCHDOG_WDI, GP2, 15, GPIO_OUT
PINMUX10 = 0x00000000;
PINMUX11 = 0x11101100;
PINMUX12 = 0x11111110;
PINMUX13 = 0x88011111;
PINMUX14 = 0x00088888; // GPIO0[6]
PINMUX15 = 0x88000000;
PINMUX16 = 0x88888888;
PINMUX17 = 0x00088088; // GP1[10], GP1[11] for wireless module RTS/CTS
PINMUX18 = 0x00000000;
PINMUX19 = 0x00000008;

  • Hello Don,

    Those values are determined by the bits of the PINMUX registers. Take a look at section 10.5.10 of the TRM for details on these registers:

    http://www.ti.com/lit/ug/spruh91d/spruh91d.pdf#page=189

    You can also set a breakpoint after the pinmuxing and look at the PINMUX0-PINMUX19 registers of the SYSCFG0 module in the CCS Registers window. This will give you the details specific to your application.

    For example, "PINMUX0 = 0x11112100;" configures the register as shown below (for C6748). You can modify the registers directly from this window.

    Hope this helps. If you have any questions please let me know.