Switching IO pins to explicit input is not expected to save power consumption. Only under certain condition would an IO pin set as output consumer energy:
- it is connected to a resistive load
- it is connected to a capacitive load, and the signal changes value frequently
Neither of these conditions apply commonly in a well designed system. If it does, program accordingly.
Setting IO pins as inputs does not improve EMI. In case your device is the aggressor (i.e. the device causing the interference), EMI occurs when you have fast switching outputs driving loads with certain antenna like properties (a wire being an antenna). On an unused IO pin you normally do not have a fast switching output, nor is it commonly wired on the PCB.
Neither does setting the IO pins as an input improve the EMC characteristics of a device (i.e. your device is the victim). EMC of the device is guaranteed by the physical properties of the chips' IO function.
EMC/EMI are more commonly issues one needs to address when designing (high frequency) PCBs.
Switching your unused IOs to inputs also doesn't hurt anything normally... Unless you cause an IO pin to float at an undefined value: that's potentially bad for power consumption.
Lowest power consumption can usually be expected by driving unused IOs as outputs to a defined, static, state, and having no resistive paths. Best EMC/EMI is achieved by using a well designed PCB. Unless you want to go into space, then you need a bit more...
Last edited by atitude (2011-03-16 19:30:33)