PDA

View Full Version : Five unused pins and one resistor



Cabomba
- 27th May 2007, 16:07
Hi, everyone!

I've made an electronic control for a washing machine, using a PIC16F876A.
The PIC has five unused pins on portC, and I wouldn't like to leave them unconnected. Can I tie them all to GND using a single resistor or should I use one resistor for each pin?

Thanks!

mister_e
- 27th May 2007, 16:56
Long time debate here ;)

My own opinion, configure them as input and tie them directly to GND. If in your program you're sure you don't affect their TRIS and logic level, this shouldn't cause you any grief.

Case you want to play safe, use one resistor by i/o and tie them to GND or Vcc.

Kman
- 27th May 2007, 16:57
Just set them as an output ! and you will not need a resistor(S)

Ron Marcus
- 27th May 2007, 17:44
Just set them as an output ! and you will not need a resistor(S)
And...leave them unattached to B+ or ground.

Cabomba
- 27th May 2007, 18:07
Thanks for the replies, guys.
The pins are already set as outputs, so I think I'll leave them that way.