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

fuses config

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



Joined: 05 Jan 2005
Posts: 1

View user's profile Send private message

fuses config
PostPosted: Wed Jun 08, 2005 11:58 pm     Reply with quote

Hello
Is it possible to set the defines of the fuses by myself. I don't understand why the ccs not used config bits are set to zero and not to 1. I guess it's commen to set not used values to 1. Not used flash bits are 1 when you will read it back. You can see this on microchip assembler and hi-tech compiler. there is it also possible to define it by the user itself. Is it also possible here. I can't find the define file in the ccs.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Jun 09, 2005 1:36 am     Reply with quote

The CCS compiler uses the #fuses command for defining the processor fuses, see the manual.

Applicable parameters for the #fuses command depend on the processor you are using, study the header file for your processor in the picc/devices directory.
An explanation of the parameters can be found in the file picc/fuses.txt.
Reto



Joined: 05 Jan 2005
Posts: 1

View user's profile Send private message

fuses defines
PostPosted: Thu Jun 09, 2005 2:31 am     Reply with quote

Sorry maybee my question was not so good. Is there any possibility to define the definitions of the fuses by myself. As example EC_IO is in the ccs 0x25. You can see it in the hexfile. But actually it should be 0xFD. The not used Bits 7,6,4,3 should be 1 and not zero.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Jun 09, 2005 3:40 am     Reply with quote

have a look at picc/chipedit.exe, this allows you to change the bitvalues.

Quote:
The not used Bits 7,6,4,3 should be 1 and not zero.

I had a quick look at register definitions for the config1h register for some chips, and the ones I checked have bits 7,6,4,3 marked as 'unimplemented, read as 0'.

Which chip do you have that requires the unused bits to be set to a '1'? This is unusual.
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