ADC values above 4095 for 12 bit ADC


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: ADC values above 4095 for 12 bit ADC

    thats a good thought about a negative input , and clearly the value for negative flag is being set

    the 18f67k22 , which i am using, Has AN0-AN6 as negative inputs , for differential input , selected by ADCON1- BITS 2-0 , where 00 = AVSS. and they are not being set

    AN4 is used for is used for ad input every 20 secs , but at no time is it set to a negative ref , by adcon1

    AD17 is part of comparitor 3 input , which is set to 0 so that should not be affecting it

    its got be stumped what setting maybe forcing the neg value ,

    and it feel like i have a setting wrong some where for an17

    i have moved to an7 to continue sorting out the CTMU for touch switch service , which has helped get a more consistent reading to sort out the touch function

    the CTMU is nice bit of the PIC chip "IF" you can work your way around all the possible settings including the interrupts ,

    i also note that the DT'S INts_18_k22.bas does not support the CTMU intrerupt for external pin triggering , and will need to be added or do it via a manual clearing of interupts , but thats for later

  2. #2
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: ADC values above 4095 for 12 bit ADC

    Offset can be from internal differential amp or multiplexers. Inverting input is tied to GND when used in single input mode. You connect non inverting input also to GND. So any input offset or positive offset in inverting input multiplexer can produce small negative result, which look as large positive number.

Similar Threads

  1. Scaling ADC values
    By purkolator in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th November 2007, 06:14
  2. Flash PIC with 12 bit ADC
    By Steve_88 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 12th October 2007, 21:35
  3. Adc giving widely flactuating values
    By tamersoss in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 17th December 2006, 09:59
  4. MAX1247 4-Channel, 12-Bit ADC
    By Atom058 in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 16th December 2006, 00:38
  5. Need help with 16f819 10 bit ADC
    By bannrikae in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 26th September 2005, 16:20

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