How i ken read 7.2v with pic


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Interesting,

    I was purposely trying to keep it Under 10K to stay within the "maximum recommended impedance for analog sources".

    I can see the advantage with a battery application, but would you also need to increase ADC_SAMPLEUS?
    Or is it OK as long as R1 stays below 10K?
    <br>
    DT

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Darrel,

    I use this concept in many of my designs, and with "R1" being equal or below 10k I have never seen any problem at all.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  3. #3
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    For most PICs the recommended maximum input impedance is 10K... although it does vary (example 12F675 it's 2.5K). I've actually used the 12F675 with the same 10K input circuitry I use with a 16F876 and the same default 50uS settling time without problems. I don't use ADCIN but prefer to set and poll the GO/DONE bit for a completed conversion. Like with all things, it's a case of try it and see, and if it works for you - use it. For Battery-Low applications with Comparator Inputs, I've had 470K/220K R1/R2 combinations before now just to keep the current down.

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Great, thanks you two!

    Well, I've learned my 1 thing for today. I guess I can take the rest of the day off.

    But before I do that, let's see if we can finish off jetpr's question.

    Assuming now that R1 can always be 10K (or 2.5K), we can forget about the guessing part and just calculate R2 with the same formula.

    Vin = 7.5 <-- max Input to voltage divider
    Vout = 5 <-- max Output voltage to pic
    R1 = 10000

    R2 = R1/(1-(Vout/Vin))-R1
    R2 = 10000/(1-(5/7.5))-10000
    R2 = 20000 ohms

    Hmmm, Nice round numbers too.

    <br>
    Last edited by Darrel Taylor; - 23rd February 2006 at 02:10. Reason: 2.5K
    DT

Similar Threads

  1. How to read PIC serial no. from EEPROM with PBP?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th December 2009, 11:27
  2. Replies: 67
    Last Post: - 8th December 2009, 03:27
  3. Help GPS read with serin
    By leinske in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th September 2007, 03:33
  4. Changing declared variables names on the fly
    By jessey in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th December 2006, 07:34
  5. Controlling power to a PIC with another PIC
    By jswayze in forum Off Topic
    Replies: 3
    Last Post: - 28th May 2005, 20:44

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