![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
Guest
|
CCS config bits vs datasheet's |
Posted: Wed May 14, 2008 10:42 am |
|
|
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? |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah Guest
|
|
Posted: Wed May 14, 2008 2:27 pm |
|
|
Says 'read as 0', not that they have to be written as '0'. So any permutation, with:
xxxx xxxx xxx1 01xx
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
Guest
|
|
Posted: Wed May 14, 2008 3:04 pm |
|
|
Very interesting -Thanks! |
|
![](templates/subSilver/images/spacer.gif) |
|
|
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
|