unused ports
Moderator: Benj
-
- Posts: 392
- Joined: Wed Jan 05, 2011 11:24 am
- Has thanked: 101 times
- Been thanked: 24 times
- Contact:
unused ports
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
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: unused ports
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel