Try setting bit 7 in OPTION_REG to disable internal pull-ups. WPU powers-up with all internal
pull-ups enabled, and with OPTION_REG = %01000000 you'll have internal pull-ups ON.
I suspect it works on mine due to a slight difference in the internal pull-up. That should cure
it unless you have a problem with your switch circuit.
Bookmarks