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 support@ccsinfo.com

#Fuses

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



Joined: 16 Dec 2008
Posts: 2

View user's profile Send private message

#Fuses
PostPosted: Thu Jan 08, 2009 3:49 am     Reply with quote

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
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jan 08, 2009 12:02 pm     Reply with quote

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.
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