ADC Channels


Closed Thread
Results 1 to 6 of 6

Thread: ADC Channels

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    ADRESHI has the most signifigant bits, leaving ADRESLO with the least signifigant bits.

    The data from the A2D is 10 bits wide... so the question is where to put 10 bits into 2 seperate 8 bit result registers.

    If you left justify, you space everthing so the highest (most sig) data bit align with the highest (most sig) register bit.

    Right justify puts the lowest data bit in line with the register's lowest bit. That means the hi register only has the top 2 sig bits.

    When you left justify, as the hi register has the most sig 8 bits it also has the 8-bit (non rounded) result.

    Hope this is more helpful then confusing.

  2. #2
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    Hi,
    you don't need to use 10 bit A/D. you can use 8 bit , that is easier than 10 bit.
    like this:

    define OSC 4
    TRISA = %11111111
    x var byte
    ADCON1 = %00000010
    adcin 0,x ' 0is the channel number and x is the variable
    end

    you don't need to connect the Vref+ and Vref- to somewher.

    if you want to use 10 bit ask me again yo tell you.

Similar Threads

  1. Stable Adc Reading Routine
    By gebillpap in forum General
    Replies: 27
    Last Post: - 13th May 2015, 03:18
  2. Can't get ADC to loop
    By TravisM in forum mel PIC BASIC
    Replies: 2
    Last Post: - 11th October 2009, 16:33
  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, 20:03
  4. 12F675 ADC 'Issues'
    By harrisondp in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2005, 02:55
  5. Reading multiple ADC channels FAST
    By lwindridge in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st April 2004, 23:37

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