CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Unable to disable WDT on pic16f690

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest








Unable to disable WDT on pic16f690
PostPosted: Fri Jul 11, 2008 11:31 am     Reply with quote

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
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 11, 2008 11:42 am     Reply with quote

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
Guest








PostPosted: Fri Jul 11, 2008 12:02 pm     Reply with quote

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]
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 11, 2008 12:15 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group