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. > Walter Markiw > Vieytes 144 Villa Martelli (1603) > Buenos Aires, Argentina > >