hello subin take four pins in any port config it for input.tie them to the rb0.and now when u get an interrupt at RB0 poll the port pins tied to it.make sure that u put a diode each while tieying so that the data dosent flow from one pin to the other via the RBO.IT WORKS. sweety -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.