Question, what is the recommended maximum value for biasing an input in an MCU? In this case, I'm talking about the PIC16LF1823.
Of course, said MCU has its own internal pull up resistors, if one wishes to activate them. But I've discovered that they consume an unacceptable amount of power. My guess is that the distance between the MCU, the pull-up and (in this case) the switch is important. For instance, I'm sure it's not the same if the switch is only a few mm away from the MCU than if it's located one meter away.
In my case, the switch is located only about 2mm away. It's extremely close. Would a 1M resistor do the trick? Would 4M be too high? Or is it a question of trial and error?
Of course, said MCU has its own internal pull up resistors, if one wishes to activate them. But I've discovered that they consume an unacceptable amount of power. My guess is that the distance between the MCU, the pull-up and (in this case) the switch is important. For instance, I'm sure it's not the same if the switch is only a few mm away from the MCU than if it's located one meter away.
In my case, the switch is located only about 2mm away. It's extremely close. Would a 1M resistor do the trick? Would 4M be too high? Or is it a question of trial and error?