Dear PIC'ers; I recently started using the '508 and I'm having problems with the sleep mode. The program runs fine one time, but will not run after the chip goes to sleep and (presumably) wakes up. Below is part of my code. What am I doing wrong, or is there some problem or quirk with the '508, that I don't know about? The code works fine if I just go to STRT and don't use the sleep mode, but I don't get the battery power savings that the sleep mode offers, which I need. I'm sure you understand that I can't publish the body of the code, since it belongs to my employer. Any help would be greatly appreciated. TIA Andrew Morris :-) ;--------------------------------------------------------------------------- --------------- ; At blast time: ; MCLRE = EXT ; CP = OFF ; WDT = ON ; FOSC = INT ;--------------------------------------------------------------------------- --------------- include c:\progra~1\mplab\P12c508.inc MOVWF OSCCAL BTFSS STATUS,3 ;Was reset due to sleep? Skip next line if not GOTO STRT ; Initialize I/O ports MOVLW INI_GPIO ;Initialize io port MOVWF GPIO MOVLW CFG_GPIO ;Select direction of GPIO bits TRIS GPIO ;Write selection to TRIS data direction register CLRF TMR0 CLRWDT MOVLW INI_WDT OPTION STRT BCF GPIO,PD_EN_N ;first lIne of code . . . body of code . . . SLEEP END