Thank you very much,Bob.I've visited your page and I found your propeller clock really interesting.Though I downloaded your source code and printed it,I haven't had time to go through it yet.Anyhow,I 'm too much of rookie in this microprocessor thing to give you a worthy opinion on it. One more question I have : How can I simulate a WDT overflow reset with MPLAB ?.I select options/developement mode/mplab simulator & 16c84 then options/processor setup/hardware/wdt chip reset enable but when I simulate a simple program such as the following,the tmr0 register keeps overflowing and no reset occurs: ; ; LIST P=16C84,R=DEC INCLUDE "PICREG.EQU" ; ; RESET ORG 00H GOTO START START CLRWDT CLRF TMR0 MOVLW B'00001111' OPTION CLRWDT ; shuldn't tmr0 reg get cleared on each CLRWDT ? MOVLW B'00001001' OPTION CLRWDT LOOP NOP GOTO LOOP; Shouldn'there happen a reset here on wdt overflow? END Thanks. At 23:30 30/07/97 -0700, you wrote: >Hi Walter, > >You might not get exactly the example you want, but look at the code for my >clock and see what you think. It keeps track of time using timer-based >interrupts, and uses the WDT, too. > >http://www.bobblick.com/bob/projects/mclock.html is the cover page for it, >and the source is >http://www.bobblick.com/bob/projects/mclock8.asm > >Cheerful regards, > >Bob > > >At 01:36 PM 7/30/97 -0300, you wrote: >> Hi,could somebody show me a routine implementing WDT reset with prescaler >>setting on the 16c84.I'm new in this thing and my electronics' knoweledge >>is rather limited.However,I need to build a simple controller to handle >>a series of pneumatic valves in an industrial envoiroment,which means >>it is subject to be bothered by line noises.Hence,I thought the WDT might >>be the solution for that.Another question: Is there a way of keeping real >>time with 16c84 and still use the WDT ? >> >> Thanks in advance.