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 in MPLAB / CCS

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



Joined: 12 Sep 2008
Posts: 4

View user's profile Send private message

#fuses in MPLAB / CCS
PostPosted: Fri Dec 05, 2008 4:56 am     Reply with quote

Hello,

I work with MPLAB with CCS plugin. After compiling the configuration bits in MPLAB are different from the fuses I have set in code. My config:

Code:

#FUSES WDT128
#FUSES WDT
#FUSES HS                       
#FUSES NOPROTECT               
#FUSES BROWNOUT                 
#FUSES BORV45                   
#FUSES PUT                     
#FUSES NOCPD                   
#FUSES STVREN                 
#FUSES DEBUG                   
#FUSES NOLVP                   
#FUSES NOWRT                   
#FUSES NOWRTD                   
#FUSES IESO                   
#FUSES FCMEN                   
#FUSES NOPBADEN                 
#FUSES NOWRTC                   
#FUSES NOWRTB                   
#FUSES NOEBTR                   
#FUSES NOEBTRB                 
#FUSES NOCPB                   
#FUSES LPT1OSC                 
#FUSES NOMCLR                   
#FUSES XINST


The configuration bits in MPLAB are:

Code:

oscillator: HS
fail-safe clock monitor: enabled
internal external switch over: enabled
power up timer: disabled
brownout detect: disabled in hardware
brownout voltage: 4,5V
watchdog timer: disabled - controlled by SWDTEN bit
watchdog postscaler: 1:128
CCP2-mux: RC1
PORTB A/D enable: digital I/O
Stack overflow reset: disabled
LVP: disabled
Extended instr set enable bit: disabled


When I change the brownout reset voltage... the MPLAB config bits also change, but when I change brown-out detect... nothing happens

What is wrong?
- Am I doing something wrong?
- MPLAB
- CCS

Kind regards,

Robin
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Dec 05, 2008 11:50 am     Reply with quote

Quote:
#FUSES XINST

That's wrong. Always use NOXINST. The extended instruction set is
not supported by CCS.


For the rest of your problem:

1. Post your MPLAB version.
2. Post the CCS compiler version.
3. Post your PIC.
4. Post the programmer or debugger that you have selected in MPLAB.

5. Post if the code is actually compiling successfully. Does it say
"BUILD SUCCEEDED" in the MPLAB output window ?

6. Look in the Configure/Select Device menu in MPLAB. Do you have
your specific PIC selected ?
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