Yes, that's permissable. And as long as you know your ISR is faster as the edges you're trying to detect, you'll have good results. I don't know exactly what happens if it isn't faster, depends on how the state of the int flags are on the moment of the rising edge. Also same as with Bob, I've done it on a 16, not on a 18 but I doubt it's much of a difference. Do you have more details on what you're trying to accomplish? My guess would be you want to decode a PWM pulse width signal. Claudio -----Oorspronkelijk bericht----- Hi all. Is it permissable to change an interrupt edge select bit in the ISR? For instance, I want to detect when INT1 goes high. Then, I will also want to detect when it goes low. Seems if I change the edge select bit in the ISR I can get an interrupt on the way up, and then one on the way down as well. FWIW I'm using an 18f252. Any thoughts? Josh -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads