is it because pic sets all ports to input pins upon powerup?