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 CCS Technical Support

WDT config bits opposite #fuses directive

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







WDT config bits opposite #fuses directive
PostPosted: Mon Mar 26, 2007 12:53 pm     Reply with quote

CCS PCH C Compiler, Version 3.224
MPLAB 7.21.00.00
IDC2 7.20.9.1
PIC18F252

If I say
#fuses WDT128
then look under Configure/Configuration bits I see
Watchdog Postscaler 1:1

If I say
#fuses WDT1
then look under Configure/Configuration bits I see
Watchdog Postscaler 1:128

The actual Watchdog timout follows the Config Bits.

Has anyone else seen this or know of a fix?
Appart from the obvious work around of using the wrong #fuses setting?

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Mar 26, 2007 1:28 pm     Reply with quote

I couldn't get it to fail, but I don't have your exact versions.
I have MPLAB vs. 7.20. I tested it with PCH vs. 3.188, 3.191, 3.230
and 3.249. It worked OK with all those.

If you have an earlier version of PCH than 3.224, try it.
This would prove if the problem is with MPLAB.

Also, make sure that you have the correct device selected in MPLAB.
Go to the Configure / Select Device menu and make sure it's set to
18F252.
Junior
Guest







WDT mystery solved
PostPosted: Mon Mar 26, 2007 2:44 pm     Reply with quote

I was using the wrong header file.
The target is a PIC18F252 but I was using 18c252.h,
because this project was ported to the 18C252
and when I use the correct header file it doesn't run,
even though the WDT config bit are correct.
Guess I got some work to do.
Thanks
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