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

brown-out problem

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



Joined: 25 Jan 2011
Posts: 12

View user's profile Send private message

brown-out problem
PostPosted: Sun Oct 09, 2011 12:35 pm     Reply with quote

In my code I have the following

Code:
#include 18f2520
#fuses HS, PUT, NOWDT, PROTECT, BROWNOUT, BORV27


I check the configuration bits in MPLAB, and I get the following
BOREN - Brown-out Reset Enable Bits - Brown-out Reset disabled in Hardware and software
BORV - Brown-out Reset voltage bits - VBOR is set to 2.7 V nominal

How do I actually ENABLE brown-out feature?

I've also tried
Code:

#pragma config BOREN = ON

After I set the fuses and before I set the fuses, but it doesn't seem to be helping. Any ideas?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Oct 09, 2011 2:01 pm     Reply with quote

Probably, you have the Build Configuration set for "Debug" in the drop-
down box on the menu bar in MPLAB. It disables Brownout when DEBUG
is selected there. Change it back to RELEASE and it allows the Brownout
fuse to be enabled.
Tasark



Joined: 25 Jan 2011
Posts: 12

View user's profile Send private message

PostPosted: Sun Oct 09, 2011 2:54 pm     Reply with quote

Ah that was exactly it. Thank you!
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