This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GPIO as Input Pull Up / Pull Down

The reference manula says i can configure the STM32 GPIO as either Input pull-up or as Input-pull-down.

But i do not see any register which configures this. Can anybody clarify this.

Regards,
Jawaad

Parents
  • This is a bit tricky I grant you that, but the answer is p148 (table 18) of the manual. To use those pull-up or pull-down resitance you in fact have to clear/set the OUTPUT data register of your port. It makes sense if you look a at the schematic of the I/O port.
    I agree that it should be put more clearly but this trick is used on many micro-controller so the manual just assumes you know that.

    Oh and by the way a google search would have put you on the tracks.

Reply
  • This is a bit tricky I grant you that, but the answer is p148 (table 18) of the manual. To use those pull-up or pull-down resitance you in fact have to clear/set the OUTPUT data register of your port. It makes sense if you look a at the schematic of the I/O port.
    I agree that it should be put more clearly but this trick is used on many micro-controller so the manual just assumes you know that.

    Oh and by the way a google search would have put you on the tracks.

Children