Opening Pin
Opening Pin
How to configure unused IO pin for a microcontroller?
Hi, I have an IO pin that would normally be an input (for an IR receiver) but sometimes I want to disable that functionality. I would just configure it as an output and set it high (3V3), but there might be an external pull-up to 5V in which case an open-drain output would be better. But when the pull-up isn’t there is it still ok if the pin is configured as open-drain?
In general, you don’t want to leav an I/O pin floating – make it an input and tie it high or low – or, make it an output and leave it open. (what I usually do). I usually set outputs low.
If you know a pull-up will be there, you can just set it as an input and leave it that way, even if you aren’t using the IR receiver.
Note that most microcontroller I/O pins can’t be programmed as open-drain. That is more a function of hardware. Occasionally, a uC will have a pin that doesn’t have the P-channel transistor pulling high, in which case you have no option but to use it as open-drain.
You can always emulate open drain this way, though (with caveat, see below): To drive low, set pin as an output, low. To “open”: re-configure as an input and let the external circuit (e.g., pull-up) pull the pin high. If you leave it as an output, then the uC will pull high with its internal P-channel transistor.
Caveat: BE CAREFUL! You suggest pulling a uC pin higher than it’s supply voltage (pulling a pin driven with 3.3V up to 5V). There are a FEW uCs that have a pin or two you can do this with, but it isn’t common. In general, you should never pull a pin higher than the supply voltage. Reason, internally, there are parasitic structures (diodes) that will forward bias when you try to pull the pin higher than supply, conducting potentially damaging current from the I/O pin to the 3.3V supply.
CHECK THE SPECS to make sure you can do this – you probably can’t.
|
|
HARD ROCK CAFE ST MAARTEN GRAND OPENING VIP STAFF PIN $499.99 |
|
|
Hard Rock Cafe Berlin 1992 Opening Staff White Round Pin w/ Berlin Wall.. $499.99 |
|
|
Hard Rock Cafe Berlin 2010 Blue Training Star Pin Staff Opening OS 1 of 16 $450.00 |
|
|
HRC Bogotá Opening Staff OS Guitar Pin Hard Rock Cafe $300.00 |
|
|
Hard Rock Cafe Mykonos OPENING STAFF pin $299.99 |
|
|
Hard Rock Cafe DUBLIN 2004 GRAND OPENING Staff OS PIN Shamrock Guitar #24258 $299.99 |
|
|
Hard Rock Cafe MOSCOW 2003 GRAND OPENING Staff PIN Triple Neck Guitar #21555 $299.99 |
|
|
Hard Rock Cafe BELFAST 2001 GRAND OPENING Staff OS PIN DN Purple Guitar #1159 $299.99 |
|
|
HARD ROCK CAFE MALLORCA GRAND OPENING STAFF PIN OS $299.99 |
|
|
HARD ROCK CAFE ST MAARTEN GRAND OPENING STAFF PIN #2 OS $269.99 |
|
|
HRC Cartagena Colombia Opening STAFF Pin Hard Rock Cafe $250.00 |
|
|
Hard Rock Casino BILOXI 2005 Grand Opening STAFF OS Slot Machine GUITAR PIN LE50 $249.99 |
|
|
Hard Rock Cafe OCHO RIOS 2006 GRAND OPENING Staff PIN Bob Marley Guitarist 34717 $249.99 |
|
|
Hard Rock Cafe ANKARA 1998 Blue Star Training STAFF PIN Trainer Opening ’98 $249.99 |
|
|
Hard Rock Cafe GOTHENBURG 2004 GRAND OPENING Staff PIN Sexy Blond Waitress 26104 $249.99 |
|
|
Hard Rock Cafe Osaka Universal CityWalk Grand Opening Set Of 5 Geisha Pins $239.99 |
|
|
Hard Rock Cafe St Maarten Grand Opening STAFF Pin $229.95 |
|
|
Hard Rock Cafe MYRTLE BEACH Opening STAFF Pin. RARE $205.20 |
|
|
Hard Rock Cafe Ho Chi Minh City Grand Opening STAFF Pin $202.50 |
|
|
HRC Hollywood Opening Staff & GO Pin SET Hard RockCafe $200.00 |
|
|
Hard Rock ORLANDO VAULT GO Opening STAFF Guitar PINS +2 $199.99 |
|
|
Hard Rock Cafe PHOENIX 1997 OPENING STAFF OS Rare PIN CRAB, HRC LOGO #7444 $199.99 |
|
|
Hard Rock Cafe AUSTIN 2002 Grand Opening VIP Party STAFF PIN Prototype? $199.99 |
|
|
Hard Rock Cafe HURGHADA 2004 Grand OPENING STAFF PIN Catalog #26219 “V” Guitar $199.99 |
|
|
Hard Rock Cafe COPENHAGEN 1995 Blue Star Training STAFF PIN Trainer Opening ’95 $199.99 |
|
|
Hard Rock Cafe PRAGUE 2009 GRAND OPENING Staff OS PIN Astronomical Guitar #48321 $199.99 |
|
|
HARD ROCK CAFE ST MAARTEN GRAND OPENING PARTY STAFF PIN $199.99 |
|
|
HARD ROCK CAFE ST MAARTEN GRAND OPENING PARTY STAFF PIN $199.99 |
|
|
Hard Rock Cafe Barcelona Grand Opening Staff Pin $199.99 |
|
|
HARD ROCK CAFE MYKONOS GRAND OPENING DJ DECK STAFF PIN LE 75 …..RARE $199.00 |
|
|
Hard Rock Cafe Hurghada Grand Opening STAFF Pin $189.95 |
|
|
Hard Rock Cafe Lisbon 2003 STAFF Grand Opening Pin $179.95 |
|
|
Hard Rock Cafe NARITA GRAND OPENING KISS SET 4 Pin RARE $178.20 |
|
|
Hard Rock Hotel ALBUQUERQUE Grand Opening STAFF Pin. $178.20 |
|
|
Hard Rock Cafe DUBLIN, GRAND OPENING ’04.Pin Set 3 RARE $178.20 |
|
|
Hard Rock Collector’s Pin Rare Opening Staff Tampa 2004 $175.00 |
|
|
KISS Hard Rock Cafe Narita Tokyo Grand Opening Pin Set $170.99 |
|
|
Hard Rock Cafe CARDIFF GRAND OPENING 2003 Pin Set. RARE $169.20 |
|
|
Hard Rock Cafe ARUBA Grand Opening STAFF Pin. LTD. RARE $151.20 |
|
|
Hard Rock Cafe Dubai 1997 ’97 Blue Training Star Pin Staff Opening OS $150.00 |
|
|
HARD ROCK CAFE DUBAI GRAND OPENING STAFF PIN 2011 *NEW* $150.00 |
|
|
HRC Key West Opening Staff Pin Hard Rock Cafe $150.00 |
|
|
Hard Rock Cafe Ft Lauderdale Guitar GO Pins GRAND OPENING Party Parrot HRC LE $150.00 |
|
|
Hard Rock ORLANDO VAULT GO Opening STAFF Guitar PINS +2 $149.99 |
|
|
HARD ROCK CAFE ST MAARTEN GRAND OPENING SET#2 3 PINS $149.99 |
|
|
Hard Rock Cafe COZUMEL 1994 OPENING STAFF OS PIN #2042 $149.99 |
|
|
Hard Rock Cafe BOSTON 2007 OPENING STAFF PIN Guitar with Dangling Scissors GOLD! $149.99 |
|
|
Watch Repair Tool Kit $24.99 Quit paying high prices for simple repairs to your watches. This 13-piece set includes an adjustable case opener, pins, tweezers, case holder, precision screwdrivers, pin punches, a spring bar tool and a carrying case. |
|
|
Wichard Standard Pin Large Opening Shackles Wide Bow Shackle, 13/32 $72.99 Wichard Standard Pin Large Opening Shackles Wide Bow Shackle, 13/32″ . A Wichard Standard Pin Large Opening Shackle is the ultimate choice for safety. Drop forged for superior strength. The self locking pin is designed for safety. Small indentations in the shackle engage the head of the pin. Final tightening then creates the tension that locks the pin in place. Even the most violent vibrations will not loosen the pin. |
|
|
Wichard Standard Pin Large Opening Shackles Wide Bow Shackle, 3/16 $21.99 Wichard Standard Pin Large Opening Shackles Wide Bow Shackle, 3/16″ . A Wichard Standard Pin Large Opening Shackle is the ultimate choice for safety. Drop forged for superior strength. The self locking pin is designed for safety. Small indentations in the shackle engage the head of the pin. Final tightening then creates the tension that locks the pin in place. Even the most violent vibrations will not loosen the pin. |
|
|
Alexander Roberts Aircraft Type Swage Forks Fork, 9/32 Wire Size, 11/32 Opening, 7/16 Pin Dia. $47.99 Alexander Roberts Aircraft Type Swage Forks Fork, 9/32″ Wire Size, 11/32″ Opening, 7/16″ Pin Dia. . Type 316 stainless steel. |
|
|
Opening $9.99 Marianne Haas Opening – Art Print |
|
|
Lewmar Synchro Block Snap Shackles Shackle, Fits Size 90mm, 29mm Opening Eye Id, Replaces 9.5mm Pin Dia., 4,400lb. Swl $56.39 Lewmar Synchro Block Snap Shackles Shackle, Fits Size 90mm, 29mm Opening Eye Id, Replaces 9.5mm Pin Dia., 4,400lb. Swl . Adjustable snap shackles fit all Synchro blocks in the 60mm, 72mm, and 90mm ranges. Replaces the standard shackle fitted to all blocks Will also fit all Lewmar Ocean blocks and most other blocks of similar size |
|
|
Lewmar Synchro Block Snap Shackles Shackle, Fits Size 72mm, 22mm Opening Eye Id, Replaces 6mm Pin Dia., 2,420lb. Swl $34.76 Lewmar Synchro Block Snap Shackles Shackle, Fits Size 72mm, 22mm Opening Eye Id, Replaces 6mm Pin Dia., 2,420lb. Swl . Adjustable snap shackles fit all Synchro blocks in the 60mm, 72mm, and 90mm ranges. Replaces the standard shackle fitted to all blocks Will also fit all Lewmar Ocean blocks and most other blocks of similar size |
|
|
Lewmar Synchro Block Snap Shackles Shackle, Fits Size 50mm, 15mm Opening Eye Id, Replaces 4mm Pin Dia., 990lb. Swl $23.95 Lewmar Synchro Block Snap Shackles Shackle, Fits Size 50mm, 15mm Opening Eye Id, Replaces 4mm Pin Dia., 990lb. Swl . Adjustable snap shackles fit all Synchro blocks in the 60mm, 72mm, and 90mm ranges. Replaces the standard shackle fitted to all blocks Will also fit all Lewmar Ocean blocks and most other blocks of similar size |
|
|
Lewmar Synchro Block Snap Shackles Shackle, Fits Size 60mm, 19mm Opening Eye Id, Replaces 5mm Pin Dia., 1,760lb. Swl $26.27 Lewmar Synchro Block Snap Shackles Shackle, Fits Size 60mm, 19mm Opening Eye Id, Replaces 5mm Pin Dia., 1,760lb. Swl . Adjustable snap shackles fit all Synchro blocks in the 60mm, 72mm, and 90mm ranges. Replaces the standard shackle fitted to all blocks Will also fit all Lewmar Ocean blocks and most other blocks of similar size |
|
|
Opening Night Funny Mini Button by CafePress $3 If it’s not opening night, it’s too early to worry. Reminding all thespians that the show isn’t ready till it’s time for it to be ready. Funny Mini Button Add fun accents to jackets, backpacks, or mix ‘n match our Mini Buttons. Our Mini Buttons are the perfect size for trading and collecting. Pin ‘em on1 inch diameter. Metal shell. Mylar/UV protecting cover. Pinned metal back |
|
|
Reese Hitch Class II, 1-1/4 In. Box Opening – 06048 $159.99 REESE class II insta-hitch receiver is designed to provide excellent towing facility. It features an attractive black powder coat finish for rust resistance, and an 1-1/4 inch hitch box opening. A class II draw bar, pull pin and clip, and hitch box cover are included. The weight capacities are rated up to 350 pounds of tongue weight and up to 3,500 pounds of gross towing weight. Most Trailer and Towing Parts products are available for in-store pickup from Advance Auto Parts. |
|
|
Reese Insta-Hitches, Class I, 1 1/4inch , Box Opening – 77183 $149.99 REESE class I receiver hitch is designed to provide excellent towing facility. It features an attractive black powder coat finish for rust resistance, and an 1-1/4 inch hitch box opening. A class I draw bar, pull pin and clip, and hitch box cover are included. The weight capacities are rated up to 200 pounds of tongue weight and up to 2,000 pounds of gross towing weight. Most Trailer and Towing Parts products are available for in-store pickup from Advance Auto Parts. |
|
|
Reese Insta-Hitches, Class I, 1 1/4inch , Box Opening – 77033 $119.99 REESE class I receiver hitch is designed to provide excellent towing facility. It features an attractive black powder coat finish for rust resistance, and an 1-1/4 inch hitch box opening. A class I draw bar, pull pin and clip, and hitch box cover are included. The weight capacities are rated up to 200 pounds of tongue weight and up to 2,000 pounds of gross towing weight. Most Trailer and Towing Parts products are available for in-store pickup from Advance Auto Parts. |
|
|
Reese Insta-Hitches, Class II, 1 1/4inch , Box Opening – 06287 $189.99 REESE class II insta-hitch receiver is designed to provide excellent towing facility. It features an attractive black powder coat finish for rust resistance, and an 1-1/4 inch hitch box opening. A class II draw bar, pull pin and clip, and hitch box cover are included. The weight capacities are rated up to 350 pounds of tongue weight and up to 3,500 pounds of gross towing weight. Most Trailer and Towing Parts products are available for in-store pickup from Advance Auto Parts. |
|
|
Reese Insta-Hitches, Class I, 1 1/4inch , Box Opening – 77019 $199.99 REESE class I receiver hitch is designed to provide excellent towing facility. It features an attractive black powder coat finish for rust resistance, and an 1-1/4 inch hitch box opening. A class I draw bar, pull pin and clip, and hitch box cover are included. The weight capacities are rated up to 200 pounds of tongue weight and up to 2,000 pounds of gross towing weight. Most Trailer and Towing Parts products are available for in-store pickup from Advance Auto Parts. |
|
|
Reese Insta-Hitches, Class II, 1 1/4inch , Box Opening – 06448 $109.99 REESE class II insta-hitch receiver is designed to provide excellent towing facility. It features an attractive black powder coat finish for rust resistance, and an 1-1/4 inch hitch box opening. A class II draw bar, pull pin and clip, and hitch box cover are included. The weight capacities are rated up to 350 pounds of tongue weight and up to 3,500 pounds of gross towing weight. Most Trailer and Towing Parts products are available for in-store pickup from Advance Auto Parts. |
|
|
Reese Insta-Hitches, Class II, 1 1/4inch , Box Opening – 06130 $149.99 REESE class II insta-hitch receiver is designed to provide excellent towing facility. It features an attractive black powder coat finish for rust resistance, and an 1-1/4 inch hitch box opening. A class II draw bar, pull pin and clip, and hitch box cover are included. The weight capacities are rated up to 350 pounds of tongue weight and up to 3,500 pounds of gross towing weight. Most Trailer and Towing Parts products are available for in-store pickup from Advance Auto Parts. |
|
|
Reese Insta-Hitches, Class II, 1 1/4inch , Box Opening – 06953 $179.99 REESE class II insta-hitch receiver is designed to provide excellent towing facility. It features an attractive black powder coat finish for rust resistance, and an 1-1/4 inch hitch box opening. A class II draw bar, pull pin and clip, and hitch box cover are included. The weight capacities are rated up to 350 pounds of tongue weight and up to 3,500 pounds of gross towing weight. Most Trailer and Towing Parts products are available for in-store pickup from Advance Auto Parts. |
|
|
Reese Insta-Hitches, Class II, 1 1/4inch , Box Opening – 06387 $189.99 REESE class II insta-hitch receiver is designed to provide excellent towing facility. It features an attractive black powder coat finish for rust resistance, and an 1-1/4 In. hitch box opening. A class II draw bar, pull pin and clip, and hitch box cover are included. The weight capacities are rated up to 350 Lb. of tongue weight and up to 3,500 Lb. of gross towing weight. Most Trailer and Towing Parts products are available for in-store pickup from Advance Auto Parts. |
|
|
Reese Insta-Hitches, Class II, 1 1/4inch , Box Opening – 06397 $169.99 REESE class II insta-hitch receiver is designed to provide excellent towing facility. It features an attractive black powder coat finish for rust resistance, and an 1-1/4 inch hitch box opening. A class II draw bar, pull pin and clip, and hitch box cover are included. The weight capacities are rated up to 350 pounds of tongue weight and up to 3,500 pounds of gross towing weight. Most Trailer and Towing Parts products are available for in-store pickup from Advance Auto Parts. |
Open 3 locks with 10 pin tube pick