Option register is at address 0x81, might involve bank switching...I haven't quite figured that or pclath out yet... -----Original Message----- From: Trond Georg Andersen To: PICLIST@MITVMA.MIT.EDU Date: Wednesday, May 06, 1998 6:59 PM Subject: Re: Watchdog Timer >I think you need to make sure you are on the right page to write to the >OPTION register. >trond >> >> I'm trying to use the watchdog timer on a PIC16C63. >> >> How do I turn it on? >> >> So far I'm able to write to the options register as follows: >> >> movlw b'00001111' ; Program WDT to 128 * .018ms = 2.3 seconds >> movwf 81h >> >> Note: For some reason I couldn't write to OPTION, the assembler did not >> recognize this word. >> >> I have a main loop in my program where I plan on inserting a >> >> CLRWDT >> >> to reset the watchdog....unless I"m missing a real obvious one, I can't >> figure out how to start this >> thing ticking!! >> >> Thanks in advance.... >