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.

TMS320F280041: Problem using AIOs as digital inputs

Part Number: TMS320F280041


Hello,

I am facing a problem when using one of AIO pins as a digital input.

In particular, have a dip-switch signal connected to GPIO225.

The problem is that I always read the same value stuck at 1, despite I try to switch the input signal on and off.

To configure the AIO pin as GPIO I use the following instruction:

GPIO_setAnalogMode(225, GPIO_ANALOG_DISABLED);

I have the same problem also with other AIO pins.

What am I doing wrong?

Thank you,

Carlo