View previous topic :: View next topic |
Author |
Message |
Reto
Joined: 05 Jan 2005 Posts: 1
|
fuses config |
Posted: Wed Jun 08, 2005 11:58 pm |
|
|
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
|
|
Posted: Thu Jun 09, 2005 1:36 am |
|
|
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
|
fuses defines |
Posted: Thu Jun 09, 2005 2:31 am |
|
|
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
|
|
Posted: Thu Jun 09, 2005 3:40 am |
|
|
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. |
|
|
|