I'd have to say that it would, depending on which interrupt flag you're wanting to check. After all, with the processor asleep and the oscillator not running, rule out any timer-based interrupts, UART based interrupts, etc. If an INT edge based interrupt occurs, it can wake up the processor, and needs to be cleared upon wakeup, so if that interrupt is masked, the flag will still be set, it just won't wake up the processor. So, yes, I'd have to say you can count on spotting that edge when the PIC wakes up, even if the edge didn't directly wake the PIC up. Mike H. On 4/12/06, Stef Mientki wrote: > I need a very low power application, > so the best from microchip I could find is the 16F87 or 16F88. > > (MPS 430 from TI seems to be much better, > but as I'm not familiar with these chips ...) > > Now the 16F8x, running at 32 kHz, still consumes (about 3..5 times) too > much. > As my application is quite simple, > detect if one (or more) edge occurred in each time epoch of 500 msec, > I could put the device in sleep mode, disable interrupts and > after wakeup test one of the interrupt flags. > This can save me up to 10 times the normal power > (assuming I need 50 msec to detect / clear / interpret / store the > interrupt flag). > > Now the important question (which I can't figure out from the > datasheets) is: > can this interrupt flag be set and preserved during sleep mode (with > interrupts disabled) ??? > > thanks, > Stef Mientki > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist