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

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



Joined: 20 Apr 2013
Posts: 50

View user's profile Send private message

Fuses
PostPosted: Tue Apr 23, 2013 7:12 am     Reply with quote

Hello everyone,
What are the fuses that are written in every program, I hope this is not a dumb question, but i need to understand.

Code:

#FUSES NOWDT
#FUSES HS
#FUSES NOPUT
#FUSES NOPROTECT


if someone can explain it to me,
Thanks in advance,
z3ngew
Ttelmah



Joined: 11 Mar 2010
Posts: 19451

View user's profile Send private message

PostPosted: Tue Apr 23, 2013 7:48 am     Reply with quote

Hmm.
Not really a CCS question, but a _chip_ question.

All the PIC processors have some hardware 'configurations' that can be changed when they are programmed. Historically these changes were programmed in the early chips by 'one time programmable' changes, hence 'fuses'. The name has stuck.

Now, several things to look at:
1) The Chip's data sheet, where the actual chip configuration data is described.
2) The .h file for the chip, where at the top all the valid 'fuses' are listed.
3) 'fuses.txt', which gives these names, and lists what they do (making cross connection between the CCS names and the chip's names).

For the ones you show:
1) NOWDT - no watchdog timer. Turns off the hardware watchdog. Again read the data sheet to find out what this is.
2) HS - high speed external crystal. Selects what type of oscillator the chip is to use.
3) NOPUT - don't wait for the oscillator to stabilise before starting - not actually recommended with HS...
4) Turn off the chip's code protection functions. Normal for development.

Best Wishes
z3ngew



Joined: 20 Apr 2013
Posts: 50

View user's profile Send private message

PostPosted: Tue Apr 23, 2013 8:20 am     Reply with quote

many thanks my friend Smile
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