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.

IWR1443: GIO PIN_MUX

Part Number: IWR1443

How do ports A, B, C, D, and pins 0-7 in the GIO register correspond to actual chip pins, such as N4, N7, etc?

If you want to use GPIO_ 0. GPIO_ 1. GPIO_ 2. How should the pin function be configured? Is it achieved through the following forms?

Pinmux_Set_OverrideCtrl(SOC_XWR14XX_PINN4_PADAB, PINMUX_OUTEN_RETAIN_HW_CTRL, PINMUX_INPEN_RETAIN_HW_CTRL);

Pinmux_Set_FuncSel(SOC_XWR14XX_PINN4_PADAB, SOC_XWR14XX_PINN4_PADAB_GPIO_0);

The PIN_MUX register information related to the function is not mentioned in the user manual and data manual, so I cannot understand the configuration of this function register in the driver. Is there any configuration information about this function register?

typedef volatile struct PINMUXRegs_t
{
    uint32_t    PADxx_CFG_REG[49]                  ;        /* Offset = 0x000 - 0x0C4*/
    uint32_t    RESTRICTED1[75]                    ;        /* Offset = 0x0C4 */
    uint32_t    USERMODEEN                         ;        /* Offset = 0x1F0 */
    uint32_t    PADGLBLCFGREG                      ;        /* Offset = 0x1F4 */
    uint32_t    IOCFGKICK0                         ;        /* Offset = 0x1F8 */
    uint32_t    IOCFGKICK1                         ;        /* Offset = 0x1FC */
} PINMUXRegs;

When using GPIO_ 0. GPIO_ 1. GPIO_ 2. Is the control and reading of this pin achieved through the GIO register or PIN_ MUX register implementation?

  • Hello, 

    Please see gpio_xwr14xx.h (<MMWAVE_SDK2_INSTALL_DIR>/packages/ti/drivers/gpio/include) for gpio pins associated with each port. 

    If you want to use GPIO_ 0. GPIO_ 1. GPIO_ 2. How should the pin function be configured? Is it achieved through the following forms?

    Yes, these pinmux functions are correct for configuring pins as GPIO. For further control of GPIO (configuring pin as input/output or enabling interrupts etc...) the GPIO driver APIs should be used. As a starting point I would recommend you refer to the GPIO driver test code which shows how GPIO can be used in both input and output cases. The GPIO driver test code for IWR1443 is located at <MMWAVE_SDK2_INSTALL_DIR>/packages/ti/drivers/gpio/test

    Best Regards,

    Josh

  • Thank you for your help.

  • No problem! Thanks for using our forums! I will close this thread for now but if you have further questions on this topic feel free to make a reply and the thread will re-open. Or if you have another question don't hesitate to create a new post. 

    Best Regards,

    Josh