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

Need help with #fuse statement

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







Need help with #fuse statement
PostPosted: Fri Mar 21, 2003 3:19 am     Reply with quote

Hello,
I'm using MPLAB with ICD to programm my PIC16F877 and
CCS PCM V3.118
The pb is that with ICD option (under MPLAB) if I check "Configuration Bits" and then I programm my PIC all is fine.
But if I uncheck "Configuration Bits" it does'nt work !!!

This is a fuse statement problem ?

In MPLAB "ICD Option Configuration Bits" is :
Device : PIC16F877
Oscillator : HS
WatchDog Timer : Off/Disable
Power Up Timer : Off/Disable
Brown Out Detect : Off/Disable
Low voltage Programming : Disable
Code Protect Data EE. : code protection Off
Flash Memory Write : Memory written to by EECON
Code Protect : Code Protection Off

My fuse statement in my code is :
...
#include "16F877.h"
#fuses HS,NOWDT,NOPUT,NOBROWNOUT,NOLVP,WRT,NOCPD,NOPROTECT
...

What is #fuse staement for Memory written to by EECON ?

Any idea ?
Thanks in advance
Xavier
___________________________
This message was ported from CCS's old forum
Original Post ID: 12911
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: Need help with #fuse statement
PostPosted: Fri Mar 21, 2003 12:00 pm     Reply with quote

I don't have ICD, so I can't help on configuration problems.
But, regarding your 2nd question:

Here is an online chart that shows the configuration bits
for the 16F87x PICs.
<a href="http://www.interq.or.jp/japan/se-inoue/e_pic7_6.htm" TARGET="_blank">http://www.interq.or.jp/japan/se-inoue/e_pic7_6.htm</a>
This same chart is in the data sheet, in the section
called "Special Features of the CPU", "Configuration Bits".

So the answer to your question is, it's the "WRT" fuse.
___________________________
This message was ported from CCS's old forum
Original Post ID: 12929
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