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

Configuration bits override fuses

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



Joined: 11 May 2005
Posts: 57
Location: london

View user's profile Send private message

Configuration bits override fuses
PostPosted: Tue Nov 29, 2005 10:09 am     Reply with quote

Hi all,

I realise configuration bits override my fuses in the code. I wanted to disable the wdt by putting down NOWDT in the fuses but forgot to set the same in mplab configuration bits. Certainly it didn't work. Then I realised the fuses were overriden by mplab. why is that? I think it should work in the reverse way!

Any thoughts,please?
Ttelmah
Guest







PostPosted: Tue Nov 29, 2005 11:29 am     Reply with quote

Why on earth would you think it should be the other way?. When you load the file into MPLAB (which is what you effectively do, when you compile it), the configuration bits are set by the fuses. You then have the ability to override this in the program. If the values were overriden by the 'source', there would be no point at all in having the settings inside MPLAB at all. The 'point' of the MPLAB settings, are to allow you to override the bits for development, or to set them if your compiler does not generate them.

Best Wishes
Guest








PostPosted: Tue Nov 29, 2005 11:47 am     Reply with quote

thanks for that~
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