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

CCS config bits vs datasheet's

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








CCS config bits vs datasheet's
PostPosted: Wed May 14, 2008 10:42 am     Reply with quote

When using this statement:

#fuses MCLR,WDT,PROTECT

The compiler generates this in the LST file:

Configuration Fuses:
Word 1: 0FF7 MCLR PROTECT WDT

However, the data sheet for the PIC10F200 specifies the configuration word as:

bit 11-5 Unimplemented: Read as ‘0’
bit 4 MCLRE: GP3/MCLR Pin Function Select bit
1 = GP3/MCLR pin function is MCLR
0 = GP3/MCLR pin function is digital I/O, MCLR internally tied to VDD
bit 3 CP: Code Protection bit
1 = Code protection off
0 = Code protection on
bit 2 WDTE: Watchdog Timer Enable bit
1 = WDT enabled
0 = WDT disabled
bit 1-0 Reserved: Read as ‘0’

So for MCLR, PROTECT, WDTE, shouldn't the word be 0000 0001 0100?
or 0x014?
Ttelmah
Guest







PostPosted: Wed May 14, 2008 2:27 pm     Reply with quote

Says 'read as 0', not that they have to be written as '0'. So any permutation, with:

xxxx xxxx xxx1 01xx

Best Wishes
Guest








PostPosted: Wed May 14, 2008 3:04 pm     Reply with quote

Very interesting -Thanks!
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