1
\$\begingroup\$

I am using an STM32 microcontroller.

If I configure a pin as input with a pull-down resistor for use with a button, do I also need to put a resistor between the input pin and VDD?

\$\endgroup\$
3
\$\begingroup\$

No, you put the button between the input pin and VDD. Putting a resistor will simply create a way for electricity to flow from VDD to VSS, using up power needlessly.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.