>Mike Mansheim said: >> Hello, I'm using PIC16F876 with PCM (from CCS) C-Compiler. >> I put the Prescaler from the timer 0 to the Watch Dog because timer 0 >> is lead externally and has to be incremented at each falling edge. I >> put NOWDT on the configuration bits. in spite of those elements the >> PIC resets because of the WDt. >I've used NOWDT in CCS with the F876 and it works fine. So: >- most programming software allows you to manually change the settings > of the configuration bits. Did the watchdog inadvertently get turned > on that way? >- Are you sure it's a watchdog reset? How do you know? >- are you using an emulator? With the ICE2000, for example, you change > the watchdog stuff via menu options - the settings in the hex file > don't have any effect. My programmer is fine, i do not use an emulator. I use timer0 with prescaler at 1:1. Microchip Datasheets explain that it could activate the WDT, despite i don't use assemblary routine they recommend to use in this case. when i use their routine, my timer0 don't run anyway. I still working on it. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body