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

Fuses? Explain for a beginner.

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



Joined: 25 Aug 2005
Posts: 65
Location: Huntington Beach, CA

View user's profile Send private message

Fuses? Explain for a beginner.
PostPosted: Fri Sep 09, 2005 9:23 am     Reply with quote

Question I am coming up to speed with the CCS compiler and development board and going through the tutorial and sample programs. One thing that has not been explained in either the datasheet for the micro, the CCS compiler manual nor a book that I bought through CCS is any explanation of what FUSES are? Are they fusable links, temporary internal switches or what?
Can anybody offer an explanation or send me to a source to read about them?

JimB
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Sep 09, 2005 10:55 am     Reply with quote

Go here:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=64

1. Then click on "Data Sheet Finder", near the top of the page.
2. When you're on that page, select your PIC from the drop-down list
and wait until the page loads.
3. Then click on the data sheet for your PIC and download it.
4. Load it into Adobe Acrobat reader.
5. Go to the section called "Special Features of the CPU".
6. Read the section on "Configuration Bits".
Humberto



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

View user's profile Send private message

PostPosted: Fri Sep 09, 2005 11:41 am     Reply with quote

JimB wrote:

Quote:

One thing that has not been explained in either the datasheet for the micro, the CCS compiler manual nor a book that I bought through CCS is any explanation of what FUSES are?


You are right.

FUSES is a term used by CCS to name it�s Pre Processor directive.

Microchip use the term Configuration Word or Configuration Bits as PCM programmer stated.

In Assembler is used the Directive _CONFIG to enable the programmer to set the configurations at assembly time rather than at programming time

All these terms are equivalent, have the same meaning

You will learn more in this tutorial:
http://ww1.microchip.com/downloads/en/DeviceDoc/config.pdf


Best wishes,

Humberto
sheing3003



Joined: 05 Jul 2006
Posts: 10

View user's profile Send private message

PostPosted: Wed Jul 05, 2006 2:26 pm     Reply with quote

thanks alot humber, really appreciate this! Took me forever to figure out what those abbreviation means.
However, it never explained PUT what does PUT mean?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jul 05, 2006 2:35 pm     Reply with quote

"PUT" is the CCS abbreviation for the "Power-up Timer".
Microchip uses PWRT as the abbreviation.

Look in the Special Features / Configuration Bits section of the
PIC data sheet for an explanation of the power-up timer.
Humberto



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

View user's profile Send private message

PostPosted: Wed Jul 05, 2006 3:00 pm     Reply with quote

These are some of the abbreviation used by CCS and its meaning.

#FUSES PUT //Power Up Timer
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale
#FUSES NOPROTECT //Code not protected from reading
#FUSES NOOSCSEN //Oscillator switching is disabled, main oscillator is source
#FUSES BROWNOUT //Reset when brownout detected
#FUSES BORV20 //Brownout reset at 2.0V
#FUSES STVREN //Stack full/underflow will cause reset
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NOWRT //Program memory not write protected
#FUSES NOWRTD //Data EEPROM not write protected
#FUSES NOWRTB //Boot block not write protected
#FUSES NOWRTC //configuration not registers write protected
#FUSES NOCPD //No EE protection
#FUSES NOCPB //No Boot Block code protection
#FUSES NOEBTR //Memory not protected from table reads
#FUSES NOEBTRB //Boot block not protected from table reads
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale
#FUSES HS //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
#FUSES IESO //Internal External Switch Over mode enabled
#FUSES NOBROWNOUT //No brownout reset
#FUSES BORV21 //Brownout reset at 2.1V
#FUSES NOCPD //No EE protection
#FUSES STVREN //Stack full/underflow will cause reset
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES WRT //Program Memory Write Protected
#FUSES WRTD //Data EEPROM write protected
#FUSES EBTR //Memory protected from table reads
#FUSES CPB //Boot Block Code Protected
#FUSES EBTRB //Boot block protected from table reads
#FUSES WRTC //configuration registers write protected
#FUSES WRTB //Boot block write protected
#FUSES FCMEN //Fail-safe clock monitor enabled
#FUSES NOXINST //Extended set extension and Indexed Addressing mode disabled (Legacy mode)
#FUSES PBADEN //PORTB pins are configured as analog input channels on RESET
#FUSES LPT1OSC //Timer1 configured for low-power operation
#FUSES MCLR //Master Clear pin enabled

But always the reference is the Microchip Datasheet as PCM Programmer stated, it is your job to understand
and "translate" each achronism.


Humberto

1. Edited
to ADD more FUSES defenitions


Last edited by Humberto on Sun Aug 22, 2010 12:55 pm; edited 2 times in total
Jakin
Guest







PostPosted: Thu Aug 17, 2006 3:34 pm     Reply with quote

Hi, All : thanks so much ~! I feel I have more understand about #fuse ...
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