View previous topic :: View next topic |
Author |
Message |
z3ngew
Joined: 20 Apr 2013 Posts: 50
|
Fuses |
Posted: Tue Apr 23, 2013 7:12 am |
|
|
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: 19589
|
|
Posted: Tue Apr 23, 2013 7:48 am |
|
|
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
|
|
Posted: Tue Apr 23, 2013 8:20 am |
|
|
many thanks my friend |
|
|
|