If you ground the input pin then you have to be seartain that you never e= ver get a high value on that port pin. That is if the MCU gets crazy and accidentelly shift to output and drive = the port pin high. Bad to connect direct to ground without a current limiting resistor. To lower cost and board space I would suggest alternative 2 Niklas -----Ursprungligt meddelande----- Fr=E5n: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.ED= U] F=F6r Andre Abelian Skickat: den 16 januari 2002 21:15 Till: PICLIST@MITVMA.MIT.EDU =C4mne: Re: [PIC]:What is the correct way to terminate unused pins 16F877 two ways can be done. 1. make unused pins inputs and ground them. 2. make unused pins output and do not connect to any where do not ground output pins. Andre Abelian I will have several unused pins on my 16F877 Should the unused pins be set as inputs or outputs and should they be tied directly to GND or do I use a resistor. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu