A/D conversion problem with pic16F88


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Tapio Linkosalo's Avatar
    Tapio Linkosalo Guest


    Did you find this post helpful? Yes | No

    Default

    Alain,

    truncation is a possibility that came also to my mind. I tried adding "define adcbits 10" to the software yesterday, at that time it started to work, but it could be also that re-soldering one lead of the thermocouple at the same time was the real reason. I tried to remove the define, even erase the chip and reprogram in case that the define did a change in the configuration that was not reversable by removing it, but could not return to the erraneous state of affairs.

    I wonder if the reason could be in the input. I checked the output from the op. amp. with oscilloscope, and it seems to be stable within around 5%, nothing like 4-fold variation in the input values.

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Smile

    Hi, Tapio

    Glad to hear it works ...

    As the Define Adcbits deal with adcin ... I'd bet the thermocouple was the trustable reason ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Tapio Linkosalo's Avatar
    Tapio Linkosalo Guest


    Did you find this post helpful? Yes | No

    Default

    Actually, it did not work, but now I think it does.

    The problem was not in the A/D configuration, but the op-amp. The datasheets tell to add a resistor for bias current return path which I had not added (and also had to tinkle around as ref ground and opamp power ground must be different). So the erronous readings were due to thermocouple drifting towards V+ref end of the input.

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. 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
  3. A/D conversion problem with 18F2455
    By abdy37 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 7th May 2007, 14:53
  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