> 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? In addition to what Adam said, you should be able to use RB0 to generate the IRQ and RB0-RB3 to identify the source. Assuming 4 positive-going signals, diode-OR the 4 sources to RB0 and also connect 3 of them to RB1-RB3 respectively. Adding a diode, resistor and capacitor would give you a simple sample-hold to preserve the voltage from the source long enough to identify the source. Only 3 need this D-R-C, the fourth is on RB0. Set the pin as an output and '0' it to discharge the capacitor, the re-set as an input More info about your IRQ sources would be helpful ================================================= How to implement RB4-RB7 interrupt-on-change http://www.microchip.com/download/appnote/devspec/16cxx/00552e.pdf Useful, but can be troublesome if trying to r-w other PortB pins -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads