I want to disable the internal pull-up resistor on PIN_P4 (GPIO_22).
I tried setting PINMUX of terminal P4 with the following code:
res = Pinmux_Set_OverrideCtrl(SOC_XWR14XX_PINP4_PADAI, PINMUX_OUTEN_RETAIN_HW_CTRL, PINMUX_INPEN_RETAIN_HW_CTRL);
res = Pinmux_Set_FuncSel(SOC_XWR14XX_PINP4_PADAI, SOC_XWR14XX_PINP4_PADAI_GPIO_22);
res = Pinmux_Set_Pull(SOC_XWR14XX_PINP4_PADAI, PINMUX_DISABLE_PULLS);
//res = Pinmux_Set_Pull(SOC_XWR14XX_PINP4_PADAI, PINMUX_PULLDOWN_EN);
res = Pinmux_Set_SlewRate(SOC_XWR14XX_PINP4_PADAI,PINMUX_SLEW_HIGH);
PINMUX value after reset:
Value after writing to PINMUX register:
I expected it to be 0x0000_0780 after a write versus 0x0000_0281 after a reset.
However, the memory value in the CCS debugger was 0x0000_0680 as shown above.
Writing to the FUNCSEL and SC bits is reflected.
On the other hand, writing to the PI bit is not reflected and remains at 0 (pull enable).
The same was true when I wrote PINMUX_PULLDOWN_EN instead of PINMUX_DISABLE_PULLS, and the PUPDSEL bit remained at 1 (pullup).
Please tell me how to write to PI and PUPDSEL bits.
Best Regards,
Hiroyuki Taguchi