Something strange, and its doing no good...


+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2008
    Posts
    51

    Default Something strange, and its doing no good...

    So the 18F2550 chip i am currently using for some ADC work is doing something rather peculiar... I have it set on 10 Bit ADC and as far as i under stand this means i should get a response of 0-1023. How ever i am getting a response of 0-64320 ish with 5V. working in 8 Bit mode i get 0-255.

    My setup code is:

    Code:
    DEFINE ADC_BITS 10	
    DEFINE ADC_CLOCK 3	
    DEFINE ADC_SAMPLEUS 50
    Anyone else confused?

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,587


    Did you find this post helpful? Yes | No

    Default Re: Something strange, and its doing no good...

    The great classic question ...

    Did you think to use RIGHT justification for the result ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Oct 2008
    Posts
    51


    Did you find this post helpful? Yes | No

    Default Re: Something strange, and its doing no good...

    Ahhh if only I had the brains and experience to think of that before bothering you lovely people!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts