Hi Isaac, Sorry for delayed response. Looks like my programmer was holding the reset so my button was "Jammed" :-) It works now. Thanks for your help. Regards, Chetan On Mon, Sep 29, 2008 at 4:47 AM, Isaac Marino Bavaresco wrote: > You DO need to read the port before the pin changes (even if you discard > the value), or the interrupt flag will not be set. > > And you need to read the port again before clearing RAIF, or it will not > be cleared. > > And you don=B4t need to set PEIE to use the pin change interrupt. > -- = Chetan Bhargava Web: http://www.bhargavaz.net Blog: http://microz.blogspot.com -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist