Read I/O Pin in C# fails

  • Thanks for your support.


    We use the port not with pull down.
    In our use the pin is low and we set 3.3V on the pin.


    We have also tried a lot of PicMOD6 boards, but they all do the same.
    I use the starterkit for this, no special own board.


    If you use the pin with standard high, why do you not set DataInitA=0xFFFFFFFF ?


    We will try it with pull down and post results in this thread ...

  • Quote from "SML"

    If you use the pin with standard high, why do you not set DataInitA=0xFFFFFFFF ?


    The DataInit value only applies to output pins.
    If a pin is configured as input the pin is highly resistive. There are no internal pull-ups/downs if not defined differently in the hardware documentation. Therefore the pin level is undefined.

    Software developer, F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.