Most processor port pins are configurable to be either an output, in which case it has a full CMOS output driver with a PFET to source current from Vdd, and an NFet to sink current to Vss, or an input, in which case the weak-pull up can be enabled or disabled.
The weak pull-up could be used when that input pin is sensing an external switch or keyboard, for example. Switch off, input is pulled high by the internal weak pull-up; Switch closed, the input is pulled low by the switch, and not much current flows to ground through the switch...
The weak pull-up could be used when that input pin is sensing an external switch or keyboard, for example. Switch off, input is pulled high by the internal weak pull-up; Switch closed, the input is pulled low by the switch, and not much current flows to ground through the switch...