Battery monitoring - ever tried AN1072?


Results 1 to 40 of 57

Threaded View

  1. #20
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,144


    Did you find this post helpful? Yes | No

    Default Re: Battery monitoring - ever tried AN1072?

    Hi Roger.

    I am looking now the latest Data sheet (version F) of the chip and it seems that this chip supports 0,6 Volt reference only for the comparator. The ADC can be referenced internally byt the VCC or externaly on pin 18.

    Sorry for the late detailed reply. It is my fault I did not check the data sheet earlier.

    So in your case you have to use the internal reference to Vcc (that is 5V in your case), with ADCON0 set as it is now and read the input on your pin, which I suppose is PortC.0 with the

    ADCIN 4,Bat_Value (Not 13 as in your program).

    The other option you may have, is to use the comparator, and when the voltage of the divider trips under the reference, to have an interrupt, or just look for the comparator out if it is set. But you cannot have the exact battery value.

    Ioannis
    Last edited by Ioannis; - 27th September 2015 at 14:27.

Similar Threads

  1. Battery voltage monitoring for use on 16F1825
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 23rd April 2013, 14:57
  2. Replies: 13
    Last Post: - 22nd January 2012, 04:48
  3. ADCIN car battery monitoring
    By mitchf14 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 29th June 2008, 08:04
  4. 12v car battery monitoring
    By oldcarguy85 in forum Schematics
    Replies: 2
    Last Post: - 10th December 2007, 00:26
  5. Using the A/D for Monitoring a Solor Cell and Battery
    By chuck.sieveking in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 13th July 2004, 19:27

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts