Converting 10bit ADC result to 8 bit


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: Converting 10bit ADC result to 8 bit

    Correct me if I'm wrong but if you divide a 10 bit result by 2, you get a 9 bit result. EG 1024/2 = 512. 8 bit max is 256 so you'd have to divide it by 4.

  2. #2
    Join Date
    Jul 2003
    Location
    USA - Arizona
    Posts
    156


    Did you find this post helpful? Yes | No

    Default Re: Converting 10bit ADC result to 8 bit

    you're correct, this
    or dividing by two
    was my hands playing catchup with the brain

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: Converting 10bit ADC result to 8 bit

    Why all this manipolation loosing valuable information contained in the 10 bits ADC, when you can store the whole 10 bits in the eeprom.

    Write 0,ADC.lowbyte
    Write 1,ADC.highbyte

    Will store

    Read 0, ADC.lowbyte
    Read 1,ADC.highbyte

    Will retrive your word.

    Cheers

    Al.
    All progress began with an idea

  4. #4
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: Converting 10bit ADC result to 8 bit

    It'll also half the number of results that can be stored. Accuracy wasnt an issue, number of results was.

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