Jan - In our application of the 12c508, I believe the chip does reset when sleeping, and an inut comes in on GP0/1/3. Right after the start statement in our code, we check the status register, to see what got us to the beginning. IF it was a wakeup from sleep, then we skip our initialization code, otherwise we figure this is powerup and we initialize our variables, etc. Does this help answer your question? Best regards. - Gary gmdsr@vivanet.com Embedded Research http://www.vivanet.com/~gmdsr