TOP

How to set I/O port to save power?

Correct I/O port settings can avoid I/O extra current leakage:
1.For idle I/O port, set I/O port as input mode with pull-up resistor or output low status generally.
2.For ADC I/O channel, P4CON can be configured to avoid I/O extra current leakage.
3.For different external hardware circuit, considering I/O's status, improper settings will lead to leakage current, so special attention should be paid to pull-up resistor settings, if I/O port external connected low level, and at the same time enable pull-up resistor, that will cause leakage, eg: VDD = 5V will be about 5V/100K = 50uA leakage.