I am using AT89C52 and I need to program such that I can read the data on PORT Pins in a specific pattern as described below: P(x,y) where x should be port number and y should be pin number of the port to give me PX_Y ex. P(0,5) == P0_5 How can I do this? Can anyone help me in this? Please mail me the solution on punit.ganshani@gmail.com