PDA

View Full Version : PIC16F876a and one lion cell



c2h5oh
- 30th September 2010, 10:13
Hello everybody,

I try to make an omnidirectional robot, which will be powered from one lion cell (3,6V nominal). I usually worked with PIC16F84a and PIC12F675 and there was no problem to power them with one cell of lion or lipoly.
But now I would like to use PIC16F876a. I tested simple led blinking program (ICSP programming with PICKit2) and I decreased power under 4.0V. PIC turned off (reseted). I found in datasheet, that maybe there is BOR (brown-out reset) activated. I don't know how to deactivate it, because I'm programming in PICBasic and there is no instruction for BOR deactivation.
How can be BOR deactivated? Is it possible to set BOR to any other value (for example 3.0V)?

I am beginner and my question is maybe stupid, but be tolerant, please :)

Thanks for answer.

mackrackit
- 30th September 2010, 12:02
Welcome to the forum.

The BOR, or in the case of the 16F876A, BODEN is set in the configuration bits.
Go to the PBP directory and you will find the *.inc file for all of the chips supported by PBP. You can set the configs there or in code space.
http://www.picbasic.co.uk/forum/content.php?r=157-Presetting-Configuration-Fuses-(PIC-Defines)-into-your-Program
The above link walks you through it.
The 16F876A only has two options, BODEN_ON or BODEN_OFF.

c2h5oh
- 1st October 2010, 09:31
Thank you very much mackrackit. I will try it.