Skip to main content
stefanodimascio9
Associate III
February 26, 2016
Question

Input GPIOs

  • February 26, 2016
  • 2 replies
  • 860 views
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.
    This topic has been closed for replies.

    2 replies

    Erwan YVIN
    ST Technical Moderator
    February 26, 2016
    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

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
    stefanodimascio9
    Associate III
    February 26, 2016
    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.