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

Trouble with configurations bits on 16f688

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







Trouble with configurations bits on 16f688
PostPosted: Wed Dec 29, 2004 10:42 am     Reply with quote

Hello

I'm using a 16f688 for a simple keyboard application and I have problems with the fuses configuration.
Actually, the configuration I set in the C file is not the same that I obtain in the list file...
Is it possible to set the configuation bits without the directive #fuses and without Mplab with pcm? I've already tried to insert the configuration with asm directives but it doesn' work...

I am using PCM(v3.214) under Mplab v6.60.

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Dec 29, 2004 12:58 pm     Reply with quote

Post your #fuses statement. In fact, post a complete (but short)
program that demonstrates the problem.
aloizeau
Guest







PostPosted: Thu Dec 30, 2004 12:31 pm     Reply with quote

My #fuses statement is:
#include <16F688.h>
#FUSES INTRC_IO,NOWDT,NOPUT,BROWNOUT_NOSL,NOPROTECT,IESO,FCMEN,NOCPD

and the results in the .lst is:
Word 1: 34E4 INTRC_IO NOPROTECT NOBROWNOUT MCLR NOCPD NOWDT PUT IESO NOFCMEN
The value should be 3FF4 instead of 34E4...
From what I read, the configuration bits are independant from the code, so I don't think it's necessary to put any ohter part of my code... And I don't think it's a problem of configuration because this statement works with CC5...

Thanks for your help!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Dec 30, 2004 1:48 pm     Reply with quote

I compiled the following test program with PCM 3.214:
Code:
#include <16F688.h>
#FUSES INTRC_IO,NOWDT,NOPUT,BROWNOUT_NOSL,NOPROTECT,IESO,FCMEN,NOCPD

void main()
{

while(1);
}

I got this result in the .LST file:
Code:
Configuration Fuses:
Word  1: 3EF4   INTRC_IO NOPROTECT MCLR NOCPD NOWDT NOPUT
                  IESO FCMEN BROWNOUT_NOSL

I compared that Config Word to the data sheet (Section 11.1) and it looks correct.
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