Hi, please, could anybody help? I'm totally new to the dsPIC. I am programming (in assembly language) a first app for my board. I have set up Timer1 as a Real Time Clock. The CPU normally is in Sleep mode, and gets an interrupt from T1 every 1.0 seconds, then it should execute the INT handler (to update date/time variables in memory) and then return from the interrupt. I also need a way to optionally (e.g. after n seconds or if a scheduled event was found by the INT routine) wake up the main program, the one that entered sleep mode. This "keep sleeping or wake up" should be entirely decided in the ISR. How can it be done? Thanks a lot, Mario -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist