ebeowulf17
- Joined Aug 12, 2014
- 3,307
EDIT: Please ignore this post. I've seen the error of my ways now. I'm leaving the text intact as context for comments that follow, but I see now that my suggestion was a bad idea...the unused pins of MCU configured as an outputs and 0V written to them ..
This might be over cautious or even just plain wrong, but I would've thought it would be better to set them as inputs.
If they're set as inputs, they're high-impedance. If anything gets connected to them that shouldn't (short circuits due to stray metal, water, whatever) essentially no current will flow. As long as they don't connect to a voltage that's outside of the abs. max ratings, no harm done.
On the other hand, if they're set low (0V) and there's an inadvertent short to the supply voltage, now you've got a high current short circuit through your mcu which could easily destroy it.
Food for thought. Please let me know if I've completely mis-analyzed these scenarios.
Last edited: