I have already tried the EVM project given in this site with the schematic & code using p89v51rd2 controller but P1-P4 switches dont work…. Reply me fast.
there may be a voltage lag or corresponding voltages not reached to the pins check that when pressing switch logic high is passing in that corresponding line