The DOCs suggest "Configure port pins to minimize current drain", But didn't mention HOW-TO.
Solved! Go to Solution.
Current drain rises when digital input floats between '0' and '1' levels. To eliminate it do one of the following on all your unused digital inputs:
1) turn input to output using data direction registers
2) enable pull device, both pull-up and pull-down are OK.
3) pull inputs externally to I/O supply rails, usually vss or vdd
Since lower pin count packages may have non bonded out pin pads, you should not forget to turn them into outputs as well.
Edward
Current drain rises when digital input floats between '0' and '1' levels. To eliminate it do one of the following on all your unused digital inputs:
1) turn input to output using data direction registers
2) enable pull device, both pull-up and pull-down are OK.
3) pull inputs externally to I/O supply rails, usually vss or vdd
Since lower pin count packages may have non bonded out pin pads, you should not forget to turn them into outputs as well.
Edward
Thanks, I'm using MC9S08QG4 TSSOP-16.
As I see in its datasheet, Max pin number is 24, So I should take them in count too.
Hi
Also remember disable all the modules that you are not using
I do not know the family that you are using but please check the following application note
Thanks, I've read the document.