I am referring to all digital I/O pins 0 to 13 and A0 to A5.
- 2All of them have.Gerben– Gerben2020-01-07 15:45:32 +00:00Commented Jan 7, 2020 at 15:45
- 2Note that you need to initialize the pins as INPUT_PULLUP to actually enable the pullup resistor. (Just in case this isn't clear.)orithena– orithena2020-01-09 11:25:57 +00:00Commented Jan 9, 2020 at 11:25
- 1no i dont think it does because it didnt for meuser80684– user806842021-10-06 21:40:48 +00:00Commented Oct 6, 2021 at 21:40
Add a comment |
1 Answer
All of them. It's a standard feature on all IO pins in the AVR range.
- Thank you very much :) This is NOT the case in other Microcontrollers am I right?Abdalrahman Seliem– Abdalrahman Seliem2020-01-07 15:50:05 +00:00Commented Jan 7, 2020 at 15:50
- 2Not 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.Majenko– Majenko2020-01-07 15:52:24 +00:00Commented Jan 7, 2020 at 15:52
- 2Also some MCUs (such as STM32) have also pull down resistors.Michel Keijzers– Michel Keijzers2020-01-07 16:18:52 +00:00Commented Jan 7, 2020 at 16:18
- 2@MichelKeijzers So do modern PIC32 chips (anything since the release of the MX1 / MX2 series).Majenko– Majenko2020-01-07 16:23:27 +00:00Commented Jan 7, 2020 at 16:23
- 2Note 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 pinpinDuncan C– Duncan C2020-01-07 21:34:51 +00:00Commented Jan 7, 2020 at 21:34