Quote Originally Posted by richard View Post
there is no such state , pins are either inputs or outputs or analog inputs , outputs can only be high or low
if you have no reason to use a pin as an output then leave as an input , if you have no reason to use a pin as a digital input you can leave it analog
the pic chip won't care. the pic chip does not care if outputs are high or low its only what they connect to that cares , it up to you to initialise the pins
in use to the correct type/state and direction to match the requirement of what they connect to and then make sure they stay that way.
now it is clear. Really appreciate your help.

Thanks a lot Richard.