|
|
View previous topic :: View next topic |
Author |
Message |
aloizeau Guest
|
Trouble with configurations bits on 16f688 |
Posted: Wed Dec 29, 2004 10:42 am |
|
|
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
|
|
Posted: Wed Dec 29, 2004 12:58 pm |
|
|
Post your #fuses statement. In fact, post a complete (but short)
program that demonstrates the problem. |
|
|
aloizeau Guest
|
|
Posted: Thu Dec 30, 2004 12:31 pm |
|
|
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
|
|
Posted: Thu Dec 30, 2004 1:48 pm |
|
|
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. |
|
|
|
|
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
|