![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
shirish
Joined: 16 Dec 2008 Posts: 2
|
#Fuses |
Posted: Thu Jan 08, 2009 3:49 am |
|
|
I have used the #fuses to configure the contoller, but it has no effect on code.
i.e. I have used code protect & EEprom read protect but it has no effect.
Code: |
#include "16F887.h"
#fuses INTRC_IO,WDT,PUT
#fuses MCLR,PROTECT,CPD,BROWNOUT
#fuses BROWNOUT_NOSL,NOLVP
#fuses DEBUG,WRT
#ZERO_RAM
#DEVICE ICD=TRUE |
|
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Jan 08, 2009 12:02 pm |
|
|
Quote: | #include "16F887.h"
#fuses INTRC_IO,WDT,PUT
#fuses MCLR,PROTECT,CPD,BROWNOUT
#fuses BROWNOUT_NOSL,NOLVP
#fuses DEBUG,WRT
#ZERO_RAM
#DEVICE ICD=TRUE |
The line in bold will cause the compiler to disable your PROTECT
statement.
Here is the reason. From the MPLAB ICD2 Help File:
Quote: |
Q: Can I use code protection with MPLAB ICD 2?
A: No. Code protection, especially table read protection on any area in
program memory will prevent MPLAB ICD 2 from functioning. Do not use
any code protection or table read protection configuration settings when
debugging with MPLAB ICD 2. Code protection can be enabled when
programming a part for testing without MPLAB ICD 2. |
|
|
![](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
|