Hi all, I am using P89LV51 controller for interfacing LCD and keyboard. The LCD is directly interfaced while keyboard is interfaced through priority encoder. The LCD and keyboard routines are working fine saparately. But when I am getting input from keyboard, converting it to ascii value and trying to display on LCD, the value it displays is incorrect, and it increments the display by 2 or 3 instead of 1. How should I correct this problem?