The Basic use of a pull-up or pull-down resistor is to prevent a 'floating' input to a digital circuit.
Pull Up and Pull Down Resistors. Ver1.0
Part 1. CMOS Inputs.
Due to the very high input resistance of a CMOS input pin, the pin, if not connected to an external source will have an indeterminate state. Sometimes referred to as ‘floating’
On most PIC’s, which use internal diode clamps to +Vdd and 0V, the indeterminate...