Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hello, I am trying to read from a GPIO pin (PA16) on the MSPM0C1104 using SysConfig-generated drivers. I am using the polling method to read the pin state.
-The DIN31_0 register correctly reflects the pin state when the pushbutton is pressed and released.
-However, the DL_GPIO_readPins() API always returns 0x00000000, regardless of the actual pin state.
-I also tried directly accessing the register using its address, but it still does not work.
In the first picture the button is not pressed and the DIN31_0 is holding 1 in 16 th pin (Dont know exactly why it is set) but the api ReadPin is returning 0. In the second picture the button is pressed and there is a change in the state of the pin and the readpin api is still returning 0.
I am attaching the project zip file(gpio_Read) for reference. Any insights on this issue would be helpful!