I've never run into this combination before so I thought I would forward this to the list for Soni... ...I would assume the thing to do is disable the WDT before you SLEEP and then re-enable it on wake up, but I've never had cause to use SLEEP so I don't really know. --- James Newton (PICList Admin #3) mailto:jamesnewton@piclist.com 1-619-652-0593 PIC/PICList FAQ: http://www.piclist.com or .org -----Original Message----- From: James Newton [mailto:jamesnewton@piclist.com] Sent: Friday, July 10, 2893 15:44 To: James Newton Dear sir , I am final year student and doing my final project on development board. I am using pic12c509A in this project.But I am facing problem while using watch dog timer. problem is that when i use sleep instruction the device become reset . i want to know that how it can work normally after sleep instruction . I have also use clrwdt but situation is same. Before it I have effeciently used WDT in PIC16f84. Please help me in this regard your,s Soni the code is ================================================== LIST p=12C509A #include "P12C509A.INC" ; Include header file __CONFIG _mclre_off & _cp_off & _wdt_on & _xt_osc START clrwdt CLRF GPIO MOVLW B'0001000' TRIS GPIO MOVLW B'11001111' OPTION sense clrwdt btfsc gpio,3 goto sense bsf gpio,0 sleep bcf gpio,0 bsf gpio,1 sleep bcf gpio,1 bsf gpio,2 sleep bcf gpio,2 sleep GOTO SENSE END ' -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics