View previous topic :: View next topic |
Author |
Message |
Tasark
Joined: 25 Jan 2011 Posts: 12
|
brown-out problem |
Posted: Sun Oct 09, 2011 12:35 pm |
|
|
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
|
|
Posted: Sun Oct 09, 2011 2:01 pm |
|
|
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
|
|
Posted: Sun Oct 09, 2011 2:54 pm |
|
|
Ah that was exactly it. Thank you! |
|
|
|