Adc...

This is a discussion on Adc... within the C Programming forums, part of the General Programming Boards category; Hello all, I am using a PIC18F microcontroller with the CCS compiler and need some help finishing my coding. Does ...

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    5

    Adc...

    Hello all,
    I am using a PIC18F microcontroller with the CCS compiler and need some help finishing my coding.
    Does anybody know the meaning of the mode option in the setup_adc() function?
    It has options of ADC_OFF (obvious), ADC_CLOCK_DIV_2, ADC_CLOCK_DIV_8, ADC_CLOCK_INTERNAL, and such, but I am confused by what exactly this does for my ATD converter. It does not seem to be affecting my ATD. Maybe I am doing something wrong, I don't know.
    Any help would be greatly appreciated.
    Brad

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    I would imagine it sets bits in a control register. Look up the definitions of those macros in your headers. Then look up the meanings in the user manual.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    5
    yeah, i've already done that. they are very vague in the explanation of this function. which is kind of nerve racking.
    thanks though.
    brad

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ADC Conversion
    By mc99044 in forum C Programming
    Replies: 2
    Last Post: 10-06-2004, 12:44 PM
  2. ADC #4 Results
    By Prelude in forum Contests Board
    Replies: 9
    Last Post: 08-28-2003, 01:38 PM
  3. ADC #3 Results
    By Prelude in forum Contests Board
    Replies: 19
    Last Post: 08-18-2003, 11:25 PM
  4. ADC #2 Results
    By Prelude in forum Contests Board
    Replies: 20
    Last Post: 08-11-2003, 06:59 AM
  5. ADC #1 Results
    By Prelude in forum Contests Board
    Replies: 26
    Last Post: 08-06-2003, 03:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21