|
|
View previous topic :: View next topic |
Author |
Message |
FRED_SUN
Joined: 28 Jul 2008 Posts: 7
|
Brownout setting |
Posted: Mon Jul 28, 2008 2:38 pm |
|
|
Hi,
I need to set BROWNOUT in order to make sure it will work fine when I change battery. But in sleep mode, BROWNOUT cost about 40 uAmp, how can I set NOBROWNOUT before it go to sleep, and recover it after the sleep ?
Thanks
Fred |
|
|
Ttelmah Guest
|
|
Posted: Mon Jul 28, 2008 2:48 pm |
|
|
You probably can't.
Tell us what chip?.
On most, the brownout setting, is a fuse only setting, and cannot be changed, once the chip is running.
Turning brownout 'off' in sleep, rather spoils the point of it, since brownout failures are just as likely to happen when you are asleep...
Alternative is to attach an external brownout circuit to the MCLR pin, and have this switchable.
Best Wishes |
|
|
FRED_SUN
Joined: 28 Jul 2008 Posts: 7
|
|
Posted: Mon Jul 28, 2008 4:55 pm |
|
|
Ttelmah wrote: | You probably can't.
Tell us what chip?.
On most, the brownout setting, is a fuse only setting, and cannot be changed, once the chip is running.
Turning brownout 'off' in sleep, rather spoils the point of it, since brownout failures are just as likely to happen when you are asleep...
Alternative is to attach an external brownout circuit to the MCLR pin, and have this switchable.
Best Wishes |
Thanks,
The chip I am using is 18f2525, and if I attach an external brownout circuit to the MCLR pin, it also use current, in my application, I can not put in any switch.
Thanks.
Fred |
|
|
libor
Joined: 14 Dec 2004 Posts: 288 Location: Hungary
|
|
Posted: Tue Jul 29, 2008 6:48 am |
|
|
You might want to check the new K-series chips (like 18F25K20) they have the brownout reset under software control with many options, like automatically disabling it when sleeping, etc.
...though it would not give a solution to your problem. Anyway the K-series are more optimized for the low-power operation. |
|
|
Ttelmah Guest
|
|
Posted: Tue Jul 29, 2008 9:55 am |
|
|
If you can switch off the internal brownout, you can switch off the external brownout. I am talking about a solid state switch (MOSFET), not some damn great mechanical thing!....
Best Wishes |
|
|
FRED_SUN
Joined: 28 Jul 2008 Posts: 7
|
|
Posted: Tue Jul 29, 2008 10:46 am |
|
|
libor wrote: | You might want to check the new K-series chips (like 18F25K20) they have the brownout reset under software control with many options, like automatically disabling it when sleeping, etc.
...though it would not give a solution to your problem. Anyway the K-series are more optimized for the low-power operation. |
Thanks!
I checked out 18f25k20, it use 3.3v power suply, but in my application, I need to drive 5v display.
I talked with microchip, they tell me I can change the CONFIGURATION REGISTER 23, low 2 (300002h).
Can I use "write_configuration_memory (dataptr, count) " to do it?
the function says it Erases all fuses and writes count bytes from the dataptr to the configuration memory. what is the meaning? Can I use it to change the brownout setting only or I need to redo all the Configuration?
Thanks!
Fred |
|
|
|
|
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
|