Voltage Monitoring


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Default Re: Voltage Monitoring

    Just a quick question to re-confirm my understanding.

    I will be using a 3V fixed voltage regulator for my PIC. Now I just to know that, If the setting of ADCON1 can be "1110" ?

    I am planning to use supply voltage as reference and by using a voltage divider, send the battery voltage to PortA.0.

    PIC is - 16f877a

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: Voltage Monitoring

    First - if you read the datasheet, the 16F877A is not rated to run below 4.0V unless you choose the "LF" version.
    Second, why do you need a voltage regulator at all? If you are running off batteries, and the battery voltage doesn't go above 5.5V, then using a voltage regulator will DECREASE battery life.

    If you want to have the longest battery life AND be able to measure battery voltage, then connect VDD directly to the battery. No voltage regulator.
    Connect your 2.8V signal to AN0 and ADCON1 to %01001110 . Read AN0. If it is above 716, then your battery is below 4V.
    Charles Linquist

  3. #3
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Default Re: Voltage Monitoring

    Got it. Thanks a lot

  4. #4
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: Voltage Monitoring

    If you want to know when the battery goes below 3.6V, then you would check AN0 for a count greater than 796.

    2.8/3.6 = .77777
    .777 X 1023 = 796
    Charles Linquist

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