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

Generation of configuration bits in ccs c

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



Joined: 15 Nov 2018
Posts: 42
Location: Çanakkale

View user's profile Send private message Send e-mail

Generation of configuration bits in ccs c
PostPosted: Sat Jan 05, 2019 3:13 am     Reply with quote

Hello all
Is there an option in ccs c ide that i can generate configuration bits as in MPLAB X ide ? (I searched for it but i couldn't find. I ask to be sure)
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Sat Jan 05, 2019 3:38 am     Reply with quote

It's not really plain what you mean?.

In CCS C, the configuration bits are normally set using the #FUSES settings.

So #FUSES NOWDT, sets the configuration bits to turn off the watchdog.
The values for this are basically the data sheet settings (though read
fuses.txt, to find the exact relationship between the names and the fuses).

So the configuration bits are already predefined in the fuse names.
These are listed at the top of the .h file for the processor.

You can also explicitly set a config word as a numeric value if required,
so to set config word 1 to 0xC200, use:

#FUSES 1=0xC200

CCS will also accept the MicroChip __CONFIG syntax as well (remember
you will have to #include the .h file that defines the values for this from
MicroChip if you want to work this way. If you want to do this, you'd
have to load the MicroChip file. CCS assumes you will use their names not
the MicroChip ones, so doesn't generate this file for you.
Ömer Faruk



Joined: 15 Nov 2018
Posts: 42
Location: Çanakkale

View user's profile Send private message Send e-mail

PostPosted: Sat Jan 05, 2019 4:14 am     Reply with quote

Ttelmah wrote:
It's not really plain what you mean?.


https://i.hizliresim.com/DY2p1l.png

I mean this. In Mplab X you can select manually configuration bits without searching datasheet. I like this feature.
elcrcp



Joined: 11 Mar 2016
Posts: 62
Location: izmir / Turkey

View user's profile Send private message

PostPosted: Thu Jan 10, 2019 1:54 pm     Reply with quote

Not like that, but there is something similar to that, you can tick select fuses if you use project manager but you can't change them later like you asked. But again, you can open "Config Bits" from view tab and copy them to your code.
_________________
There is nothing you can't do if you try
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