Mutliple ADC problem with PIC16F877


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    I am sorry about not using BASIC, but because I am currently on a school project and we are restricted to C or Asm only therefore. I can't use it. Hope you can understand that.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Hi,
    i'm a bit rusty but i think it 'should' work. I would check the analog source impedance. It should be bellow 10K. Could also be a bad clock conversion choice, variable type, etc etc.

    But yeah... sure i miss something obvious. I can't check the whole thing here for some reasons, but as Mackarit suggest, you should go on the according forum for a better answer.

    Out of curiosity, which C compiler are you using?
    Last edited by mister_e; - 24th September 2007 at 15:50.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by andyto View Post
    I am sorry about not using BASIC, but because I am currently on a school project and we are restricted to C or Asm only therefore. I can't use it. Hope you can understand that.
    I understand, I would help and so would many others, but most of us do not use C or at least not very often.

    Have you tried the http://www.piclist.com/techref/piclist/index.htm ?

    When I was doing ASM I hung out there.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Jul 2004
    Location
    CA
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    This will not work because if you read the datasheet of the microcontroller.. it specifically mentions that you must have 10 microsecond delay when switching from channels. This is an absolute must, because the processor requires a delay from switching drivers from one ADC channel to another. This is just my assumption.

    -Srig

Similar Threads

  1. pic12f675 ADC problem
    By radu022003 in forum mel PIC BASIC
    Replies: 3
    Last Post: - 1st September 2009, 10:13
  2. PIC18F2423, ADC problem
    By mistergh in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th March 2009, 01:31
  3. ADC problem with PIC16F917
    By eetech in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th March 2007, 21:22
  4. 16F876 ADC problem
    By Douwe in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th June 2006, 19:38
  5. Problem reading multiple ADC ports
    By jswayze in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 4th November 2004, 16:46

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