View previous topic :: View next topic |
Author |
Message |
Guest
|
Unable to disable WDT on pic16f690 |
Posted: Fri Jul 11, 2008 11:31 am |
|
|
Hi
I'm having troubles to disable WDT on my pic16f690
In my code I write NOWDT,
Code: |
#include <16F690.h>
#fuses NOWDT,HS,NOPUT,NOPROTECT
#use delay(clock=8000000)
#use rs232(baud=1200,parity=N,xmit=PIN_B7,rcv=PIN_B5,bits=9)
|
when I go to Configure--->Configuration bits it says that WDT is OFF
But still when I'm simulating with Mplab SIM I get this message
" Simulation status indicates that SIM stopped because WDT expired, you may have your WDT enabled, to disable WDT do following.............."
I'm using Mplab IDE ver 8.10 and ccs pcm 4.075 (I think)
Regards |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Jul 11, 2008 11:42 am |
|
|
With your #fuses statement, the WDT will be disabled by the CCS compiler.
If MPLAB doesn't accept that, you should probably ask about it on
the Microchip MPSIM forum:
http://forum.microchip.com/tt.aspx?forumid=18 |
|
![](templates/subSilver/images/spacer.gif) |
Guest
|
|
Posted: Fri Jul 11, 2008 12:02 pm |
|
|
Thank you for replying.
in that case is it possible that if i just ignore the simulation problem and burn the code, that it will run with WDT disabled?[/b] |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Jul 11, 2008 12:15 pm |
|
|
Look at the bottom of the .LST file, to see the compiler settings used
for the #fuses (config bits), after it compiles your source file.
If you want to be extra certain, add the NOWDT fuse to your #fuses
statement. Then you don't have to worry about how the compiler
handles it. You will have specified it. |
|
![](templates/subSilver/images/spacer.gif) |
|