> >Samuel BOUQUET 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. >Dale Botkin said: > >Can you post your #FUSES line and the code you're using to set up TIMER0 and >the prescaler? > >Dale Here is the #fuses line: #fuses XT, NOPROTECT, NOWDT, PUT, NOPROTECT, NOBROWNOUT, NOLVP, WRT, CPD and the code lines: setup_counters (RTCC_EXT_H_TO_L, RTCC_DIV_2); bit_set (OPTION_REG, 3); set_timer (0); I read on a Microchip datasheet (Mid Range Reference Manuel, 33023.pdf) that there are assemblary lines to get the PIC working on a good way (page 176).I am working on it to try to get the timer working good. the WDT seems to be stop with those instructions. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body