Page 1 of 1
unused ports
Posted: Thu Dec 20, 2012 3:56 pm
by siliconchip
can anyone tell me if flowcode configures unused ports on a pic to stop them "floating" in hardware automatically or would i need to configure unused ports in flowcode as outputs to stop them floating, if the unused ports need to be set by the user is outputs the correct way
Re: unused ports
Posted: Thu Dec 20, 2012 6:01 pm
by Benj
Hello,
On power up all pins default to input pins to ensure no damage can occur should there be a short etc between pins. Flowcode leaves the pins in this state for the user to do what they want with them. There is not really any reason to connect or to control unused pins on your device, they can essentially be completely ignored. Note that if you are reading a port and there are unconnected pins on that port it is best to mask off the unused pins so you do not get unexpected floating data from your reading.