> will a 2.2M ohm resistor cause problems ? Yes. It can pass only I = V / R = 5,000,000/2,200,000 = 2.3uA You'll see in the datasheet that pin leakage is +/- 1uA, so a 2M2 resistor is as near as dammit letting it float An internal Port A pull-up's current is 400uA, equivalent to a 12k5 ohm resistor (R = V / I = 5,000,000 / 400) If you've no resistors between 1k and 100k you'll have to turn the internal pull-ups on and use Port A pins for the switches BCF OPTION_REG,7 or BCF OPTION_REG,NOT_RABPU (?) Note : this also turns on a pull-up for /mclr -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist