I have a 8pt dial switch connected to port B (pins 8-11). It is wired for binary coding... 0001, 0011,... 1000. The program is constantly reading 1111 or 15 and the pins will not go to 0 or LOW. I've since put in four 10k resistors to ground between the four leads and the pins. This should ground each pin when they are not given the 5v via one of the four leads. They are still all reading high (15 / 1111 ). What can be done?
BTW - the inputs 8 - 11 have been set to HIGH for the pullups.
Well you shouldn't have both the internal pull-ups enable and wired pull-down resistors. Can you draw how the switch is wired? Is the switch common wired to +5vdc ?