cancel
Showing results for 
Search instead for 
Did you mean: 

Input GPIOs

stefanodimascio9
Associate II
Posted on February 26, 2016 at 11:02

I want to read back some gpios.

Therefore I use palTogglePort and palReadPort of two phisically connected ports. I don't know what kind of setting I have to put for the input port as I don't have an example for that, I think INPUT_ANALOG_MODE and LOW, but I want to be sure. 

Thank you very much.
2 REPLIES 2
Erwan YVIN
ST Employee
Posted on February 26, 2016 at 11:21

You have to use GPIOs (Digital I/Os)

if you use an Analog Pin, you can not configure on Output.

i recommend you to use the Pinmap wizard (for your device) in SPC5Studio to configure correctly your GPIOs/GPIs.

        Best regards

                       Erwan

stefanodimascio9
Associate II
Posted on February 26, 2016 at 11:47

I didn't get it: in I/O settings, for input I have just:

MODE_INPUT

MODE_INPUT_PULLUP

MODE_INPUT_PULLDOWN

MODE_INPUT_ANALOG

Advanced Mode

Yes, the pinMap wizard has been modified according to my intended connection.

Thank you very much.