Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Thank you very much :) This is NOT the case in other Microcontrollers am I right? Commented Jan 7, 2020 at 15:50
  • 2
    Not all microcontrollers have them, that is true (low-end PIC for example). Some only have them on some pins (such as older PIC32MX chips). They are getting more and more popular though (now all modern PIC32MX chips and PIC32MZ chips have them), so more modern chips tend to have them rather than not. Commented Jan 7, 2020 at 15:52
  • 2
    Also some MCUs (such as STM32) have also pull down resistors. Commented Jan 7, 2020 at 16:18
  • 2
    @MichelKeijzers So do modern PIC32 chips (anything since the release of the MX1 / MX2 series). Commented Jan 7, 2020 at 16:23
  • 2
    Note that while all all AVR chips offer pull-up resistors, you have to turn them on. To do that, use the command pinMode(pin, INPUT_PULLUP) to activate the pullup resistor on the pin pin Commented Jan 7, 2020 at 21:34