Strange A/D conversion...


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    237


    Did you find this post helpful? Yes | No

    Post

    I suspect a wiring problem since your conversion is dead straight(see ADcurve.gif) with an offset of about 0,75v. That's close to a normal voltage drop over a diode or transistor.
    Attached Images Attached Images  

  2. #2
    Christos_K's Avatar
    Christos_K Guest


    Did you find this post helpful? Yes | No

    Default

    Problem solved! Indeed it was wirring problem! Another question now, What do the values for Define ADC_CLOCK repesent and how are they different?

    I know that you can have ADC_CLOCK 0,1,2 or 3...What does its number correspond to?

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


    Did you find this post helpful? Yes | No

    Default

    The value selects the source of the ADC conversion clock. For a detailed answer to this, look at "Selecting the ADC Conversion Clock" sub-section, in the ADC section of your chosen PICs Datasheet. Some newer PICs have a wider selection range than provided by the DEFINE, in those cases it's best to select by presetting the Registers yourself. If you are unsure what source to use, the RC option (which is an internal ADC option and nothing whatsoever to do with the PICs main Oscillator) is always a safe bet.

Similar Threads

  1. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 01:48
  2. Fast / low resolution A/D conversion
    By AndrewC in forum General
    Replies: 7
    Last Post: - 7th April 2009, 12:18
  3. A/D conversion problem in 18F2520, 2523, 2550 etc.
    By selimkara in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 10th March 2008, 16:26
  4. A/D conversion problem on 18F4431
    By ttease in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th April 2007, 23:03
  5. A/D converter fails?
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th February 2006, 18:57

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