PDA

View Full Version : Newbie: Need help with Voltage Monitoring



Megahertz
- 15th November 2009, 03:14
Hi, I am a newbie when it comes to PBP and PIC. I am having problem with setting up my PIC to monitor the battery voltage. I am running 12C671 on 4.5V and it is simply getting used to glow few LEDs in my college project
I would like to have more insight into using this wonderful feature of PIC to monitor low battery. I have seen a project for 12F635 but they have an inbuilt feature to detect the voltage and at predefined levels.

Is there any article on voltage checking while PIC is sleep for example article(s) showing the hardware setup, code insight etc. I want a starting point to take this further. Thanks

Acetronics2
- 15th November 2009, 12:31
Hi, Megazezherts

first of all , you can have a look to Melabs Examples ...

http://www.melabs.com/resources/samples/submitted/12F675_One_Pin_Voltage_Monitor.bas

for example ...

Alain

12C671 is rather an old chip ... you'd better try 12F675 which is easily reprogrammable ... and wayyyyyy lower cost !!!

Megahertz
- 16th November 2009, 01:31
Hi, Megazezherts

first of all , you can have a look to Melabs Examples ...

http://www.melabs.com/resources/samples/submitted/12F675_One_Pin_Voltage_Monitor.bas

for example ...

Alain

12C671 is rather an old chip ... you'd better try 12F675 which is easily reprogrammable ... and wayyyyyy lower cost !!!

Thanks Alain. I just happen to have few 12C671 with me and I will ofcourse use flash type if I make somthing serious than glowing few LEDs.
I checked the code at the link and I understood what the code is doing but left little confused about the hardware setup. Is it possible you can explain it briefly? Thanks