|
|
View previous topic :: View next topic |
Author |
Message |
Xavier Guest
|
Need help with #fuse statement |
Posted: Fri Mar 21, 2003 3:19 am |
|
|
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
|
Re: Need help with #fuse statement |
Posted: Fri Mar 21, 2003 12:00 pm |
|
|
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 |
|
|
|
|
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
|