Reading multiple ADC channels FAST


Results 1 to 5 of 5

Threaded View

  1. #1
    lwindridge's Avatar
    lwindridge Guest

    Question Reading multiple ADC channels FAST

    I'm working on reading two ADC ports (RA0 and RA1) for two seperate sensor inputs.
    I can read the value of one input without any problems, but when checking the second input it seems to nearly duplicate the first - even when the sensor isn't attached!

    Can anyone shed any light on this? I need the sensor check to not slow down the code if possible as it is also reading rpm pulses and needs to be able to make rpm outputs matching the input but time shifting in 20uS steps (ignition retard on an engine basing retard values on air flow on RA0 and air temp on RA1).

    I've attached my current code for reference.
    I am using a 16F877 @ 4Mhz.

    Cheers

    Leigh Windridge
    Attached Files Attached Files

Similar Threads

  1. Stable Adc Reading Routine
    By gebillpap in forum General
    Replies: 27
    Last Post: - 13th May 2015, 02:18
  2. multiple ADC using DSpic 30f3010
    By angeline in forum mel PIC BASIC
    Replies: 6
    Last Post: - 22nd February 2008, 10:03
  3. ADC - 2 channels but not same voltage reference - how to?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th November 2007, 19:03
  4. 18F1320 ADC multiple channel select
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th November 2005, 21:40
  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