Thanks for your reply...I am using ATMEL AT89c51.I saw the data-sheet but could not identify the register.....Please help me.Is it mandatory to first configure the port as input port before letting the microcontroller receive inputs or will it be ok if inputs are given directly?