Personally, I leave all of my un-used PIC pins floating. If I am not polling them in firmware for a state change to cause somthing to happen, I don't care what they are doing. If you never check the state, you should'nt have them affect anything. I also avoid pulling them high or low in cases where I might have for example the lower nibble of PORTB used and the upper nibble unused and I just want to read the entire port with somthing like:
Code:
unsigned char x;
x = PORTB;
If any of the upper nibble were pulled high, I would get a value from PORTB that was higher than 16. THIS IS JUST AN EXAMPLE. Of course, I could mask those top nibble bits, but that is another line of code
Just my $0.02
Jason
RPC Electronics, LLC - www.rpc-electronics.com