Searching \ for '[PIC]: how to disable the WDT in MAPLAB SIM ?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'how to disable the WDT in MAPLAB SIM ?'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: how to disable the WDT in MAPLAB SIM ?'
2002\05\05@230917 by Tal Dayan

flavicon
face
Hello,

I am trying to run a small PIC16F84 assembly program on MAPLAB SIM but have
problems disabling
the WDT. If the program does not call clrwdt periodically, the program
counter jumps after short time to the reset vector and bit 4 of the status
register becomes '0'.

Based on some example I saw, the program starts with :

{Quote hidden}

and in the IDE, Project -> Edit Project -> Change -> Configuration -> Watch
Dog Timer is set to 'None'.

Any idea how to disable the WDT in the simulator ?

Thanks,

Tal

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spam_OUTlistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body


2002\05\08@062359 by Carlos Ojea

flavicon
face
>problems disabling
>the WDT.

Are you setting SWDTEN bit of WDTCON register in any part of your program?

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\05\08@065052 by Joseph Dalessio

picon face
I had this problem with the 16f84a.  I searched through the forums on
Microchip's site and found that this was a known problem.  The work
around was to download MPLAB version 5.31 which does not have
the WDT problem.  I installed version 5.31 and now I can run
the simulation successfully.  I must have wasted about 6 hours
on this problem.



At 12:14 PM 5/8/02 +0200, you wrote:
> >problems disabling
> >the WDT.
>
>Are you setting SWDTEN bit of WDTCON register in any part of your program?
>
>--
>http://www.piclist.com hint: The list server can filter out subtopics
>(like ads or off topics) for you. See http://www.piclist.com/#topics

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\05\08@101426 by Tal Dayan

flavicon
face
'WDTCON' register ?

I could not find anything of that name in the 16F84 spec.

Tal

{Quote hidden}

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\05\08@103757 by Carlos Ojea

flavicon
face
>'WDTCON' register ?
>
>I could not find anything of that name in the 16F84 spec.


I am using a 18C452, in that PIC you could enable or disable WDT using a bit
of WDTCON register.
Don't know wich register 16F84 uses for this purpose.

Regards

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\05\08@112548 by Pic Dude

flavicon
face
Missed a bit of this thread, but (if memory serves) the WDT is controlled by
a config bit in the 16F84.


{Original Message removed}

2002\05\08@132942 by Herbert Graf

flavicon
face
None during runtime, the 16F84 (along with most other PICs in it's class)
has control of the WDT in the programming fuses, it cannot be
enabled/disabled during runtime. TTYL

> {Original Message removed}

2002\05\09@010145 by Tal Dayan

flavicon
face
'WDTCON' register ?

I could not find anything of that name in the 16F84 spec.

Tal

{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...