Multiple 10bit adc on pic 16f887?


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    Pennsylvania, USA
    Posts
    158


    Did you find this post helpful? Yes | No

    Default Re: Multiple 10bit adc on pic 16f887?

    With 10bit ADC you should right justify the result ADCON1=%10000000
    Shawn

  2. #2
    Join Date
    Feb 2012
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: Multiple 10bit adc on pic 16f887?

    Thanks. i am going to try this out.

  3. #3
    Join Date
    Feb 2005
    Location
    Indiana
    Posts
    24


    Did you find this post helpful? Yes | No

    Default Re: Multiple 10bit adc on pic 16f887?

    My data sheet for the 16f877 shows the ADCON1 register to be set up as follows:
    Bit 7,6 Unimplemented, set as 0
    Bit 5 "1"= Right Justified, "0"=Left Justified
    Bit 4 Unimplemented set as 0
    Bits 3,2,1,0 Choose these to select the channels you wish to be analog or digital.

    So, for 10bit and AN0=analog and all others digital, and "Right Justify" result, I would use ADCON1%00101110

    Is this not correct
    JRudd

  4. #4
    Join Date
    Feb 2005
    Location
    Indiana
    Posts
    24


    Did you find this post helpful? Yes | No

    Default Re: Multiple 10bit adc on pic 16f887?

    This is strange. I've been using a MicroChip 10bit a/d manual (http://ww1.microchip.com/downloads/e...Doc/31023a.pdf) which shows a different set-up for ADCON1 than the A/D section of the Datasheet for the 16F877. What am I missing here?
    Thanks,
    John
    JRudd

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