Dangers of analog levels on digital PIC inputs?
The input buffers on a microcontroller are complex circuits as they need to serve several purposes like input, output, analog I/O, built in pull up resistor etc.
However, when used as an input it can be seen as a standard CMOS inverter:



simulate this circuit &ndash; Schematic created using CircuitLab
As long as we apply a voltage at input that is low enough (like 0.5 V or less) then this input voltage is treated as a &quot;0&quot;, the PMOS will be on and the NMOS will bo off. So no current flows (the &quot;to MCU internal circuits&quot; has a high impedance input, no current can flow into it) and all is well.
When we apply a voltage at input that is high enough (like between Vdd and Vdd -0.5 V) then this input voltage is treated as a &quot;1&quot;, the NMOS will be on but the PMOS will be off. Again, no current flows.
However we would apply a voltage that is close to Vdd/2 then both the NMOS and the PMOS will conduct. Then a &quot;cross current&quot; will flow from Vdd to ground. This is the current that the datasheet is talking about.
If you do this on only one input the current will not be a problem (the MCU can handle that, it wil not be damaged) but the current will flow and that will drain your battery.
So you can do what you propose but it is not a power efficient solution and depending on the voltage at the input, your battery might drain faster than expected.
Possible solutions:
Use a low-power comparator to do the voltage level detecting, a comparator will also consume some current but you know how much that is going to be (see its datasheet) so you can check if that current is low enough. Then the comparator's output goes directly to the MCU's input.
If you can live with a small time delay, use &quot;polling&quot; instead of an interrupt. If programmed correctly an MCU can wake up every second and check the input and go back to sleep (for another second) when nothing is detected and that could still result in a very low average battery current. I once made a gadget using an MCU which wakes up briefly every 8 seconds and it lasts years on a set of AA alkaline batteries.