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

to know about fuses

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



Joined: 26 Oct 2006
Posts: 10
Location: delhi -india

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

to know about fuses
PostPosted: Tue Oct 31, 2006 12:38 pm     Reply with quote

hi to all , can anybody please tell me ,how to know about fuses explained in
the device files ,for example i am using the pic18f4550 microcontroller,
the configuration bits of it r clearly mentioned in it's pdf,but in its file 18f4550.h only the names of fuses are mentioned but it does not tell anything about it ,for example these fuses are given in the file

CPD,NOCPD,NOSTVREN,STVREN

now what does they mean, and from where should i can get the complete information.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Oct 31, 2006 1:26 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=17280
jma_1



Joined: 08 Feb 2005
Posts: 147
Location: Wisconsin

View user's profile Send private message

PostPosted: Tue Oct 31, 2006 1:27 pm     Reply with quote

Greetings,

Most features implemented by CCS are directly from the datasheet of the particular pic you are using. The datasheet is the only real documentation. The CCS compiler manual does not cover in any detail items covered in the datasheet. Search the datasheet for special features of the cpu -> configuration bits. These spell out the options for the pic (stack underflow reset, stack overflow reset, low voltage programming, code protection, etc). I believe the #fuses statement merely is a conveniant way to set the associated configuation registers. Each option for your chip is listed in the device .h file (18f4550.h) file.

Cheers,
JMA
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Tue Oct 31, 2006 1:29 pm     Reply with quote

Go to the Microchip website and download the data sheet for the part you're interested in.

Search on the fuse that you are interested in (look for STVREN not NOSTVREN). That search should take you to the table of configuration bits. From there each is broken out in the byte that they are located and there is a short explanation of each.

Quote:
bit 7 CPD: Data EEPROM Code Protection bit
1 = Data EEPROM is not code-protected
0 = Data EEPROM is code-protected


John
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Tue Oct 31, 2006 2:58 pm     Reply with quote

Quote:

now what does they mean, and from where should i can get the complete information.


http://www.ccsinfo.com/forum/viewtopic.php?t=24336&highlight=fuses

Humberto
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