Subin John wrote: > Re: [PIC]:Is there anyway I can use more than 4 external interrupts on a pic16f876 > without using any other extra IC's? I'll use 4 interrupts on rb0/int to rb3? You can use the portb change on interrupt, but you will not be able to tell which one triggered the interrupt, unless it's still triggering and you can read the port in the interrupt routine. You might consider looking at using the timer and ccp modules. I haven't looked to closely, but I suspect you could set them up so a positive or negative going pulse will trigger the interrupt. If you use the interrupt line on port b, the timer one (set the timer to 65535 so it'll roll over), and the two CCP modules you should be able to not only get four interrupt sources, but you'll be able to tell which one triggered even if it isn't still triggering when you get to the interrupt routine. -Adam -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads