Setting your configs at the top of your program will ensure that the internal pull ups are always enabled from the beginning even when power is interrupted because that's where it will start anyways.
I suppose if you enable the internal pull ups in a subroutine that is called after certain conditions, then yes, you can lose that setup until that condition is called again after a power reset.
The bit has to be cleared per data sheet so: OPTION_REG.7=0
Bookmarks